Class V1Rbac.ClusterRole.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V1Rbac.ClusterRole.Builder>
io.kubernetes.client.proto.V1Rbac.ClusterRole.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1Rbac.ClusterRoleOrBuilder, Cloneable
Enclosing class:
V1Rbac.ClusterRole

public static final class V1Rbac.ClusterRole.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1Rbac.ClusterRole.Builder> implements V1Rbac.ClusterRoleOrBuilder
 ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.
 
Protobuf type k8s.io.api.rbac.v1.ClusterRole
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1Rbac.ClusterRole.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.GeneratedMessageV3.Builder<V1Rbac.ClusterRole.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.GeneratedMessageV3.Builder<V1Rbac.ClusterRole.Builder>
    • getDefaultInstanceForType

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

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

      public V1Rbac.ClusterRole buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<V1Rbac.ClusterRole.Builder>
    • setField

      public V1Rbac.ClusterRole.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Rbac.ClusterRole.Builder>
    • clearField

      public V1Rbac.ClusterRole.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Rbac.ClusterRole.Builder>
    • clearOneof

      public V1Rbac.ClusterRole.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1Rbac.ClusterRole.Builder>
    • setRepeatedField

      public V1Rbac.ClusterRole.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Rbac.ClusterRole.Builder>
    • addRepeatedField

      public V1Rbac.ClusterRole.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Rbac.ClusterRole.Builder>
    • mergeFrom

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

    • isInitialized

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

      public V1Rbac.ClusterRole.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<V1Rbac.ClusterRole.Builder>
      Throws:
      IOException
    • hasMetadata

      public boolean hasMetadata()
       Standard object's metadata.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
      Specified by:
      hasMetadata in interface V1Rbac.ClusterRoleOrBuilder
    • getMetadata

      public Meta.ObjectMeta getMetadata()
       Standard object's metadata.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
      Specified by:
      getMetadata in interface V1Rbac.ClusterRoleOrBuilder
    • setMetadata

      public V1Rbac.ClusterRole.Builder setMetadata(Meta.ObjectMeta value)
       Standard object's metadata.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
    • setMetadata

      public V1Rbac.ClusterRole.Builder setMetadata(Meta.ObjectMeta.Builder builderForValue)
       Standard object's metadata.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
    • mergeMetadata

      public V1Rbac.ClusterRole.Builder mergeMetadata(Meta.ObjectMeta value)
       Standard object's metadata.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
    • clearMetadata

      public V1Rbac.ClusterRole.Builder clearMetadata()
       Standard object's metadata.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
    • getMetadataBuilder

      public Meta.ObjectMeta.Builder getMetadataBuilder()
       Standard object's metadata.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
    • getMetadataOrBuilder

      public Meta.ObjectMetaOrBuilder getMetadataOrBuilder()
       Standard object's metadata.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
      Specified by:
      getMetadataOrBuilder in interface V1Rbac.ClusterRoleOrBuilder
    • getRulesList

      public List<V1Rbac.PolicyRule> getRulesList()
       Rules holds all the PolicyRules for this ClusterRole
       +optional
       
      repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2;
      Specified by:
      getRulesList in interface V1Rbac.ClusterRoleOrBuilder
    • getRulesCount

      public int getRulesCount()
       Rules holds all the PolicyRules for this ClusterRole
       +optional
       
      repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2;
      Specified by:
      getRulesCount in interface V1Rbac.ClusterRoleOrBuilder
    • getRules

      public V1Rbac.PolicyRule getRules(int index)
       Rules holds all the PolicyRules for this ClusterRole
       +optional
       
      repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2;
      Specified by:
      getRules in interface V1Rbac.ClusterRoleOrBuilder
    • setRules

      public V1Rbac.ClusterRole.Builder setRules(int index, V1Rbac.PolicyRule value)
       Rules holds all the PolicyRules for this ClusterRole
       +optional
       
      repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2;
    • setRules

      public V1Rbac.ClusterRole.Builder setRules(int index, V1Rbac.PolicyRule.Builder builderForValue)
       Rules holds all the PolicyRules for this ClusterRole
       +optional
       
      repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2;
    • addRules

       Rules holds all the PolicyRules for this ClusterRole
       +optional
       
      repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2;
    • addRules

      public V1Rbac.ClusterRole.Builder addRules(int index, V1Rbac.PolicyRule value)
       Rules holds all the PolicyRules for this ClusterRole
       +optional
       
      repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2;
    • addRules

      public V1Rbac.ClusterRole.Builder addRules(V1Rbac.PolicyRule.Builder builderForValue)
       Rules holds all the PolicyRules for this ClusterRole
       +optional
       
      repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2;
    • addRules

      public V1Rbac.ClusterRole.Builder addRules(int index, V1Rbac.PolicyRule.Builder builderForValue)
       Rules holds all the PolicyRules for this ClusterRole
       +optional
       
      repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2;
    • addAllRules

      public V1Rbac.ClusterRole.Builder addAllRules(Iterable<? extends V1Rbac.PolicyRule> values)
       Rules holds all the PolicyRules for this ClusterRole
       +optional
       
      repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2;
    • clearRules

      public V1Rbac.ClusterRole.Builder clearRules()
       Rules holds all the PolicyRules for this ClusterRole
       +optional
       
      repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2;
    • removeRules

      public V1Rbac.ClusterRole.Builder removeRules(int index)
       Rules holds all the PolicyRules for this ClusterRole
       +optional
       
      repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2;
    • getRulesBuilder

      public V1Rbac.PolicyRule.Builder getRulesBuilder(int index)
       Rules holds all the PolicyRules for this ClusterRole
       +optional
       
      repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2;
    • getRulesOrBuilder

      public V1Rbac.PolicyRuleOrBuilder getRulesOrBuilder(int index)
       Rules holds all the PolicyRules for this ClusterRole
       +optional
       
      repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2;
      Specified by:
      getRulesOrBuilder in interface V1Rbac.ClusterRoleOrBuilder
    • getRulesOrBuilderList

      public List<? extends V1Rbac.PolicyRuleOrBuilder> getRulesOrBuilderList()
       Rules holds all the PolicyRules for this ClusterRole
       +optional
       
      repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2;
      Specified by:
      getRulesOrBuilderList in interface V1Rbac.ClusterRoleOrBuilder
    • addRulesBuilder

      public V1Rbac.PolicyRule.Builder addRulesBuilder()
       Rules holds all the PolicyRules for this ClusterRole
       +optional
       
      repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2;
    • addRulesBuilder

      public V1Rbac.PolicyRule.Builder addRulesBuilder(int index)
       Rules holds all the PolicyRules for this ClusterRole
       +optional
       
      repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2;
    • getRulesBuilderList

      public List<V1Rbac.PolicyRule.Builder> getRulesBuilderList()
       Rules holds all the PolicyRules for this ClusterRole
       +optional
       
      repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2;
    • hasAggregationRule

      public boolean hasAggregationRule()
       AggregationRule is an optional field that describes how to build the Rules for this ClusterRole.
       If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be
       stomped by the controller.
       +optional
       
      optional .k8s.io.api.rbac.v1.AggregationRule aggregationRule = 3;
      Specified by:
      hasAggregationRule in interface V1Rbac.ClusterRoleOrBuilder
    • getAggregationRule

      public V1Rbac.AggregationRule getAggregationRule()
       AggregationRule is an optional field that describes how to build the Rules for this ClusterRole.
       If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be
       stomped by the controller.
       +optional
       
      optional .k8s.io.api.rbac.v1.AggregationRule aggregationRule = 3;
      Specified by:
      getAggregationRule in interface V1Rbac.ClusterRoleOrBuilder
    • setAggregationRule

      public V1Rbac.ClusterRole.Builder setAggregationRule(V1Rbac.AggregationRule value)
       AggregationRule is an optional field that describes how to build the Rules for this ClusterRole.
       If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be
       stomped by the controller.
       +optional
       
      optional .k8s.io.api.rbac.v1.AggregationRule aggregationRule = 3;
    • setAggregationRule

      public V1Rbac.ClusterRole.Builder setAggregationRule(V1Rbac.AggregationRule.Builder builderForValue)
       AggregationRule is an optional field that describes how to build the Rules for this ClusterRole.
       If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be
       stomped by the controller.
       +optional
       
      optional .k8s.io.api.rbac.v1.AggregationRule aggregationRule = 3;
    • mergeAggregationRule

      public V1Rbac.ClusterRole.Builder mergeAggregationRule(V1Rbac.AggregationRule value)
       AggregationRule is an optional field that describes how to build the Rules for this ClusterRole.
       If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be
       stomped by the controller.
       +optional
       
      optional .k8s.io.api.rbac.v1.AggregationRule aggregationRule = 3;
    • clearAggregationRule

      public V1Rbac.ClusterRole.Builder clearAggregationRule()
       AggregationRule is an optional field that describes how to build the Rules for this ClusterRole.
       If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be
       stomped by the controller.
       +optional
       
      optional .k8s.io.api.rbac.v1.AggregationRule aggregationRule = 3;
    • getAggregationRuleBuilder

      public V1Rbac.AggregationRule.Builder getAggregationRuleBuilder()
       AggregationRule is an optional field that describes how to build the Rules for this ClusterRole.
       If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be
       stomped by the controller.
       +optional
       
      optional .k8s.io.api.rbac.v1.AggregationRule aggregationRule = 3;
    • getAggregationRuleOrBuilder

      public V1Rbac.AggregationRuleOrBuilder getAggregationRuleOrBuilder()
       AggregationRule is an optional field that describes how to build the Rules for this ClusterRole.
       If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be
       stomped by the controller.
       +optional
       
      optional .k8s.io.api.rbac.v1.AggregationRule aggregationRule = 3;
      Specified by:
      getAggregationRuleOrBuilder in interface V1Rbac.ClusterRoleOrBuilder
    • setUnknownFields

      public final V1Rbac.ClusterRole.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1Rbac.ClusterRole.Builder>
    • mergeUnknownFields

      public final V1Rbac.ClusterRole.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1Rbac.ClusterRole.Builder>