Class ListContextsResponse.Builder (3.14.0)

public static final class ListContextsResponse.Builder extends GeneratedMessageV3.Builder<ListContextsResponse.Builder> implements ListContextsResponseOrBuilder

Response message for MetadataService.ListContexts.

Protobuf type google.cloud.aiplatform.v1beta1.ListContextsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllContexts(Iterable<? extends Context> values)

public ListContextsResponse.Builder addAllContexts(Iterable<? extends Context> values)

The Contexts retrieved from the MetadataStore.

repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.aiplatform.v1beta1.Context>
Returns
TypeDescription
ListContextsResponse.Builder

addContexts(Context value)

public ListContextsResponse.Builder addContexts(Context value)

The Contexts retrieved from the MetadataStore.

repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1;

Parameter
NameDescription
valueContext
Returns
TypeDescription
ListContextsResponse.Builder

addContexts(Context.Builder builderForValue)

public ListContextsResponse.Builder addContexts(Context.Builder builderForValue)

The Contexts retrieved from the MetadataStore.

repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1;

Parameter
NameDescription
builderForValueContext.Builder
Returns
TypeDescription
ListContextsResponse.Builder

addContexts(int index, Context value)

public ListContextsResponse.Builder addContexts(int index, Context value)

The Contexts retrieved from the MetadataStore.

repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1;

Parameters
NameDescription
indexint
valueContext
Returns
TypeDescription
ListContextsResponse.Builder

addContexts(int index, Context.Builder builderForValue)

public ListContextsResponse.Builder addContexts(int index, Context.Builder builderForValue)

The Contexts retrieved from the MetadataStore.

repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1;

Parameters
NameDescription
indexint
builderForValueContext.Builder
Returns
TypeDescription
ListContextsResponse.Builder

addContextsBuilder()

public Context.Builder addContextsBuilder()

The Contexts retrieved from the MetadataStore.

repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1;

Returns
TypeDescription
Context.Builder

addContextsBuilder(int index)

public Context.Builder addContextsBuilder(int index)

The Contexts retrieved from the MetadataStore.

repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Context.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListContextsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListContextsResponse.Builder
Overrides

build()

public ListContextsResponse build()
Returns
TypeDescription
ListContextsResponse

buildPartial()

public ListContextsResponse buildPartial()
Returns
TypeDescription
ListContextsResponse

clear()

public ListContextsResponse.Builder clear()
Returns
TypeDescription
ListContextsResponse.Builder
Overrides

clearContexts()

public ListContextsResponse.Builder clearContexts()

The Contexts retrieved from the MetadataStore.

repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1;

Returns
TypeDescription
ListContextsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListContextsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListContextsResponse.Builder
Overrides

clearNextPageToken()

public ListContextsResponse.Builder clearNextPageToken()

A token, which can be sent as ListContextsRequest.page_token to retrieve the next page. If this field is not populated, there are no subsequent pages.

string next_page_token = 2;

Returns
TypeDescription
ListContextsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListContextsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListContextsResponse.Builder
Overrides

clone()

public ListContextsResponse.Builder clone()
Returns
TypeDescription
ListContextsResponse.Builder
Overrides

getContexts(int index)

public Context getContexts(int index)

The Contexts retrieved from the MetadataStore.

repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Context

getContextsBuilder(int index)

public Context.Builder getContextsBuilder(int index)

The Contexts retrieved from the MetadataStore.

repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Context.Builder

getContextsBuilderList()

public List<Context.Builder> getContextsBuilderList()

The Contexts retrieved from the MetadataStore.

repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1;

Returns
TypeDescription
List<Builder>

getContextsCount()

public int getContextsCount()

The Contexts retrieved from the MetadataStore.

repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1;

Returns
TypeDescription
int

getContextsList()

public List<Context> getContextsList()

The Contexts retrieved from the MetadataStore.

repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1;

Returns
TypeDescription
List<Context>

getContextsOrBuilder(int index)

public ContextOrBuilder getContextsOrBuilder(int index)

The Contexts retrieved from the MetadataStore.

repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ContextOrBuilder

getContextsOrBuilderList()

public List<? extends ContextOrBuilder> getContextsOrBuilderList()

The Contexts retrieved from the MetadataStore.

repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1;

Returns
TypeDescription
List<? extends com.google.cloud.aiplatform.v1beta1.ContextOrBuilder>

getDefaultInstanceForType()

public ListContextsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListContextsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A token, which can be sent as ListContextsRequest.page_token to retrieve the next page. If this field is not populated, there are no subsequent pages.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token, which can be sent as ListContextsRequest.page_token to retrieve the next page. If this field is not populated, there are no subsequent pages.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListContextsResponse other)

public ListContextsResponse.Builder mergeFrom(ListContextsResponse other)
Parameter
NameDescription
otherListContextsResponse
Returns
TypeDescription
ListContextsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListContextsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListContextsResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ListContextsResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ListContextsResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListContextsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListContextsResponse.Builder
Overrides

removeContexts(int index)

public ListContextsResponse.Builder removeContexts(int index)

The Contexts retrieved from the MetadataStore.

repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListContextsResponse.Builder

setContexts(int index, Context value)

public ListContextsResponse.Builder setContexts(int index, Context value)

The Contexts retrieved from the MetadataStore.

repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1;

Parameters
NameDescription
indexint
valueContext
Returns
TypeDescription
ListContextsResponse.Builder

setContexts(int index, Context.Builder builderForValue)

public ListContextsResponse.Builder setContexts(int index, Context.Builder builderForValue)

The Contexts retrieved from the MetadataStore.

repeated .google.cloud.aiplatform.v1beta1.Context contexts = 1;

Parameters
NameDescription
indexint
builderForValueContext.Builder
Returns
TypeDescription
ListContextsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListContextsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListContextsResponse.Builder
Overrides

setNextPageToken(String value)

public ListContextsResponse.Builder setNextPageToken(String value)

A token, which can be sent as ListContextsRequest.page_token to retrieve the next page. If this field is not populated, there are no subsequent pages.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListContextsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListContextsResponse.Builder setNextPageTokenBytes(ByteString value)

A token, which can be sent as ListContextsRequest.page_token to retrieve the next page. If this field is not populated, there are no subsequent pages.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListContextsResponse.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ListContextsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListContextsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListContextsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListContextsResponse.Builder
Overrides