Class Scope.Builder

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

public static final class Scope.Builder extends com.google.protobuf.GeneratedMessage.Builder<Scope.Builder> implements ScopeOrBuilder
 Scope represents a Scope in a Fleet.
 
Protobuf type google.cloud.gkehub.v1.Scope
  • 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<Scope.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

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

      public Scope.Builder mergeFrom(Scope other)
    • isInitialized

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

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

      public String getName()
       The resource name for the scope
       `projects/{project}/locations/{location}/scopes/{scope}`
       
      string name = 1;
      Specified by:
      getName in interface ScopeOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The resource name for the scope
       `projects/{project}/locations/{location}/scopes/{scope}`
       
      string name = 1;
      Specified by:
      getNameBytes in interface ScopeOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Scope.Builder setName(String value)
       The resource name for the scope
       `projects/{project}/locations/{location}/scopes/{scope}`
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Scope.Builder clearName()
       The resource name for the scope
       `projects/{project}/locations/{location}/scopes/{scope}`
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Scope.Builder setNameBytes(com.google.protobuf.ByteString value)
       The resource name for the scope
       `projects/{project}/locations/{location}/scopes/{scope}`
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getUid

      public String getUid()
       Output only. Google-generated UUID for this resource. This is unique across
       all scope resources. If a scope resource is deleted and another resource
       with the same name is created, it gets a different uid.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUid in interface ScopeOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Output only. Google-generated UUID for this resource. This is unique across
       all scope resources. If a scope resource is deleted and another resource
       with the same name is created, it gets a different uid.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUidBytes in interface ScopeOrBuilder
      Returns:
      The bytes for uid.
    • setUid

      public Scope.Builder setUid(String value)
       Output only. Google-generated UUID for this resource. This is unique across
       all scope resources. If a scope resource is deleted and another resource
       with the same name is created, it gets a different uid.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The uid to set.
      Returns:
      This builder for chaining.
    • clearUid

      public Scope.Builder clearUid()
       Output only. Google-generated UUID for this resource. This is unique across
       all scope resources. If a scope resource is deleted and another resource
       with the same name is created, it gets a different uid.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setUidBytes

      public Scope.Builder setUidBytes(com.google.protobuf.ByteString value)
       Output only. Google-generated UUID for this resource. This is unique across
       all scope resources. If a scope resource is deleted and another resource
       with the same name is created, it gets a different uid.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for uid to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. When the scope was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface ScopeOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. When the scope was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface ScopeOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Scope.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. When the scope was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Scope.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. When the scope was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Scope.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. When the scope was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Scope.Builder clearCreateTime()
       Output only. When the scope was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. When the scope was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. When the scope was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface ScopeOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. When the scope was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface ScopeOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. When the scope was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface ScopeOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Scope.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. When the scope was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Scope.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. When the scope was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Scope.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. When the scope was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Scope.Builder clearUpdateTime()
       Output only. When the scope was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. When the scope was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. When the scope was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface ScopeOrBuilder
    • hasDeleteTime

      public boolean hasDeleteTime()
       Output only. When the scope was deleted.
       
      .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasDeleteTime in interface ScopeOrBuilder
      Returns:
      Whether the deleteTime field is set.
    • getDeleteTime

      public com.google.protobuf.Timestamp getDeleteTime()
       Output only. When the scope was deleted.
       
      .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDeleteTime in interface ScopeOrBuilder
      Returns:
      The deleteTime.
    • setDeleteTime

      public Scope.Builder setDeleteTime(com.google.protobuf.Timestamp value)
       Output only. When the scope was deleted.
       
      .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setDeleteTime

      public Scope.Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. When the scope was deleted.
       
      .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeDeleteTime

      public Scope.Builder mergeDeleteTime(com.google.protobuf.Timestamp value)
       Output only. When the scope was deleted.
       
      .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearDeleteTime

      public Scope.Builder clearDeleteTime()
       Output only. When the scope was deleted.
       
      .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDeleteTimeBuilder

      public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder()
       Output only. When the scope was deleted.
       
      .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDeleteTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder()
       Output only. When the scope was deleted.
       
      .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDeleteTimeOrBuilder in interface ScopeOrBuilder
    • hasState

      public boolean hasState()
       Output only. State of the scope resource.
       
      .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasState in interface ScopeOrBuilder
      Returns:
      Whether the state field is set.
    • getState

      public ScopeLifecycleState getState()
       Output only. State of the scope resource.
       
      .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface ScopeOrBuilder
      Returns:
      The state.
    • setState

      public Scope.Builder setState(ScopeLifecycleState value)
       Output only. State of the scope resource.
       
      .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setState

      public Scope.Builder setState(ScopeLifecycleState.Builder builderForValue)
       Output only. State of the scope resource.
       
      .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeState

      public Scope.Builder mergeState(ScopeLifecycleState value)
       Output only. State of the scope resource.
       
      .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearState

      public Scope.Builder clearState()
       Output only. State of the scope resource.
       
      .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getStateBuilder

      public ScopeLifecycleState.Builder getStateBuilder()
       Output only. State of the scope resource.
       
      .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getStateOrBuilder

      public ScopeLifecycleStateOrBuilder getStateOrBuilder()
       Output only. State of the scope resource.
       
      .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateOrBuilder in interface ScopeOrBuilder
    • getNamespaceLabelsCount

      public int getNamespaceLabelsCount()
      Description copied from interface: ScopeOrBuilder
       Optional. Scope-level cluster namespace labels. For the member clusters
       bound to the Scope, these labels are applied to each namespace under the
       Scope. Scope-level labels take precedence over Namespace-level
       labels (`namespace_labels` in the Fleet Namespace resource) if they
       share a key. Keys and values must be Kubernetes-conformant.
       
      map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNamespaceLabelsCount in interface ScopeOrBuilder
    • containsNamespaceLabels

      public boolean containsNamespaceLabels(String key)
       Optional. Scope-level cluster namespace labels. For the member clusters
       bound to the Scope, these labels are applied to each namespace under the
       Scope. Scope-level labels take precedence over Namespace-level
       labels (`namespace_labels` in the Fleet Namespace resource) if they
       share a key. Keys and values must be Kubernetes-conformant.
       
      map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsNamespaceLabels in interface ScopeOrBuilder
    • getNamespaceLabels

      @Deprecated public Map<String,String> getNamespaceLabels()
      Deprecated.
      Specified by:
      getNamespaceLabels in interface ScopeOrBuilder
    • getNamespaceLabelsMap

      public Map<String,String> getNamespaceLabelsMap()
       Optional. Scope-level cluster namespace labels. For the member clusters
       bound to the Scope, these labels are applied to each namespace under the
       Scope. Scope-level labels take precedence over Namespace-level
       labels (`namespace_labels` in the Fleet Namespace resource) if they
       share a key. Keys and values must be Kubernetes-conformant.
       
      map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNamespaceLabelsMap in interface ScopeOrBuilder
    • getNamespaceLabelsOrDefault

      public String getNamespaceLabelsOrDefault(String key, String defaultValue)
       Optional. Scope-level cluster namespace labels. For the member clusters
       bound to the Scope, these labels are applied to each namespace under the
       Scope. Scope-level labels take precedence over Namespace-level
       labels (`namespace_labels` in the Fleet Namespace resource) if they
       share a key. Keys and values must be Kubernetes-conformant.
       
      map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNamespaceLabelsOrDefault in interface ScopeOrBuilder
    • getNamespaceLabelsOrThrow

      public String getNamespaceLabelsOrThrow(String key)
       Optional. Scope-level cluster namespace labels. For the member clusters
       bound to the Scope, these labels are applied to each namespace under the
       Scope. Scope-level labels take precedence over Namespace-level
       labels (`namespace_labels` in the Fleet Namespace resource) if they
       share a key. Keys and values must be Kubernetes-conformant.
       
      map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNamespaceLabelsOrThrow in interface ScopeOrBuilder
    • clearNamespaceLabels

      public Scope.Builder clearNamespaceLabels()
    • removeNamespaceLabels

      public Scope.Builder removeNamespaceLabels(String key)
       Optional. Scope-level cluster namespace labels. For the member clusters
       bound to the Scope, these labels are applied to each namespace under the
       Scope. Scope-level labels take precedence over Namespace-level
       labels (`namespace_labels` in the Fleet Namespace resource) if they
       share a key. Keys and values must be Kubernetes-conformant.
       
      map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableNamespaceLabels

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

      public Scope.Builder putNamespaceLabels(String key, String value)
       Optional. Scope-level cluster namespace labels. For the member clusters
       bound to the Scope, these labels are applied to each namespace under the
       Scope. Scope-level labels take precedence over Namespace-level
       labels (`namespace_labels` in the Fleet Namespace resource) if they
       share a key. Keys and values must be Kubernetes-conformant.
       
      map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    • putAllNamespaceLabels

      public Scope.Builder putAllNamespaceLabels(Map<String,String> values)
       Optional. Scope-level cluster namespace labels. For the member clusters
       bound to the Scope, these labels are applied to each namespace under the
       Scope. Scope-level labels take precedence over Namespace-level
       labels (`namespace_labels` in the Fleet Namespace resource) if they
       share a key. Keys and values must be Kubernetes-conformant.
       
      map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: ScopeOrBuilder
       Optional. Labels for this Scope.
       
      map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface ScopeOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Labels for this Scope.
       
      map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface ScopeOrBuilder
    • getLabels

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

      public Map<String,String> getLabelsMap()
       Optional. Labels for this Scope.
       
      map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface ScopeOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. Labels for this Scope.
       
      map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface ScopeOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Labels for this Scope.
       
      map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface ScopeOrBuilder
    • clearLabels

      public Scope.Builder clearLabels()
    • removeLabels

      public Scope.Builder removeLabels(String key)
       Optional. Labels for this Scope.
       
      map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableLabels

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

      public Scope.Builder putLabels(String key, String value)
       Optional. Labels for this Scope.
       
      map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    • putAllLabels

      public Scope.Builder putAllLabels(Map<String,String> values)
       Optional. Labels for this Scope.
       
      map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];