Class ExploreSchemaRequest.Builder (0.7.0)

public static final class ExploreSchemaRequest.Builder extends GeneratedMessage.Builder<ExploreSchemaRequest.Builder> implements ExploreSchemaRequestOrBuilder

Request for ExploreSchema.

Protobuf type google.cloud.apptopology.v1.ExploreSchemaRequest

Static Methods

getDescriptor()

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

Methods

addAllStartLabels(Iterable<String> values)

public ExploreSchemaRequest.Builder addAllStartLabels(Iterable<String> values)

Optional. Starting label names to begin traversal. Substring, case-insensitive matches are performed against allowed label names in the schema. A maximum of 10 start_labels can be specified; providing more will result in an INVALID_ARGUMENT error. If start_labels is unset or empty, all authorized node types will be used as the starting set.

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

Parameter
Name Description
values Iterable<String>

The startLabels to add.

Returns
Type Description
ExploreSchemaRequest.Builder

This builder for chaining.

addStartLabels(String value)

public ExploreSchemaRequest.Builder addStartLabels(String value)

Optional. Starting label names to begin traversal. Substring, case-insensitive matches are performed against allowed label names in the schema. A maximum of 10 start_labels can be specified; providing more will result in an INVALID_ARGUMENT error. If start_labels is unset or empty, all authorized node types will be used as the starting set.

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

Parameter
Name Description
value String

The startLabels to add.

Returns
Type Description
ExploreSchemaRequest.Builder

This builder for chaining.

addStartLabelsBytes(ByteString value)

public ExploreSchemaRequest.Builder addStartLabelsBytes(ByteString value)

Optional. Starting label names to begin traversal. Substring, case-insensitive matches are performed against allowed label names in the schema. A maximum of 10 start_labels can be specified; providing more will result in an INVALID_ARGUMENT error. If start_labels is unset or empty, all authorized node types will be used as the starting set.

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

Parameter
Name Description
value ByteString

The bytes of the startLabels to add.

Returns
Type Description
ExploreSchemaRequest.Builder

This builder for chaining.

build()

public ExploreSchemaRequest build()
Returns
Type Description
ExploreSchemaRequest

buildPartial()

public ExploreSchemaRequest buildPartial()
Returns
Type Description
ExploreSchemaRequest

clear()

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

clearDepth()

public ExploreSchemaRequest.Builder clearDepth()

Optional. The maximum depth of BFS traversal hops to perform from the starting node types or label names. Defaults to 0 if unspecified.

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

Returns
Type Description
ExploreSchemaRequest.Builder

This builder for chaining.

clearName()

public ExploreSchemaRequest.Builder clearName()

Required. The name of the singleton domain schema resource. Format: projects/{project}/locations/{location}/domains/{domain}/schema

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

Returns
Type Description
ExploreSchemaRequest.Builder

This builder for chaining.

clearPageSize()

public ExploreSchemaRequest.Builder clearPageSize()

Optional. The maximum number of schema elements to return in a single page.

  • The service might return fewer elements than this value if adding another edge and its required endpoint nodes exceeds page_size.
  • If omitted or set to 0, default (100) will be used.
  • Minimum page_size is 3 to ensure at least one edge and its endpoint nodes fit on a page; values below 3 (e.g. 1 or 2) are changed to 3.
  • Maximum value is 500.

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

Returns
Type Description
ExploreSchemaRequest.Builder

This builder for chaining.

clearPageToken()

public ExploreSchemaRequest.Builder clearPageToken()

Optional. A page token received from a previous ExploreSchema call. Provide this to retrieve the subsequent page.

When paginating, all other parameters (except page_size) provided to ExploreSchema must match the call that provided the page token.

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

Returns
Type Description
ExploreSchemaRequest.Builder

This builder for chaining.

clearStartLabels()

public ExploreSchemaRequest.Builder clearStartLabels()

Optional. Starting label names to begin traversal. Substring, case-insensitive matches are performed against allowed label names in the schema. A maximum of 10 start_labels can be specified; providing more will result in an INVALID_ARGUMENT error. If start_labels is unset or empty, all authorized node types will be used as the starting set.

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

Returns
Type Description
ExploreSchemaRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public ExploreSchemaRequest getDefaultInstanceForType()
Returns
Type Description
ExploreSchemaRequest

getDepth()

public int getDepth()

Optional. The maximum depth of BFS traversal hops to perform from the starting node types or label names. Defaults to 0 if unspecified.

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

Returns
Type Description
int

The depth.

getDescriptorForType()

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

getName()

public String getName()

Required. The name of the singleton domain schema resource. Format: projects/{project}/locations/{location}/domains/{domain}/schema

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the singleton domain schema resource. Format: projects/{project}/locations/{location}/domains/{domain}/schema

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

Returns
Type Description
ByteString

The bytes for name.

getPageSize()

public int getPageSize()

Optional. The maximum number of schema elements to return in a single page.

  • The service might return fewer elements than this value if adding another edge and its required endpoint nodes exceeds page_size.
  • If omitted or set to 0, default (100) will be used.
  • Minimum page_size is 3 to ensure at least one edge and its endpoint nodes fit on a page; values below 3 (e.g. 1 or 2) are changed to 3.
  • Maximum value is 500.

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

Returns
Type Description
int

The pageSize.

getPageToken()

public String getPageToken()

Optional. A page token received from a previous ExploreSchema call. Provide this to retrieve the subsequent page.

When paginating, all other parameters (except page_size) provided to ExploreSchema must match the call that provided the page token.

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

Returns
Type Description
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

Optional. A page token received from a previous ExploreSchema call. Provide this to retrieve the subsequent page.

When paginating, all other parameters (except page_size) provided to ExploreSchema must match the call that provided the page token.

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

Returns
Type Description
ByteString

The bytes for pageToken.

getStartLabels(int index)

public String getStartLabels(int index)

Optional. Starting label names to begin traversal. Substring, case-insensitive matches are performed against allowed label names in the schema. A maximum of 10 start_labels can be specified; providing more will result in an INVALID_ARGUMENT error. If start_labels is unset or empty, all authorized node types will be used as the starting set.

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

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The startLabels at the given index.

getStartLabelsBytes(int index)

public ByteString getStartLabelsBytes(int index)

Optional. Starting label names to begin traversal. Substring, case-insensitive matches are performed against allowed label names in the schema. A maximum of 10 start_labels can be specified; providing more will result in an INVALID_ARGUMENT error. If start_labels is unset or empty, all authorized node types will be used as the starting set.

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

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the startLabels at the given index.

getStartLabelsCount()

public int getStartLabelsCount()

Optional. Starting label names to begin traversal. Substring, case-insensitive matches are performed against allowed label names in the schema. A maximum of 10 start_labels can be specified; providing more will result in an INVALID_ARGUMENT error. If start_labels is unset or empty, all authorized node types will be used as the starting set.

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

Returns
Type Description
int

The count of startLabels.

getStartLabelsList()

public ProtocolStringList getStartLabelsList()

Optional. Starting label names to begin traversal. Substring, case-insensitive matches are performed against allowed label names in the schema. A maximum of 10 start_labels can be specified; providing more will result in an INVALID_ARGUMENT error. If start_labels is unset or empty, all authorized node types will be used as the starting set.

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

Returns
Type Description
ProtocolStringList

A list containing the startLabels.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExploreSchemaRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDepth(int value)

public ExploreSchemaRequest.Builder setDepth(int value)

Optional. The maximum depth of BFS traversal hops to perform from the starting node types or label names. Defaults to 0 if unspecified.

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

Parameter
Name Description
value int

The depth to set.

Returns
Type Description
ExploreSchemaRequest.Builder

This builder for chaining.

setName(String value)

public ExploreSchemaRequest.Builder setName(String value)

Required. The name of the singleton domain schema resource. Format: projects/{project}/locations/{location}/domains/{domain}/schema

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ExploreSchemaRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ExploreSchemaRequest.Builder setNameBytes(ByteString value)

Required. The name of the singleton domain schema resource. Format: projects/{project}/locations/{location}/domains/{domain}/schema

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ExploreSchemaRequest.Builder

This builder for chaining.

setPageSize(int value)

public ExploreSchemaRequest.Builder setPageSize(int value)

Optional. The maximum number of schema elements to return in a single page.

  • The service might return fewer elements than this value if adding another edge and its required endpoint nodes exceeds page_size.
  • If omitted or set to 0, default (100) will be used.
  • Minimum page_size is 3 to ensure at least one edge and its endpoint nodes fit on a page; values below 3 (e.g. 1 or 2) are changed to 3.
  • Maximum value is 500.

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

Parameter
Name Description
value int

The pageSize to set.

Returns
Type Description
ExploreSchemaRequest.Builder

This builder for chaining.

setPageToken(String value)

public ExploreSchemaRequest.Builder setPageToken(String value)

Optional. A page token received from a previous ExploreSchema call. Provide this to retrieve the subsequent page.

When paginating, all other parameters (except page_size) provided to ExploreSchema must match the call that provided the page token.

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

Parameter
Name Description
value String

The pageToken to set.

Returns
Type Description
ExploreSchemaRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ExploreSchemaRequest.Builder setPageTokenBytes(ByteString value)

Optional. A page token received from a previous ExploreSchema call. Provide this to retrieve the subsequent page.

When paginating, all other parameters (except page_size) provided to ExploreSchema must match the call that provided the page token.

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

Parameter
Name Description
value ByteString

The bytes for pageToken to set.

Returns
Type Description
ExploreSchemaRequest.Builder

This builder for chaining.

setStartLabels(int index, String value)

public ExploreSchemaRequest.Builder setStartLabels(int index, String value)

Optional. Starting label names to begin traversal. Substring, case-insensitive matches are performed against allowed label names in the schema. A maximum of 10 start_labels can be specified; providing more will result in an INVALID_ARGUMENT error. If start_labels is unset or empty, all authorized node types will be used as the starting set.

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

Parameters
Name Description
index int

The index to set the value at.

value String

The startLabels to set.

Returns
Type Description
ExploreSchemaRequest.Builder

This builder for chaining.