Class FetchAvailableBindingsRequest.Builder (0.2.0)

public static final class FetchAvailableBindingsRequest.Builder extends GeneratedMessage.Builder<FetchAvailableBindingsRequest.Builder> implements FetchAvailableBindingsRequestOrBuilder

Message for fetching available Bindings.

Protobuf type google.cloud.agentregistry.v1.FetchAvailableBindingsRequest

Static Methods

getDescriptor()

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

Methods

build()

public FetchAvailableBindingsRequest build()
Returns
Type Description
FetchAvailableBindingsRequest

buildPartial()

public FetchAvailableBindingsRequest buildPartial()
Returns
Type Description
FetchAvailableBindingsRequest

clear()

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

clearPageSize()

public FetchAvailableBindingsRequest.Builder clearPageSize()

Optional. Requested page size. Server may return fewer items than requested. Page size is 500 if unspecified and is capped at 500 even if a larger value is given.

int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FetchAvailableBindingsRequest.Builder

This builder for chaining.

clearPageToken()

public FetchAvailableBindingsRequest.Builder clearPageToken()

Optional. A token identifying a page of results the server should return.

string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FetchAvailableBindingsRequest.Builder

This builder for chaining.

clearParent()

public FetchAvailableBindingsRequest.Builder clearParent()

Required. The parent, in the format projects/{project}/locations/{location}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
FetchAvailableBindingsRequest.Builder

This builder for chaining.

clearSource()

public FetchAvailableBindingsRequest.Builder clearSource()
Returns
Type Description
FetchAvailableBindingsRequest.Builder

clearSourceIdentifier()

public FetchAvailableBindingsRequest.Builder clearSourceIdentifier()

The identifier of the source Agent. Format:

  • urn:agent:{publisher}:{namespace}:{name}

string source_identifier = 2;

Returns
Type Description
FetchAvailableBindingsRequest.Builder

This builder for chaining.

clearTarget()

public FetchAvailableBindingsRequest.Builder clearTarget()
Returns
Type Description
FetchAvailableBindingsRequest.Builder

clearTargetIdentifier()

public FetchAvailableBindingsRequest.Builder clearTargetIdentifier()

Optional. The identifier of the target Agent, MCP Server, or Endpoint. Format:

  • urn:agent:{publisher}:{namespace}:{name}
  • urn:mcp:{publisher}:{namespace}:{name}
  • urn:endpoint:{publisher}:{namespace}:{name}

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

Returns
Type Description
FetchAvailableBindingsRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public FetchAvailableBindingsRequest getDefaultInstanceForType()
Returns
Type Description
FetchAvailableBindingsRequest

getDescriptorForType()

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

getPageSize()

public int getPageSize()

Optional. Requested page size. Server may return fewer items than requested. Page size is 500 if unspecified and is capped at 500 even if a larger value is given.

int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The pageSize.

getPageToken()

public String getPageToken()

Optional. A token identifying a page of results the server should return.

string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

Optional. A token identifying a page of results the server should return.

string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for pageToken.

getParent()

public String getParent()

Required. The parent, in the format projects/{project}/locations/{location}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent, in the format projects/{project}/locations/{location}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getSourceCase()

public FetchAvailableBindingsRequest.SourceCase getSourceCase()
Returns
Type Description
FetchAvailableBindingsRequest.SourceCase

getSourceIdentifier()

public String getSourceIdentifier()

The identifier of the source Agent. Format:

  • urn:agent:{publisher}:{namespace}:{name}

string source_identifier = 2;

Returns
Type Description
String

The sourceIdentifier.

getSourceIdentifierBytes()

public ByteString getSourceIdentifierBytes()

The identifier of the source Agent. Format:

  • urn:agent:{publisher}:{namespace}:{name}

string source_identifier = 2;

Returns
Type Description
ByteString

The bytes for sourceIdentifier.

getTargetCase()

public FetchAvailableBindingsRequest.TargetCase getTargetCase()
Returns
Type Description
FetchAvailableBindingsRequest.TargetCase

getTargetIdentifier()

public String getTargetIdentifier()

Optional. The identifier of the target Agent, MCP Server, or Endpoint. Format:

  • urn:agent:{publisher}:{namespace}:{name}
  • urn:mcp:{publisher}:{namespace}:{name}
  • urn:endpoint:{publisher}:{namespace}:{name}

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

Returns
Type Description
String

The targetIdentifier.

getTargetIdentifierBytes()

public ByteString getTargetIdentifierBytes()

Optional. The identifier of the target Agent, MCP Server, or Endpoint. Format:

  • urn:agent:{publisher}:{namespace}:{name}
  • urn:mcp:{publisher}:{namespace}:{name}
  • urn:endpoint:{publisher}:{namespace}:{name}

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

Returns
Type Description
ByteString

The bytes for targetIdentifier.

hasSourceIdentifier()

public boolean hasSourceIdentifier()

The identifier of the source Agent. Format:

  • urn:agent:{publisher}:{namespace}:{name}

string source_identifier = 2;

Returns
Type Description
boolean

Whether the sourceIdentifier field is set.

hasTargetIdentifier()

public boolean hasTargetIdentifier()

Optional. The identifier of the target Agent, MCP Server, or Endpoint. Format:

  • urn:agent:{publisher}:{namespace}:{name}
  • urn:mcp:{publisher}:{namespace}:{name}
  • urn:endpoint:{publisher}:{namespace}:{name}

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

Returns
Type Description
boolean

Whether the targetIdentifier field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FetchAvailableBindingsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setPageSize(int value)

public FetchAvailableBindingsRequest.Builder setPageSize(int value)

Optional. Requested page size. Server may return fewer items than requested. Page size is 500 if unspecified and is capped at 500 even if a larger value is given.

int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The pageSize to set.

Returns
Type Description
FetchAvailableBindingsRequest.Builder

This builder for chaining.

setPageToken(String value)

public FetchAvailableBindingsRequest.Builder setPageToken(String value)

Optional. A token identifying a page of results the server should return.

string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The pageToken to set.

Returns
Type Description
FetchAvailableBindingsRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public FetchAvailableBindingsRequest.Builder setPageTokenBytes(ByteString value)

Optional. A token identifying a page of results the server should return.

string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for pageToken to set.

Returns
Type Description
FetchAvailableBindingsRequest.Builder

This builder for chaining.

setParent(String value)

public FetchAvailableBindingsRequest.Builder setParent(String value)

Required. The parent, in the format projects/{project}/locations/{location}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
FetchAvailableBindingsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public FetchAvailableBindingsRequest.Builder setParentBytes(ByteString value)

Required. The parent, in the format projects/{project}/locations/{location}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
FetchAvailableBindingsRequest.Builder

This builder for chaining.

setSourceIdentifier(String value)

public FetchAvailableBindingsRequest.Builder setSourceIdentifier(String value)

The identifier of the source Agent. Format:

  • urn:agent:{publisher}:{namespace}:{name}

string source_identifier = 2;

Parameter
Name Description
value String

The sourceIdentifier to set.

Returns
Type Description
FetchAvailableBindingsRequest.Builder

This builder for chaining.

setSourceIdentifierBytes(ByteString value)

public FetchAvailableBindingsRequest.Builder setSourceIdentifierBytes(ByteString value)

The identifier of the source Agent. Format:

  • urn:agent:{publisher}:{namespace}:{name}

string source_identifier = 2;

Parameter
Name Description
value ByteString

The bytes for sourceIdentifier to set.

Returns
Type Description
FetchAvailableBindingsRequest.Builder

This builder for chaining.

setTargetIdentifier(String value)

public FetchAvailableBindingsRequest.Builder setTargetIdentifier(String value)

Optional. The identifier of the target Agent, MCP Server, or Endpoint. Format:

  • urn:agent:{publisher}:{namespace}:{name}
  • urn:mcp:{publisher}:{namespace}:{name}
  • urn:endpoint:{publisher}:{namespace}:{name}

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

Parameter
Name Description
value String

The targetIdentifier to set.

Returns
Type Description
FetchAvailableBindingsRequest.Builder

This builder for chaining.

setTargetIdentifierBytes(ByteString value)

public FetchAvailableBindingsRequest.Builder setTargetIdentifierBytes(ByteString value)

Optional. The identifier of the target Agent, MCP Server, or Endpoint. Format:

  • urn:agent:{publisher}:{namespace}:{name}
  • urn:mcp:{publisher}:{namespace}:{name}
  • urn:endpoint:{publisher}:{namespace}:{name}

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

Parameter
Name Description
value ByteString

The bytes for targetIdentifier to set.

Returns
Type Description
FetchAvailableBindingsRequest.Builder

This builder for chaining.