Class ListClustersResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListClustersResponse.Builder>
com.google.container.v1.ListClustersResponse.Builder
All Implemented Interfaces:
ListClustersResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListClustersResponse

public static final class ListClustersResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListClustersResponse.Builder> implements ListClustersResponseOrBuilder
 ListClustersResponse is the result of ListClustersRequest.
 
Protobuf type google.container.v1.ListClustersResponse
  • 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<ListClustersResponse.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<ListClustersResponse.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<ListClustersResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ListClustersResponse.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<ListClustersResponse.Builder>
      Throws:
      IOException
    • getClustersList

      public List<Cluster> getClustersList()
       A list of clusters in the project in the specified zone, or
       across all ones.
       
      repeated .google.container.v1.Cluster clusters = 1;
      Specified by:
      getClustersList in interface ListClustersResponseOrBuilder
    • getClustersCount

      public int getClustersCount()
       A list of clusters in the project in the specified zone, or
       across all ones.
       
      repeated .google.container.v1.Cluster clusters = 1;
      Specified by:
      getClustersCount in interface ListClustersResponseOrBuilder
    • getClusters

      public Cluster getClusters(int index)
       A list of clusters in the project in the specified zone, or
       across all ones.
       
      repeated .google.container.v1.Cluster clusters = 1;
      Specified by:
      getClusters in interface ListClustersResponseOrBuilder
    • setClusters

      public ListClustersResponse.Builder setClusters(int index, Cluster value)
       A list of clusters in the project in the specified zone, or
       across all ones.
       
      repeated .google.container.v1.Cluster clusters = 1;
    • setClusters

      public ListClustersResponse.Builder setClusters(int index, Cluster.Builder builderForValue)
       A list of clusters in the project in the specified zone, or
       across all ones.
       
      repeated .google.container.v1.Cluster clusters = 1;
    • addClusters

      public ListClustersResponse.Builder addClusters(Cluster value)
       A list of clusters in the project in the specified zone, or
       across all ones.
       
      repeated .google.container.v1.Cluster clusters = 1;
    • addClusters

      public ListClustersResponse.Builder addClusters(int index, Cluster value)
       A list of clusters in the project in the specified zone, or
       across all ones.
       
      repeated .google.container.v1.Cluster clusters = 1;
    • addClusters

      public ListClustersResponse.Builder addClusters(Cluster.Builder builderForValue)
       A list of clusters in the project in the specified zone, or
       across all ones.
       
      repeated .google.container.v1.Cluster clusters = 1;
    • addClusters

      public ListClustersResponse.Builder addClusters(int index, Cluster.Builder builderForValue)
       A list of clusters in the project in the specified zone, or
       across all ones.
       
      repeated .google.container.v1.Cluster clusters = 1;
    • addAllClusters

      public ListClustersResponse.Builder addAllClusters(Iterable<? extends Cluster> values)
       A list of clusters in the project in the specified zone, or
       across all ones.
       
      repeated .google.container.v1.Cluster clusters = 1;
    • clearClusters

      public ListClustersResponse.Builder clearClusters()
       A list of clusters in the project in the specified zone, or
       across all ones.
       
      repeated .google.container.v1.Cluster clusters = 1;
    • removeClusters

      public ListClustersResponse.Builder removeClusters(int index)
       A list of clusters in the project in the specified zone, or
       across all ones.
       
      repeated .google.container.v1.Cluster clusters = 1;
    • getClustersBuilder

      public Cluster.Builder getClustersBuilder(int index)
       A list of clusters in the project in the specified zone, or
       across all ones.
       
      repeated .google.container.v1.Cluster clusters = 1;
    • getClustersOrBuilder

      public ClusterOrBuilder getClustersOrBuilder(int index)
       A list of clusters in the project in the specified zone, or
       across all ones.
       
      repeated .google.container.v1.Cluster clusters = 1;
      Specified by:
      getClustersOrBuilder in interface ListClustersResponseOrBuilder
    • getClustersOrBuilderList

      public List<? extends ClusterOrBuilder> getClustersOrBuilderList()
       A list of clusters in the project in the specified zone, or
       across all ones.
       
      repeated .google.container.v1.Cluster clusters = 1;
      Specified by:
      getClustersOrBuilderList in interface ListClustersResponseOrBuilder
    • addClustersBuilder

      public Cluster.Builder addClustersBuilder()
       A list of clusters in the project in the specified zone, or
       across all ones.
       
      repeated .google.container.v1.Cluster clusters = 1;
    • addClustersBuilder

      public Cluster.Builder addClustersBuilder(int index)
       A list of clusters in the project in the specified zone, or
       across all ones.
       
      repeated .google.container.v1.Cluster clusters = 1;
    • getClustersBuilderList

      public List<Cluster.Builder> getClustersBuilderList()
       A list of clusters in the project in the specified zone, or
       across all ones.
       
      repeated .google.container.v1.Cluster clusters = 1;
    • getMissingZonesList

      public com.google.protobuf.ProtocolStringList getMissingZonesList()
       If any zones are listed here, the list of clusters returned
       may be missing those zones.
       
      repeated string missing_zones = 2;
      Specified by:
      getMissingZonesList in interface ListClustersResponseOrBuilder
      Returns:
      A list containing the missingZones.
    • getMissingZonesCount

      public int getMissingZonesCount()
       If any zones are listed here, the list of clusters returned
       may be missing those zones.
       
      repeated string missing_zones = 2;
      Specified by:
      getMissingZonesCount in interface ListClustersResponseOrBuilder
      Returns:
      The count of missingZones.
    • getMissingZones

      public String getMissingZones(int index)
       If any zones are listed here, the list of clusters returned
       may be missing those zones.
       
      repeated string missing_zones = 2;
      Specified by:
      getMissingZones in interface ListClustersResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The missingZones at the given index.
    • getMissingZonesBytes

      public com.google.protobuf.ByteString getMissingZonesBytes(int index)
       If any zones are listed here, the list of clusters returned
       may be missing those zones.
       
      repeated string missing_zones = 2;
      Specified by:
      getMissingZonesBytes in interface ListClustersResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the missingZones at the given index.
    • setMissingZones

      public ListClustersResponse.Builder setMissingZones(int index, String value)
       If any zones are listed here, the list of clusters returned
       may be missing those zones.
       
      repeated string missing_zones = 2;
      Parameters:
      index - The index to set the value at.
      value - The missingZones to set.
      Returns:
      This builder for chaining.
    • addMissingZones

      public ListClustersResponse.Builder addMissingZones(String value)
       If any zones are listed here, the list of clusters returned
       may be missing those zones.
       
      repeated string missing_zones = 2;
      Parameters:
      value - The missingZones to add.
      Returns:
      This builder for chaining.
    • addAllMissingZones

      public ListClustersResponse.Builder addAllMissingZones(Iterable<String> values)
       If any zones are listed here, the list of clusters returned
       may be missing those zones.
       
      repeated string missing_zones = 2;
      Parameters:
      values - The missingZones to add.
      Returns:
      This builder for chaining.
    • clearMissingZones

      public ListClustersResponse.Builder clearMissingZones()
       If any zones are listed here, the list of clusters returned
       may be missing those zones.
       
      repeated string missing_zones = 2;
      Returns:
      This builder for chaining.
    • addMissingZonesBytes

      public ListClustersResponse.Builder addMissingZonesBytes(com.google.protobuf.ByteString value)
       If any zones are listed here, the list of clusters returned
       may be missing those zones.
       
      repeated string missing_zones = 2;
      Parameters:
      value - The bytes of the missingZones to add.
      Returns:
      This builder for chaining.