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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ServiceBinding.BuilderImplements
ServiceBindingOrBuilderStatic 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 |
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 |
clearCreateTime()
public ServiceBinding.Builder clearCreateTime()
Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 3;
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;
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 |
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;
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 |
clearService()
public ServiceBinding.Builder clearService()
Required. The full Service Directory Service name of the format projects/*/locations/*/namespaces/*/services/*
string service = 5;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
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;
Returns | |
---|---|
Type | Description |
ServiceBinding.Builder |
clone()
public ServiceBinding.Builder clone()
Returns | |
---|---|
Type | Description |
ServiceBinding.Builder |
containsLabels(String key)
public boolean containsLabels(String key)
Optional. Set of label tags associated with the ServiceBinding resource.
map<string, string> labels = 7;
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;
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;
Returns | |
---|---|
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 3;
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;
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;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getLabels()
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;
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;
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;
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;
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
String |
getMutableLabels()
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;
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;
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;
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;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
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;
Returns | |
---|---|
Type | Description |
Builder |
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 4;
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
hasCreateTime()
public boolean hasCreateTime()
Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 3;
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;
Returns | |
---|---|
Type | Description |
boolean |
Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter | |
---|---|
Name | Description |
number |
int |
Returns | |
---|---|
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter | |
---|---|
Name | Description |
number |
int |
Returns | |
---|---|
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 | |
---|---|
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ServiceBinding.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
ServiceBinding.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ServiceBinding.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ServiceBinding.Builder |
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 | |
---|---|
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;
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;
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;
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;
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;
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;
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;
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 |
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 | |
---|---|
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;
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 |
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 | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for service to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
String The serviceId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for serviceId 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 |
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 | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
ServiceBinding.Builder |