Class Cluster.Builder

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

public static final class Cluster.Builder extends com.google.protobuf.GeneratedMessage.Builder<Cluster.Builder> implements ClusterOrBuilder
 Message describing the Cluster object.
 
Protobuf type google.cloud.visionai.v1.Cluster
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Cluster.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Cluster.Builder>
    • internalGetFieldAccessorTable

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

      public Cluster.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<Cluster.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<Cluster.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Cluster.Builder mergeFrom(Cluster other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Cluster.Builder>
    • mergeFrom

      public Cluster.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<Cluster.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Output only. Name of the resource.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface ClusterOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. Name of the resource.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface ClusterOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Cluster.Builder setName(String value)
       Output only. Name of the resource.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Cluster.Builder clearName()
       Output only. Name of the resource.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Cluster.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. Name of the resource.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The create timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface ClusterOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The create timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface ClusterOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Cluster.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The create timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Cluster.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The create timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Cluster.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The create timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Cluster.Builder clearCreateTime()
       Output only. The create timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The create timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The create timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface ClusterOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The update timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface ClusterOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The update timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface ClusterOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Cluster.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The update timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Cluster.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The update timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Cluster.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The update timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Cluster.Builder clearUpdateTime()
       Output only. The update timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The update timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The update timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface ClusterOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: ClusterOrBuilder
       Labels as key value pairs
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsCount in interface ClusterOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Labels as key value pairs
       
      map<string, string> labels = 4;
      Specified by:
      containsLabels in interface ClusterOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface ClusterOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Labels as key value pairs
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsMap in interface ClusterOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Labels as key value pairs
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsOrDefault in interface ClusterOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Labels as key value pairs
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsOrThrow in interface ClusterOrBuilder
    • clearLabels

      public Cluster.Builder clearLabels()
    • removeLabels

      public Cluster.Builder removeLabels(String key)
       Labels as key value pairs
       
      map<string, string> labels = 4;
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public Cluster.Builder putLabels(String key, String value)
       Labels as key value pairs
       
      map<string, string> labels = 4;
    • putAllLabels

      public Cluster.Builder putAllLabels(Map<String,String> values)
       Labels as key value pairs
       
      map<string, string> labels = 4;
    • getAnnotationsCount

      public int getAnnotationsCount()
      Description copied from interface: ClusterOrBuilder
       Annotations to allow clients to store small amounts of arbitrary data.
       
      map<string, string> annotations = 5;
      Specified by:
      getAnnotationsCount in interface ClusterOrBuilder
    • containsAnnotations

      public boolean containsAnnotations(String key)
       Annotations to allow clients to store small amounts of arbitrary data.
       
      map<string, string> annotations = 5;
      Specified by:
      containsAnnotations in interface ClusterOrBuilder
    • getAnnotations

      @Deprecated public Map<String,String> getAnnotations()
      Deprecated.
      Use getAnnotationsMap() instead.
      Specified by:
      getAnnotations in interface ClusterOrBuilder
    • getAnnotationsMap

      public Map<String,String> getAnnotationsMap()
       Annotations to allow clients to store small amounts of arbitrary data.
       
      map<string, string> annotations = 5;
      Specified by:
      getAnnotationsMap in interface ClusterOrBuilder
    • getAnnotationsOrDefault

      public String getAnnotationsOrDefault(String key, String defaultValue)
       Annotations to allow clients to store small amounts of arbitrary data.
       
      map<string, string> annotations = 5;
      Specified by:
      getAnnotationsOrDefault in interface ClusterOrBuilder
    • getAnnotationsOrThrow

      public String getAnnotationsOrThrow(String key)
       Annotations to allow clients to store small amounts of arbitrary data.
       
      map<string, string> annotations = 5;
      Specified by:
      getAnnotationsOrThrow in interface ClusterOrBuilder
    • clearAnnotations

      public Cluster.Builder clearAnnotations()
    • removeAnnotations

      public Cluster.Builder removeAnnotations(String key)
       Annotations to allow clients to store small amounts of arbitrary data.
       
      map<string, string> annotations = 5;
    • getMutableAnnotations

      @Deprecated public Map<String,String> getMutableAnnotations()
      Deprecated.
      Use alternate mutation accessors instead.
    • putAnnotations

      public Cluster.Builder putAnnotations(String key, String value)
       Annotations to allow clients to store small amounts of arbitrary data.
       
      map<string, string> annotations = 5;
    • putAllAnnotations

      public Cluster.Builder putAllAnnotations(Map<String,String> values)
       Annotations to allow clients to store small amounts of arbitrary data.
       
      map<string, string> annotations = 5;
    • getDataplaneServiceEndpoint

      public String getDataplaneServiceEndpoint()
       Output only. The DNS name of the data plane service
       
      string dataplane_service_endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDataplaneServiceEndpoint in interface ClusterOrBuilder
      Returns:
      The dataplaneServiceEndpoint.
    • getDataplaneServiceEndpointBytes

      public com.google.protobuf.ByteString getDataplaneServiceEndpointBytes()
       Output only. The DNS name of the data plane service
       
      string dataplane_service_endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDataplaneServiceEndpointBytes in interface ClusterOrBuilder
      Returns:
      The bytes for dataplaneServiceEndpoint.
    • setDataplaneServiceEndpoint

      public Cluster.Builder setDataplaneServiceEndpoint(String value)
       Output only. The DNS name of the data plane service
       
      string dataplane_service_endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The dataplaneServiceEndpoint to set.
      Returns:
      This builder for chaining.
    • clearDataplaneServiceEndpoint

      public Cluster.Builder clearDataplaneServiceEndpoint()
       Output only. The DNS name of the data plane service
       
      string dataplane_service_endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setDataplaneServiceEndpointBytes

      public Cluster.Builder setDataplaneServiceEndpointBytes(com.google.protobuf.ByteString value)
       Output only. The DNS name of the data plane service
       
      string dataplane_service_endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for dataplaneServiceEndpoint to set.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Output only. The current state of the cluster.
       
      .google.cloud.visionai.v1.Cluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface ClusterOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Cluster.Builder setStateValue(int value)
       Output only. The current state of the cluster.
       
      .google.cloud.visionai.v1.Cluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public Cluster.State getState()
       Output only. The current state of the cluster.
       
      .google.cloud.visionai.v1.Cluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface ClusterOrBuilder
      Returns:
      The state.
    • setState

      public Cluster.Builder setState(Cluster.State value)
       Output only. The current state of the cluster.
       
      .google.cloud.visionai.v1.Cluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Cluster.Builder clearState()
       Output only. The current state of the cluster.
       
      .google.cloud.visionai.v1.Cluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getPscTarget

      public String getPscTarget()
       Output only. The private service connection service target name.
       
      string psc_target = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPscTarget in interface ClusterOrBuilder
      Returns:
      The pscTarget.
    • getPscTargetBytes

      public com.google.protobuf.ByteString getPscTargetBytes()
       Output only. The private service connection service target name.
       
      string psc_target = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPscTargetBytes in interface ClusterOrBuilder
      Returns:
      The bytes for pscTarget.
    • setPscTarget

      public Cluster.Builder setPscTarget(String value)
       Output only. The private service connection service target name.
       
      string psc_target = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The pscTarget to set.
      Returns:
      This builder for chaining.
    • clearPscTarget

      public Cluster.Builder clearPscTarget()
       Output only. The private service connection service target name.
       
      string psc_target = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setPscTargetBytes

      public Cluster.Builder setPscTargetBytes(com.google.protobuf.ByteString value)
       Output only. The private service connection service target name.
       
      string psc_target = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for pscTarget to set.
      Returns:
      This builder for chaining.