Class ListCurationsResponse.Builder

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

public static final class ListCurationsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListCurationsResponse.Builder> implements ListCurationsResponseOrBuilder
 The [ListCurations][ApiHub.ListCurations] method's response.
 
Protobuf type google.cloud.apihub.v1.ListCurationsResponse
  • 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<ListCurationsResponse.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<ListCurationsResponse.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<ListCurationsResponse.Builder>
    • getDefaultInstanceForType

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

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

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

      public ListCurationsResponse.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<ListCurationsResponse.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<ListCurationsResponse.Builder>
    • mergeFrom

      public ListCurationsResponse.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<ListCurationsResponse.Builder>
      Throws:
      IOException
    • getCurationsList

      public List<Curation> getCurationsList()
       The curation resources present in the API hub.
       
      repeated .google.cloud.apihub.v1.Curation curations = 1;
      Specified by:
      getCurationsList in interface ListCurationsResponseOrBuilder
    • getCurationsCount

      public int getCurationsCount()
       The curation resources present in the API hub.
       
      repeated .google.cloud.apihub.v1.Curation curations = 1;
      Specified by:
      getCurationsCount in interface ListCurationsResponseOrBuilder
    • getCurations

      public Curation getCurations(int index)
       The curation resources present in the API hub.
       
      repeated .google.cloud.apihub.v1.Curation curations = 1;
      Specified by:
      getCurations in interface ListCurationsResponseOrBuilder
    • setCurations

      public ListCurationsResponse.Builder setCurations(int index, Curation value)
       The curation resources present in the API hub.
       
      repeated .google.cloud.apihub.v1.Curation curations = 1;
    • setCurations

      public ListCurationsResponse.Builder setCurations(int index, Curation.Builder builderForValue)
       The curation resources present in the API hub.
       
      repeated .google.cloud.apihub.v1.Curation curations = 1;
    • addCurations

      public ListCurationsResponse.Builder addCurations(Curation value)
       The curation resources present in the API hub.
       
      repeated .google.cloud.apihub.v1.Curation curations = 1;
    • addCurations

      public ListCurationsResponse.Builder addCurations(int index, Curation value)
       The curation resources present in the API hub.
       
      repeated .google.cloud.apihub.v1.Curation curations = 1;
    • addCurations

      public ListCurationsResponse.Builder addCurations(Curation.Builder builderForValue)
       The curation resources present in the API hub.
       
      repeated .google.cloud.apihub.v1.Curation curations = 1;
    • addCurations

      public ListCurationsResponse.Builder addCurations(int index, Curation.Builder builderForValue)
       The curation resources present in the API hub.
       
      repeated .google.cloud.apihub.v1.Curation curations = 1;
    • addAllCurations

      public ListCurationsResponse.Builder addAllCurations(Iterable<? extends Curation> values)
       The curation resources present in the API hub.
       
      repeated .google.cloud.apihub.v1.Curation curations = 1;
    • clearCurations

      public ListCurationsResponse.Builder clearCurations()
       The curation resources present in the API hub.
       
      repeated .google.cloud.apihub.v1.Curation curations = 1;
    • removeCurations

      public ListCurationsResponse.Builder removeCurations(int index)
       The curation resources present in the API hub.
       
      repeated .google.cloud.apihub.v1.Curation curations = 1;
    • getCurationsBuilder

      public Curation.Builder getCurationsBuilder(int index)
       The curation resources present in the API hub.
       
      repeated .google.cloud.apihub.v1.Curation curations = 1;
    • getCurationsOrBuilder

      public CurationOrBuilder getCurationsOrBuilder(int index)
       The curation resources present in the API hub.
       
      repeated .google.cloud.apihub.v1.Curation curations = 1;
      Specified by:
      getCurationsOrBuilder in interface ListCurationsResponseOrBuilder
    • getCurationsOrBuilderList

      public List<? extends CurationOrBuilder> getCurationsOrBuilderList()
       The curation resources present in the API hub.
       
      repeated .google.cloud.apihub.v1.Curation curations = 1;
      Specified by:
      getCurationsOrBuilderList in interface ListCurationsResponseOrBuilder
    • addCurationsBuilder

      public Curation.Builder addCurationsBuilder()
       The curation resources present in the API hub.
       
      repeated .google.cloud.apihub.v1.Curation curations = 1;
    • addCurationsBuilder

      public Curation.Builder addCurationsBuilder(int index)
       The curation resources present in the API hub.
       
      repeated .google.cloud.apihub.v1.Curation curations = 1;
    • getCurationsBuilderList

      public List<Curation.Builder> getCurationsBuilderList()
       The curation resources present in the API hub.
       
      repeated .google.cloud.apihub.v1.Curation curations = 1;
    • getNextPageToken

      public String getNextPageToken()
       A token, which can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListCurationsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

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

      public ListCurationsResponse.Builder setNextPageToken(String value)
       A token, which can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListCurationsResponse.Builder clearNextPageToken()
       A token, which can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

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