Class ListContextsResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListContextsResponse.Builder>
com.google.cloud.aiplatform.v1.ListContextsResponse.Builder
All Implemented Interfaces:
ListContextsResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListContextsResponse

public static final class ListContextsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListContextsResponse.Builder> implements ListContextsResponseOrBuilder
 Response message for
 [MetadataService.ListContexts][google.cloud.aiplatform.v1.MetadataService.ListContexts].
 
Protobuf type google.cloud.aiplatform.v1.ListContextsResponse
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ListContextsResponse.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ListContextsResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ListContextsResponse.Builder>
    • getDefaultInstanceForType

      public ListContextsResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ListContextsResponse build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ListContextsResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ListContextsResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ListContextsResponse.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ListContextsResponse.Builder>
    • mergeFrom

      public ListContextsResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ListContextsResponse.Builder>
      Throws:
      IOException
    • getContextsList

      public List<Context> getContextsList()
       The Contexts retrieved from the MetadataStore.
       
      repeated .google.cloud.aiplatform.v1.Context contexts = 1;
      Specified by:
      getContextsList in interface ListContextsResponseOrBuilder
    • getContextsCount

      public int getContextsCount()
       The Contexts retrieved from the MetadataStore.
       
      repeated .google.cloud.aiplatform.v1.Context contexts = 1;
      Specified by:
      getContextsCount in interface ListContextsResponseOrBuilder
    • getContexts

      public Context getContexts(int index)
       The Contexts retrieved from the MetadataStore.
       
      repeated .google.cloud.aiplatform.v1.Context contexts = 1;
      Specified by:
      getContexts in interface ListContextsResponseOrBuilder
    • setContexts

      public ListContextsResponse.Builder setContexts(int index, Context value)
       The Contexts retrieved from the MetadataStore.
       
      repeated .google.cloud.aiplatform.v1.Context contexts = 1;
    • setContexts

      public ListContextsResponse.Builder setContexts(int index, Context.Builder builderForValue)
       The Contexts retrieved from the MetadataStore.
       
      repeated .google.cloud.aiplatform.v1.Context contexts = 1;
    • addContexts

      public ListContextsResponse.Builder addContexts(Context value)
       The Contexts retrieved from the MetadataStore.
       
      repeated .google.cloud.aiplatform.v1.Context contexts = 1;
    • addContexts

      public ListContextsResponse.Builder addContexts(int index, Context value)
       The Contexts retrieved from the MetadataStore.
       
      repeated .google.cloud.aiplatform.v1.Context contexts = 1;
    • addContexts

      public ListContextsResponse.Builder addContexts(Context.Builder builderForValue)
       The Contexts retrieved from the MetadataStore.
       
      repeated .google.cloud.aiplatform.v1.Context contexts = 1;
    • addContexts

      public ListContextsResponse.Builder addContexts(int index, Context.Builder builderForValue)
       The Contexts retrieved from the MetadataStore.
       
      repeated .google.cloud.aiplatform.v1.Context contexts = 1;
    • addAllContexts

      public ListContextsResponse.Builder addAllContexts(Iterable<? extends Context> values)
       The Contexts retrieved from the MetadataStore.
       
      repeated .google.cloud.aiplatform.v1.Context contexts = 1;
    • clearContexts

      public ListContextsResponse.Builder clearContexts()
       The Contexts retrieved from the MetadataStore.
       
      repeated .google.cloud.aiplatform.v1.Context contexts = 1;
    • removeContexts

      public ListContextsResponse.Builder removeContexts(int index)
       The Contexts retrieved from the MetadataStore.
       
      repeated .google.cloud.aiplatform.v1.Context contexts = 1;
    • getContextsBuilder

      public Context.Builder getContextsBuilder(int index)
       The Contexts retrieved from the MetadataStore.
       
      repeated .google.cloud.aiplatform.v1.Context contexts = 1;
    • getContextsOrBuilder

      public ContextOrBuilder getContextsOrBuilder(int index)
       The Contexts retrieved from the MetadataStore.
       
      repeated .google.cloud.aiplatform.v1.Context contexts = 1;
      Specified by:
      getContextsOrBuilder in interface ListContextsResponseOrBuilder
    • getContextsOrBuilderList

      public List<? extends ContextOrBuilder> getContextsOrBuilderList()
       The Contexts retrieved from the MetadataStore.
       
      repeated .google.cloud.aiplatform.v1.Context contexts = 1;
      Specified by:
      getContextsOrBuilderList in interface ListContextsResponseOrBuilder
    • addContextsBuilder

      public Context.Builder addContextsBuilder()
       The Contexts retrieved from the MetadataStore.
       
      repeated .google.cloud.aiplatform.v1.Context contexts = 1;
    • addContextsBuilder

      public Context.Builder addContextsBuilder(int index)
       The Contexts retrieved from the MetadataStore.
       
      repeated .google.cloud.aiplatform.v1.Context contexts = 1;
    • getContextsBuilderList

      public List<Context.Builder> getContextsBuilderList()
       The Contexts retrieved from the MetadataStore.
       
      repeated .google.cloud.aiplatform.v1.Context contexts = 1;
    • getNextPageToken

      public String getNextPageToken()
       A token, which can be sent as
       [ListContextsRequest.page_token][google.cloud.aiplatform.v1.ListContextsRequest.page_token]
       to retrieve the next page.
       If this field is not populated, there are no subsequent pages.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListContextsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       A token, which can be sent as
       [ListContextsRequest.page_token][google.cloud.aiplatform.v1.ListContextsRequest.page_token]
       to retrieve the next page.
       If this field is not populated, there are no subsequent pages.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListContextsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListContextsResponse.Builder setNextPageToken(String value)
       A token, which can be sent as
       [ListContextsRequest.page_token][google.cloud.aiplatform.v1.ListContextsRequest.page_token]
       to retrieve the next page.
       If this field is not populated, there are no subsequent pages.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListContextsResponse.Builder clearNextPageToken()
       A token, which can be sent as
       [ListContextsRequest.page_token][google.cloud.aiplatform.v1.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:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListContextsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       A token, which can be sent as
       [ListContextsRequest.page_token][google.cloud.aiplatform.v1.ListContextsRequest.page_token]
       to retrieve the next page.
       If this field is not populated, there are no subsequent pages.
       
      string next_page_token = 2;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.