Class ServiceBinding.Builder (0.15.0)

public static final class ServiceBinding.Builder extends GeneratedMessageV3.Builder<ServiceBinding.Builder> implements ServiceBindingOrBuilder

ServiceBinding is the resource that defines a Service Directory Service to be used in a BackendService resource.

Protobuf type google.events.cloud.networkservices.v1.ServiceBinding

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ServiceBinding.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ServiceBinding.Builder
Overrides

build()

public ServiceBinding build()
Returns
TypeDescription
ServiceBinding

buildPartial()

public ServiceBinding buildPartial()
Returns
TypeDescription
ServiceBinding

clear()

public ServiceBinding.Builder clear()
Returns
TypeDescription
ServiceBinding.Builder
Overrides

clearCreateTime()

public ServiceBinding.Builder clearCreateTime()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
ServiceBinding.Builder

clearDescription()

public ServiceBinding.Builder clearDescription()

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 2;

Returns
TypeDescription
ServiceBinding.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ServiceBinding.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ServiceBinding.Builder
Overrides

clearLabels()

public ServiceBinding.Builder clearLabels()
Returns
TypeDescription
ServiceBinding.Builder

clearName()

public ServiceBinding.Builder clearName()

Required. Name of the ServiceBinding resource. It matches pattern projects/*/locations/global/serviceBindings/service_binding_name.

string name = 1;

Returns
TypeDescription
ServiceBinding.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ServiceBinding.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ServiceBinding.Builder
Overrides

clearService()

public ServiceBinding.Builder clearService()

Required. The full Service Directory Service name of the format projects/*/locations/*/namespaces/*/services/*

string service = 5;

Returns
TypeDescription
ServiceBinding.Builder

This builder for chaining.

clearServiceId()

public ServiceBinding.Builder clearServiceId()

Output only. The unique identifier of the Service Directory Service against which the Service Binding resource is validated. This is populated when the Service Binding resource is used in another resource (like Backend Service). This is of the UUID4 format.

string service_id = 8;

Returns
TypeDescription
ServiceBinding.Builder

This builder for chaining.

clearUpdateTime()

public ServiceBinding.Builder clearUpdateTime()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 4;

Returns
TypeDescription
ServiceBinding.Builder

clone()

public ServiceBinding.Builder clone()
Returns
TypeDescription
ServiceBinding.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Set of label tags associated with the ServiceBinding resource.

map<string, string> labels = 7;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public ServiceBinding getDefaultInstanceForType()
Returns
TypeDescription
ServiceBinding

getDescription()

public String getDescription()

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 2;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 2;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Set of label tags associated with the ServiceBinding resource.

map<string, string> labels = 7;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Set of label tags associated with the ServiceBinding resource.

map<string, string> labels = 7;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Set of label tags associated with the ServiceBinding resource.

map<string, string> labels = 7;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Set of label tags associated with the ServiceBinding resource.

map<string, string> labels = 7;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Required. Name of the ServiceBinding resource. It matches pattern projects/*/locations/global/serviceBindings/service_binding_name.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the ServiceBinding resource. It matches pattern projects/*/locations/global/serviceBindings/service_binding_name.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getService()

public String getService()

Required. The full Service Directory Service name of the format projects/*/locations/*/namespaces/*/services/*

string service = 5;

Returns
TypeDescription
String

The service.

getServiceBytes()

public ByteString getServiceBytes()

Required. The full Service Directory Service name of the format projects/*/locations/*/namespaces/*/services/*

string service = 5;

Returns
TypeDescription
ByteString

The bytes for service.

getServiceId()

public String getServiceId()

Output only. The unique identifier of the Service Directory Service against which the Service Binding resource is validated. This is populated when the Service Binding resource is used in another resource (like Backend Service). This is of the UUID4 format.

string service_id = 8;

Returns
TypeDescription
String

The serviceId.

getServiceIdBytes()

public ByteString getServiceIdBytes()

Output only. The unique identifier of the Service Directory Service against which the Service Binding resource is validated. This is populated when the Service Binding resource is used in another resource (like Backend Service). This is of the UUID4 format.

string service_id = 8;

Returns
TypeDescription
ByteString

The bytes for serviceId.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 4;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 4;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 4;

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 4;

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public ServiceBinding.Builder mergeCreateTime(Timestamp value)

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ServiceBinding.Builder

mergeFrom(ServiceBinding other)

public ServiceBinding.Builder mergeFrom(ServiceBinding other)
Parameter
NameDescription
otherServiceBinding
Returns
TypeDescription
ServiceBinding.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ServiceBinding.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServiceBinding.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ServiceBinding.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ServiceBinding.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ServiceBinding.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ServiceBinding.Builder
Overrides

mergeUpdateTime(Timestamp value)

public ServiceBinding.Builder mergeUpdateTime(Timestamp value)

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ServiceBinding.Builder

putAllLabels(Map<String,String> values)

public ServiceBinding.Builder putAllLabels(Map<String,String> values)

Optional. Set of label tags associated with the ServiceBinding resource.

map<string, string> labels = 7;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
ServiceBinding.Builder

putLabels(String key, String value)

public ServiceBinding.Builder putLabels(String key, String value)

Optional. Set of label tags associated with the ServiceBinding resource.

map<string, string> labels = 7;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
ServiceBinding.Builder

removeLabels(String key)

public ServiceBinding.Builder removeLabels(String key)

Optional. Set of label tags associated with the ServiceBinding resource.

map<string, string> labels = 7;

Parameter
NameDescription
keyString
Returns
TypeDescription
ServiceBinding.Builder

setCreateTime(Timestamp value)

public ServiceBinding.Builder setCreateTime(Timestamp value)

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ServiceBinding.Builder

setCreateTime(Timestamp.Builder builderForValue)

public ServiceBinding.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ServiceBinding.Builder

setDescription(String value)

public ServiceBinding.Builder setDescription(String value)

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 2;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
ServiceBinding.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public ServiceBinding.Builder setDescriptionBytes(ByteString value)

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 2;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
ServiceBinding.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ServiceBinding.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ServiceBinding.Builder
Overrides

setName(String value)

public ServiceBinding.Builder setName(String value)

Required. Name of the ServiceBinding resource. It matches pattern projects/*/locations/global/serviceBindings/service_binding_name.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ServiceBinding.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ServiceBinding.Builder setNameBytes(ByteString value)

Required. Name of the ServiceBinding resource. It matches pattern projects/*/locations/global/serviceBindings/service_binding_name.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ServiceBinding.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ServiceBinding.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ServiceBinding.Builder
Overrides

setService(String value)

public ServiceBinding.Builder setService(String value)

Required. The full Service Directory Service name of the format projects/*/locations/*/namespaces/*/services/*

string service = 5;

Parameter
NameDescription
valueString

The service to set.

Returns
TypeDescription
ServiceBinding.Builder

This builder for chaining.

setServiceBytes(ByteString value)

public ServiceBinding.Builder setServiceBytes(ByteString value)

Required. The full Service Directory Service name of the format projects/*/locations/*/namespaces/*/services/*

string service = 5;

Parameter
NameDescription
valueByteString

The bytes for service to set.

Returns
TypeDescription
ServiceBinding.Builder

This builder for chaining.

setServiceId(String value)

public ServiceBinding.Builder setServiceId(String value)

Output only. The unique identifier of the Service Directory Service against which the Service Binding resource is validated. This is populated when the Service Binding resource is used in another resource (like Backend Service). This is of the UUID4 format.

string service_id = 8;

Parameter
NameDescription
valueString

The serviceId to set.

Returns
TypeDescription
ServiceBinding.Builder

This builder for chaining.

setServiceIdBytes(ByteString value)

public ServiceBinding.Builder setServiceIdBytes(ByteString value)

Output only. The unique identifier of the Service Directory Service against which the Service Binding resource is validated. This is populated when the Service Binding resource is used in another resource (like Backend Service). This is of the UUID4 format.

string service_id = 8;

Parameter
NameDescription
valueByteString

The bytes for serviceId to set.

Returns
TypeDescription
ServiceBinding.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ServiceBinding.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ServiceBinding.Builder
Overrides

setUpdateTime(Timestamp value)

public ServiceBinding.Builder setUpdateTime(Timestamp value)

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ServiceBinding.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public ServiceBinding.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ServiceBinding.Builder