Class ListAttributesResponse.Builder

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

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

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

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

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

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

      public ListAttributesResponse.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<ListAttributesResponse.Builder>
      Throws:
      IOException
    • getAttributesList

      public List<Attribute> getAttributesList()
       The list of all attributes.
       
      repeated .google.cloud.apihub.v1.Attribute attributes = 1;
      Specified by:
      getAttributesList in interface ListAttributesResponseOrBuilder
    • getAttributesCount

      public int getAttributesCount()
       The list of all attributes.
       
      repeated .google.cloud.apihub.v1.Attribute attributes = 1;
      Specified by:
      getAttributesCount in interface ListAttributesResponseOrBuilder
    • getAttributes

      public Attribute getAttributes(int index)
       The list of all attributes.
       
      repeated .google.cloud.apihub.v1.Attribute attributes = 1;
      Specified by:
      getAttributes in interface ListAttributesResponseOrBuilder
    • setAttributes

      public ListAttributesResponse.Builder setAttributes(int index, Attribute value)
       The list of all attributes.
       
      repeated .google.cloud.apihub.v1.Attribute attributes = 1;
    • setAttributes

      public ListAttributesResponse.Builder setAttributes(int index, Attribute.Builder builderForValue)
       The list of all attributes.
       
      repeated .google.cloud.apihub.v1.Attribute attributes = 1;
    • addAttributes

      public ListAttributesResponse.Builder addAttributes(Attribute value)
       The list of all attributes.
       
      repeated .google.cloud.apihub.v1.Attribute attributes = 1;
    • addAttributes

      public ListAttributesResponse.Builder addAttributes(int index, Attribute value)
       The list of all attributes.
       
      repeated .google.cloud.apihub.v1.Attribute attributes = 1;
    • addAttributes

      public ListAttributesResponse.Builder addAttributes(Attribute.Builder builderForValue)
       The list of all attributes.
       
      repeated .google.cloud.apihub.v1.Attribute attributes = 1;
    • addAttributes

      public ListAttributesResponse.Builder addAttributes(int index, Attribute.Builder builderForValue)
       The list of all attributes.
       
      repeated .google.cloud.apihub.v1.Attribute attributes = 1;
    • addAllAttributes

      public ListAttributesResponse.Builder addAllAttributes(Iterable<? extends Attribute> values)
       The list of all attributes.
       
      repeated .google.cloud.apihub.v1.Attribute attributes = 1;
    • clearAttributes

      public ListAttributesResponse.Builder clearAttributes()
       The list of all attributes.
       
      repeated .google.cloud.apihub.v1.Attribute attributes = 1;
    • removeAttributes

      public ListAttributesResponse.Builder removeAttributes(int index)
       The list of all attributes.
       
      repeated .google.cloud.apihub.v1.Attribute attributes = 1;
    • getAttributesBuilder

      public Attribute.Builder getAttributesBuilder(int index)
       The list of all attributes.
       
      repeated .google.cloud.apihub.v1.Attribute attributes = 1;
    • getAttributesOrBuilder

      public AttributeOrBuilder getAttributesOrBuilder(int index)
       The list of all attributes.
       
      repeated .google.cloud.apihub.v1.Attribute attributes = 1;
      Specified by:
      getAttributesOrBuilder in interface ListAttributesResponseOrBuilder
    • getAttributesOrBuilderList

      public List<? extends AttributeOrBuilder> getAttributesOrBuilderList()
       The list of all attributes.
       
      repeated .google.cloud.apihub.v1.Attribute attributes = 1;
      Specified by:
      getAttributesOrBuilderList in interface ListAttributesResponseOrBuilder
    • addAttributesBuilder

      public Attribute.Builder addAttributesBuilder()
       The list of all attributes.
       
      repeated .google.cloud.apihub.v1.Attribute attributes = 1;
    • addAttributesBuilder

      public Attribute.Builder addAttributesBuilder(int index)
       The list of all attributes.
       
      repeated .google.cloud.apihub.v1.Attribute attributes = 1;
    • getAttributesBuilderList

      public List<Attribute.Builder> getAttributesBuilderList()
       The list of all attributes.
       
      repeated .google.cloud.apihub.v1.Attribute attributes = 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 ListAttributesResponseOrBuilder
      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 ListAttributesResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListAttributesResponse.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 ListAttributesResponse.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 ListAttributesResponse.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.