Class RBACRoleBinding.Builder

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

public static final class RBACRoleBinding.Builder extends com.google.protobuf.GeneratedMessage.Builder<RBACRoleBinding.Builder> implements RBACRoleBindingOrBuilder
 RBACRoleBinding represents a rbacrolebinding across the Fleet
 
Protobuf type google.cloud.gkehub.v1.RBACRoleBinding
  • 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<RBACRoleBinding.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

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

      public RBACRoleBinding.Builder mergeFrom(RBACRoleBinding other)
    • isInitialized

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

      public RBACRoleBinding.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<RBACRoleBinding.Builder>
      Throws:
      IOException
    • getPrincipalCase

      public RBACRoleBinding.PrincipalCase getPrincipalCase()
      Specified by:
      getPrincipalCase in interface RBACRoleBindingOrBuilder
    • clearPrincipal

      public RBACRoleBinding.Builder clearPrincipal()
    • hasUser

      public boolean hasUser()
       user is the name of the user as seen by the kubernetes cluster, example
       "alice" or "alice@domain.tld"
       
      string user = 7;
      Specified by:
      hasUser in interface RBACRoleBindingOrBuilder
      Returns:
      Whether the user field is set.
    • getUser

      public String getUser()
       user is the name of the user as seen by the kubernetes cluster, example
       "alice" or "alice@domain.tld"
       
      string user = 7;
      Specified by:
      getUser in interface RBACRoleBindingOrBuilder
      Returns:
      The user.
    • getUserBytes

      public com.google.protobuf.ByteString getUserBytes()
       user is the name of the user as seen by the kubernetes cluster, example
       "alice" or "alice@domain.tld"
       
      string user = 7;
      Specified by:
      getUserBytes in interface RBACRoleBindingOrBuilder
      Returns:
      The bytes for user.
    • setUser

      public RBACRoleBinding.Builder setUser(String value)
       user is the name of the user as seen by the kubernetes cluster, example
       "alice" or "alice@domain.tld"
       
      string user = 7;
      Parameters:
      value - The user to set.
      Returns:
      This builder for chaining.
    • clearUser

      public RBACRoleBinding.Builder clearUser()
       user is the name of the user as seen by the kubernetes cluster, example
       "alice" or "alice@domain.tld"
       
      string user = 7;
      Returns:
      This builder for chaining.
    • setUserBytes

      public RBACRoleBinding.Builder setUserBytes(com.google.protobuf.ByteString value)
       user is the name of the user as seen by the kubernetes cluster, example
       "alice" or "alice@domain.tld"
       
      string user = 7;
      Parameters:
      value - The bytes for user to set.
      Returns:
      This builder for chaining.
    • hasGroup

      public boolean hasGroup()
       group is the group, as seen by the kubernetes cluster.
       
      string group = 8;
      Specified by:
      hasGroup in interface RBACRoleBindingOrBuilder
      Returns:
      Whether the group field is set.
    • getGroup

      public String getGroup()
       group is the group, as seen by the kubernetes cluster.
       
      string group = 8;
      Specified by:
      getGroup in interface RBACRoleBindingOrBuilder
      Returns:
      The group.
    • getGroupBytes

      public com.google.protobuf.ByteString getGroupBytes()
       group is the group, as seen by the kubernetes cluster.
       
      string group = 8;
      Specified by:
      getGroupBytes in interface RBACRoleBindingOrBuilder
      Returns:
      The bytes for group.
    • setGroup

      public RBACRoleBinding.Builder setGroup(String value)
       group is the group, as seen by the kubernetes cluster.
       
      string group = 8;
      Parameters:
      value - The group to set.
      Returns:
      This builder for chaining.
    • clearGroup

      public RBACRoleBinding.Builder clearGroup()
       group is the group, as seen by the kubernetes cluster.
       
      string group = 8;
      Returns:
      This builder for chaining.
    • setGroupBytes

      public RBACRoleBinding.Builder setGroupBytes(com.google.protobuf.ByteString value)
       group is the group, as seen by the kubernetes cluster.
       
      string group = 8;
      Parameters:
      value - The bytes for group to set.
      Returns:
      This builder for chaining.
    • getName

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

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

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

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

      public RBACRoleBinding.Builder setNameBytes(com.google.protobuf.ByteString value)
       The resource name for the rbacrolebinding
       `projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}`
       or
       `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`
       
      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 rbacrolebinding resources. If a rbacrolebinding 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 RBACRoleBindingOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Output only. Google-generated UUID for this resource. This is unique across
       all rbacrolebinding resources. If a rbacrolebinding 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 RBACRoleBindingOrBuilder
      Returns:
      The bytes for uid.
    • setUid

      public RBACRoleBinding.Builder setUid(String value)
       Output only. Google-generated UUID for this resource. This is unique across
       all rbacrolebinding resources. If a rbacrolebinding 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 RBACRoleBinding.Builder clearUid()
       Output only. Google-generated UUID for this resource. This is unique across
       all rbacrolebinding resources. If a rbacrolebinding 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 RBACRoleBinding.Builder setUidBytes(com.google.protobuf.ByteString value)
       Output only. Google-generated UUID for this resource. This is unique across
       all rbacrolebinding resources. If a rbacrolebinding 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 rbacrolebinding was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface RBACRoleBindingOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

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

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

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

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

      public RBACRoleBinding.Builder clearCreateTime()
       Output only. When the rbacrolebinding 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 rbacrolebinding 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 rbacrolebinding was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface RBACRoleBindingOrBuilder
    • hasUpdateTime

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

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

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

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

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

      public RBACRoleBinding.Builder clearUpdateTime()
       Output only. When the rbacrolebinding 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 rbacrolebinding 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 rbacrolebinding was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface RBACRoleBindingOrBuilder
    • hasDeleteTime

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

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

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

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

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

      public RBACRoleBinding.Builder clearDeleteTime()
       Output only. When the rbacrolebinding 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 rbacrolebinding 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 rbacrolebinding was deleted.
       
      .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDeleteTimeOrBuilder in interface RBACRoleBindingOrBuilder
    • hasState

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

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

       Output only. State of the rbacrolebinding resource.
       
      .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setState

       Output only. State of the rbacrolebinding resource.
       
      .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeState

       Output only. State of the rbacrolebinding resource.
       
      .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearState

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

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

      public RBACRoleBindingLifecycleStateOrBuilder getStateOrBuilder()
       Output only. State of the rbacrolebinding resource.
       
      .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateOrBuilder in interface RBACRoleBindingOrBuilder
    • hasRole

      public boolean hasRole()
       Required. Role to bind to the principal
       
      .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasRole in interface RBACRoleBindingOrBuilder
      Returns:
      Whether the role field is set.
    • getRole

      public RBACRoleBinding.Role getRole()
       Required. Role to bind to the principal
       
      .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRole in interface RBACRoleBindingOrBuilder
      Returns:
      The role.
    • setRole

       Required. Role to bind to the principal
       
      .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED];
    • setRole

      public RBACRoleBinding.Builder setRole(RBACRoleBinding.Role.Builder builderForValue)
       Required. Role to bind to the principal
       
      .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED];
    • mergeRole

       Required. Role to bind to the principal
       
      .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED];
    • clearRole

      public RBACRoleBinding.Builder clearRole()
       Required. Role to bind to the principal
       
      .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED];
    • getRoleBuilder

      public RBACRoleBinding.Role.Builder getRoleBuilder()
       Required. Role to bind to the principal
       
      .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED];
    • getRoleOrBuilder

      public RBACRoleBinding.RoleOrBuilder getRoleOrBuilder()
       Required. Role to bind to the principal
       
      .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRoleOrBuilder in interface RBACRoleBindingOrBuilder
    • getLabelsCount

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

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

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

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

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

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

      public RBACRoleBinding.Builder clearLabels()
    • removeLabels

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

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

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

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