Class ServiceBinding.Builder (0.9.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.cloud.networkservices.v1.ServiceBinding

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ServiceBinding.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ServiceBinding.Builder
Overrides

build()

public ServiceBinding build()
Returns
Type Description
ServiceBinding

buildPartial()

public ServiceBinding buildPartial()
Returns
Type Description
ServiceBinding

clear()

public ServiceBinding.Builder clear()
Returns
Type Description
ServiceBinding.Builder
Overrides

clearCreateTime()

public ServiceBinding.Builder clearCreateTime()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ServiceBinding.Builder

clearDescription()

public ServiceBinding.Builder clearDescription()

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

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ServiceBinding.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ServiceBinding.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ServiceBinding.Builder
Overrides

clearLabels()

public ServiceBinding.Builder clearLabels()
Returns
Type Description
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 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ServiceBinding.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ServiceBinding.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ServiceBinding.Builder

clone()

public ServiceBinding.Builder clone()
Returns
Type Description
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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public ServiceBinding getDefaultInstanceForType()
Returns
Type Description
ServiceBinding

getDescription()

public String getDescription()

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

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

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

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

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

map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

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

map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
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 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

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

map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
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 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
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 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
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 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The service.

getServiceBytes()

public ByteString getServiceBytes()

Required. The full service directory service name of the format /projects/*/locations/*/namespaces/*/services/*

string service = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for service.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ServiceBinding.Builder

mergeFrom(ServiceBinding other)

public ServiceBinding.Builder mergeFrom(ServiceBinding other)
Parameter
Name Description
other ServiceBinding
Returns
Type Description
ServiceBinding.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ServiceBinding.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServiceBinding.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ServiceBinding.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ServiceBinding.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ServiceBinding.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
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 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
ServiceBinding.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ServiceBinding.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
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 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The service to set.

Returns
Type Description
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 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for service to set.

Returns
Type Description
ServiceBinding.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ServiceBinding.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ServiceBinding.Builder