Class Binding.Builder (0.2.0)

public static final class Binding.Builder extends GeneratedMessage.Builder<Binding.Builder> implements BindingOrBuilder

Represents a user-defined Binding.

Protobuf type google.cloud.agentregistry.v1.Binding

Implements

BindingOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public Binding build()
Returns
Type Description
Binding

buildPartial()

public Binding buildPartial()
Returns
Type Description
Binding

clear()

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

clearAuthProviderBinding()

public Binding.Builder clearAuthProviderBinding()

The binding for AuthProvider.

.google.cloud.agentregistry.v1.Binding.AuthProviderBinding auth_provider_binding = 6;

Returns
Type Description
Binding.Builder

clearBinding()

public Binding.Builder clearBinding()
Returns
Type Description
Binding.Builder

clearCreateTime()

public Binding.Builder clearCreateTime()

Output only. Timestamp when this binding was created.

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

Returns
Type Description
Binding.Builder

clearDescription()

public Binding.Builder clearDescription()

Optional. User-defined description of a Binding. Can have a maximum length of 2048 characters.

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

Returns
Type Description
Binding.Builder

This builder for chaining.

clearDisplayName()

public Binding.Builder clearDisplayName()

Optional. User-defined display name for the Binding. Can have a maximum length of 63 characters.

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

Returns
Type Description
Binding.Builder

This builder for chaining.

clearName()

public Binding.Builder clearName()

Required. Identifier. The resource name of the Binding. Format: projects/{project}/locations/{location}/bindings/{binding}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Binding.Builder

This builder for chaining.

clearSource()

public Binding.Builder clearSource()

Required. The target Agent of the Binding.

.google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Binding.Builder

clearTarget()

public Binding.Builder clearTarget()

Required. The target Agent Registry Resource of the Binding.

.google.cloud.agentregistry.v1.Binding.Target target = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Binding.Builder

clearUpdateTime()

public Binding.Builder clearUpdateTime()

Output only. Timestamp when this binding was last updated.

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

Returns
Type Description
Binding.Builder

getAuthProviderBinding()

public Binding.AuthProviderBinding getAuthProviderBinding()

The binding for AuthProvider.

.google.cloud.agentregistry.v1.Binding.AuthProviderBinding auth_provider_binding = 6;

Returns
Type Description
Binding.AuthProviderBinding

The authProviderBinding.

getAuthProviderBindingBuilder()

public Binding.AuthProviderBinding.Builder getAuthProviderBindingBuilder()

The binding for AuthProvider.

.google.cloud.agentregistry.v1.Binding.AuthProviderBinding auth_provider_binding = 6;

Returns
Type Description
Binding.AuthProviderBinding.Builder

getAuthProviderBindingOrBuilder()

public Binding.AuthProviderBindingOrBuilder getAuthProviderBindingOrBuilder()

The binding for AuthProvider.

.google.cloud.agentregistry.v1.Binding.AuthProviderBinding auth_provider_binding = 6;

Returns
Type Description
Binding.AuthProviderBindingOrBuilder

getBindingCase()

public Binding.BindingCase getBindingCase()
Returns
Type Description
Binding.BindingCase

getCreateTime()

public Timestamp getCreateTime()

Output only. Timestamp when this binding was created.

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Timestamp when this binding was created.

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Timestamp when this binding was created.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Binding getDefaultInstanceForType()
Returns
Type Description
Binding

getDescription()

public String getDescription()

Optional. User-defined description of a Binding. Can have a maximum length of 2048 characters.

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

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. User-defined description of a Binding. Can have a maximum length of 2048 characters.

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

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Optional. User-defined display name for the Binding. Can have a maximum length of 63 characters.

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

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. User-defined display name for the Binding. Can have a maximum length of 63 characters.

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

Returns
Type Description
ByteString

The bytes for displayName.

getName()

public String getName()

Required. Identifier. The resource name of the Binding. Format: projects/{project}/locations/{location}/bindings/{binding}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Identifier. The resource name of the Binding. Format: projects/{project}/locations/{location}/bindings/{binding}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

getSource()

public Binding.Source getSource()

Required. The target Agent of the Binding.

.google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Binding.Source

The source.

getSourceBuilder()

public Binding.Source.Builder getSourceBuilder()

Required. The target Agent of the Binding.

.google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Binding.Source.Builder

getSourceOrBuilder()

public Binding.SourceOrBuilder getSourceOrBuilder()

Required. The target Agent of the Binding.

.google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Binding.SourceOrBuilder

getTarget()

public Binding.Target getTarget()

Required. The target Agent Registry Resource of the Binding.

.google.cloud.agentregistry.v1.Binding.Target target = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Binding.Target

The target.

getTargetBuilder()

public Binding.Target.Builder getTargetBuilder()

Required. The target Agent Registry Resource of the Binding.

.google.cloud.agentregistry.v1.Binding.Target target = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Binding.Target.Builder

getTargetOrBuilder()

public Binding.TargetOrBuilder getTargetOrBuilder()

Required. The target Agent Registry Resource of the Binding.

.google.cloud.agentregistry.v1.Binding.Target target = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Binding.TargetOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Timestamp when this binding was last updated.

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

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Timestamp when this binding was last updated.

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

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Timestamp when this binding was last updated.

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

Returns
Type Description
TimestampOrBuilder

hasAuthProviderBinding()

public boolean hasAuthProviderBinding()

The binding for AuthProvider.

.google.cloud.agentregistry.v1.Binding.AuthProviderBinding auth_provider_binding = 6;

Returns
Type Description
boolean

Whether the authProviderBinding field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. Timestamp when this binding was created.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasSource()

public boolean hasSource()

Required. The target Agent of the Binding.

.google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the source field is set.

hasTarget()

public boolean hasTarget()

Required. The target Agent Registry Resource of the Binding.

.google.cloud.agentregistry.v1.Binding.Target target = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the target field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Timestamp when this binding was last updated.

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

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAuthProviderBinding(Binding.AuthProviderBinding value)

public Binding.Builder mergeAuthProviderBinding(Binding.AuthProviderBinding value)

The binding for AuthProvider.

.google.cloud.agentregistry.v1.Binding.AuthProviderBinding auth_provider_binding = 6;

Parameter
Name Description
value Binding.AuthProviderBinding
Returns
Type Description
Binding.Builder

mergeCreateTime(Timestamp value)

public Binding.Builder mergeCreateTime(Timestamp value)

Output only. Timestamp when this binding was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Binding.Builder

mergeFrom(Binding other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSource(Binding.Source value)

public Binding.Builder mergeSource(Binding.Source value)

Required. The target Agent of the Binding.

.google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Binding.Source
Returns
Type Description
Binding.Builder

mergeTarget(Binding.Target value)

public Binding.Builder mergeTarget(Binding.Target value)

Required. The target Agent Registry Resource of the Binding.

.google.cloud.agentregistry.v1.Binding.Target target = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Binding.Target
Returns
Type Description
Binding.Builder

mergeUpdateTime(Timestamp value)

public Binding.Builder mergeUpdateTime(Timestamp value)

Output only. Timestamp when this binding was last updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Binding.Builder

setAuthProviderBinding(Binding.AuthProviderBinding value)

public Binding.Builder setAuthProviderBinding(Binding.AuthProviderBinding value)

The binding for AuthProvider.

.google.cloud.agentregistry.v1.Binding.AuthProviderBinding auth_provider_binding = 6;

Parameter
Name Description
value Binding.AuthProviderBinding
Returns
Type Description
Binding.Builder

setAuthProviderBinding(Binding.AuthProviderBinding.Builder builderForValue)

public Binding.Builder setAuthProviderBinding(Binding.AuthProviderBinding.Builder builderForValue)

The binding for AuthProvider.

.google.cloud.agentregistry.v1.Binding.AuthProviderBinding auth_provider_binding = 6;

Parameter
Name Description
builderForValue Binding.AuthProviderBinding.Builder
Returns
Type Description
Binding.Builder

setCreateTime(Timestamp value)

public Binding.Builder setCreateTime(Timestamp value)

Output only. Timestamp when this binding was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Binding.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Binding.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Timestamp when this binding was created.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Binding.Builder

setDescription(String value)

public Binding.Builder setDescription(String value)

Optional. User-defined description of a Binding. Can have a maximum length of 2048 characters.

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

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Binding.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Binding.Builder setDescriptionBytes(ByteString value)

Optional. User-defined description of a Binding. Can have a maximum length of 2048 characters.

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

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Binding.Builder

This builder for chaining.

setDisplayName(String value)

public Binding.Builder setDisplayName(String value)

Optional. User-defined display name for the Binding. Can have a maximum length of 63 characters.

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

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Binding.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Binding.Builder setDisplayNameBytes(ByteString value)

Optional. User-defined display name for the Binding. Can have a maximum length of 63 characters.

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

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Binding.Builder

This builder for chaining.

setName(String value)

public Binding.Builder setName(String value)

Required. Identifier. The resource name of the Binding. Format: projects/{project}/locations/{location}/bindings/{binding}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Binding.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Binding.Builder setNameBytes(ByteString value)

Required. Identifier. The resource name of the Binding. Format: projects/{project}/locations/{location}/bindings/{binding}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Binding.Builder

This builder for chaining.

setSource(Binding.Source value)

public Binding.Builder setSource(Binding.Source value)

Required. The target Agent of the Binding.

.google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Binding.Source
Returns
Type Description
Binding.Builder

setSource(Binding.Source.Builder builderForValue)

public Binding.Builder setSource(Binding.Source.Builder builderForValue)

Required. The target Agent of the Binding.

.google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Binding.Source.Builder
Returns
Type Description
Binding.Builder

setTarget(Binding.Target value)

public Binding.Builder setTarget(Binding.Target value)

Required. The target Agent Registry Resource of the Binding.

.google.cloud.agentregistry.v1.Binding.Target target = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Binding.Target
Returns
Type Description
Binding.Builder

setTarget(Binding.Target.Builder builderForValue)

public Binding.Builder setTarget(Binding.Target.Builder builderForValue)

Required. The target Agent Registry Resource of the Binding.

.google.cloud.agentregistry.v1.Binding.Target target = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Binding.Target.Builder
Returns
Type Description
Binding.Builder

setUpdateTime(Timestamp value)

public Binding.Builder setUpdateTime(Timestamp value)

Output only. Timestamp when this binding was last updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Binding.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Binding.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Timestamp when this binding was last updated.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Binding.Builder