Class 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.GeneratedMessageV3.Builder<ListContextsResponse.Builder>
    implements ListContextsResponseOrBuilder
     Response message for
     [MetadataService.ListContexts][google.cloud.aiplatform.v1.MetadataService.ListContexts].
     
    Protobuf type google.cloud.aiplatform.v1.ListContextsResponse
    • Method Detail

      • getDescriptor

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

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

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public ListContextsResponse.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ListContextsResponse.Builder>
      • setField

        public ListContextsResponse.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ListContextsResponse.Builder>
      • clearField

        public ListContextsResponse.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ListContextsResponse.Builder>
      • clearOneof

        public ListContextsResponse.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ListContextsResponse.Builder>
      • setRepeatedField

        public ListContextsResponse.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             int index,
                                                             Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ListContextsResponse.Builder>
      • addRepeatedField

        public ListContextsResponse.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ListContextsResponse.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • getContextsCount

        public int getContextsCount()
         The Contexts retrieved from the MetadataStore.
         
        repeated .google.cloud.aiplatform.v1.Context contexts = 1;
        Specified by:
        getContextsCount 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​(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;
      • 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.
      • setUnknownFields

        public final ListContextsResponse.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ListContextsResponse.Builder>
      • mergeUnknownFields

        public final ListContextsResponse.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ListContextsResponse.Builder>