Class ListHardwareResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListHardwareResponse.Builder>
com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse.Builder
All Implemented Interfaces:
ListHardwareResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListHardwareResponse

public static final class ListHardwareResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListHardwareResponse.Builder> implements ListHardwareResponseOrBuilder
 A list of hardware.
 
Protobuf type google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse
  • 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<ListHardwareResponse.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<ListHardwareResponse.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<ListHardwareResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ListHardwareResponse.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<ListHardwareResponse.Builder>
      Throws:
      IOException
    • getHardwareList

      public List<Hardware> getHardwareList()
       The list of hardware.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;
      Specified by:
      getHardwareList in interface ListHardwareResponseOrBuilder
    • getHardwareCount

      public int getHardwareCount()
       The list of hardware.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;
      Specified by:
      getHardwareCount in interface ListHardwareResponseOrBuilder
    • getHardware

      public Hardware getHardware(int index)
       The list of hardware.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;
      Specified by:
      getHardware in interface ListHardwareResponseOrBuilder
    • setHardware

      public ListHardwareResponse.Builder setHardware(int index, Hardware value)
       The list of hardware.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;
    • setHardware

      public ListHardwareResponse.Builder setHardware(int index, Hardware.Builder builderForValue)
       The list of hardware.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;
    • addHardware

      public ListHardwareResponse.Builder addHardware(Hardware value)
       The list of hardware.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;
    • addHardware

      public ListHardwareResponse.Builder addHardware(int index, Hardware value)
       The list of hardware.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;
    • addHardware

      public ListHardwareResponse.Builder addHardware(Hardware.Builder builderForValue)
       The list of hardware.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;
    • addHardware

      public ListHardwareResponse.Builder addHardware(int index, Hardware.Builder builderForValue)
       The list of hardware.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;
    • addAllHardware

      public ListHardwareResponse.Builder addAllHardware(Iterable<? extends Hardware> values)
       The list of hardware.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;
    • clearHardware

      public ListHardwareResponse.Builder clearHardware()
       The list of hardware.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;
    • removeHardware

      public ListHardwareResponse.Builder removeHardware(int index)
       The list of hardware.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;
    • getHardwareBuilder

      public Hardware.Builder getHardwareBuilder(int index)
       The list of hardware.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;
    • getHardwareOrBuilder

      public HardwareOrBuilder getHardwareOrBuilder(int index)
       The list of hardware.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;
      Specified by:
      getHardwareOrBuilder in interface ListHardwareResponseOrBuilder
    • getHardwareOrBuilderList

      public List<? extends HardwareOrBuilder> getHardwareOrBuilderList()
       The list of hardware.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;
      Specified by:
      getHardwareOrBuilderList in interface ListHardwareResponseOrBuilder
    • addHardwareBuilder

      public Hardware.Builder addHardwareBuilder()
       The list of hardware.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;
    • addHardwareBuilder

      public Hardware.Builder addHardwareBuilder(int index)
       The list of hardware.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;
    • getHardwareBuilderList

      public List<Hardware.Builder> getHardwareBuilderList()
       The list of hardware.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;
    • getNextPageToken

      public String getNextPageToken()
       A token identifying a page of results the server should return.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListHardwareResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       A token identifying a page of results the server should return.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListHardwareResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListHardwareResponse.Builder setNextPageToken(String value)
       A token identifying a page of results the server should return.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListHardwareResponse.Builder clearNextPageToken()
       A token identifying a page of results the server should return.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListHardwareResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       A token identifying a page of results the server should return.
       
      string next_page_token = 2;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.
    • getUnreachableList

      public com.google.protobuf.ProtocolStringList getUnreachableList()
       Locations that could not be reached. Only used for queries to the wildcard
       location `-`. If non-empty, it indicates that the results are incomplete.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachableList in interface ListHardwareResponseOrBuilder
      Returns:
      A list containing the unreachable.
    • getUnreachableCount

      public int getUnreachableCount()
       Locations that could not be reached. Only used for queries to the wildcard
       location `-`. If non-empty, it indicates that the results are incomplete.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachableCount in interface ListHardwareResponseOrBuilder
      Returns:
      The count of unreachable.
    • getUnreachable

      public String getUnreachable(int index)
       Locations that could not be reached. Only used for queries to the wildcard
       location `-`. If non-empty, it indicates that the results are incomplete.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachable in interface ListHardwareResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The unreachable at the given index.
    • getUnreachableBytes

      public com.google.protobuf.ByteString getUnreachableBytes(int index)
       Locations that could not be reached. Only used for queries to the wildcard
       location `-`. If non-empty, it indicates that the results are incomplete.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachableBytes in interface ListHardwareResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the unreachable at the given index.
    • setUnreachable

      public ListHardwareResponse.Builder setUnreachable(int index, String value)
       Locations that could not be reached. Only used for queries to the wildcard
       location `-`. If non-empty, it indicates that the results are incomplete.
       
      repeated string unreachable = 3;
      Parameters:
      index - The index to set the value at.
      value - The unreachable to set.
      Returns:
      This builder for chaining.
    • addUnreachable

      public ListHardwareResponse.Builder addUnreachable(String value)
       Locations that could not be reached. Only used for queries to the wildcard
       location `-`. If non-empty, it indicates that the results are incomplete.
       
      repeated string unreachable = 3;
      Parameters:
      value - The unreachable to add.
      Returns:
      This builder for chaining.
    • addAllUnreachable

      public ListHardwareResponse.Builder addAllUnreachable(Iterable<String> values)
       Locations that could not be reached. Only used for queries to the wildcard
       location `-`. If non-empty, it indicates that the results are incomplete.
       
      repeated string unreachable = 3;
      Parameters:
      values - The unreachable to add.
      Returns:
      This builder for chaining.
    • clearUnreachable

      public ListHardwareResponse.Builder clearUnreachable()
       Locations that could not be reached. Only used for queries to the wildcard
       location `-`. If non-empty, it indicates that the results are incomplete.
       
      repeated string unreachable = 3;
      Returns:
      This builder for chaining.
    • addUnreachableBytes

      public ListHardwareResponse.Builder addUnreachableBytes(com.google.protobuf.ByteString value)
       Locations that could not be reached. Only used for queries to the wildcard
       location `-`. If non-empty, it indicates that the results are incomplete.
       
      repeated string unreachable = 3;
      Parameters:
      value - The bytes of the unreachable to add.
      Returns:
      This builder for chaining.