public static final class PolicyRule.Builder extends GeneratedMessageV3.Builder<PolicyRule.Builder> implements PolicyRuleOrBuilder
A single rule in a Policy
.
Protobuf type google.iam.v2beta.PolicyRule
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > PolicyRule.BuilderImplements
PolicyRuleOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PolicyRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
PolicyRule.Builder |
build()
public PolicyRule build()
Type | Description |
PolicyRule |
buildPartial()
public PolicyRule buildPartial()
Type | Description |
PolicyRule |
clear()
public PolicyRule.Builder clear()
Type | Description |
PolicyRule.Builder |
clearDenyRule()
public PolicyRule.Builder clearDenyRule()
A rule for a deny policy.
.google.iam.v2beta.DenyRule deny_rule = 2;
Type | Description |
PolicyRule.Builder |
clearDescription()
public PolicyRule.Builder clearDescription()
A user-specified description of the rule. This value can be up to 256 characters.
string description = 1;
Type | Description |
PolicyRule.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public PolicyRule.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
PolicyRule.Builder |
clearKind()
public PolicyRule.Builder clearKind()
Type | Description |
PolicyRule.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public PolicyRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
PolicyRule.Builder |
clone()
public PolicyRule.Builder clone()
Type | Description |
PolicyRule.Builder |
getDefaultInstanceForType()
public PolicyRule getDefaultInstanceForType()
Type | Description |
PolicyRule |
getDenyRule()
public DenyRule getDenyRule()
A rule for a deny policy.
.google.iam.v2beta.DenyRule deny_rule = 2;
Type | Description |
DenyRule | The denyRule. |
getDenyRuleBuilder()
public DenyRule.Builder getDenyRuleBuilder()
A rule for a deny policy.
.google.iam.v2beta.DenyRule deny_rule = 2;
Type | Description |
DenyRule.Builder |
getDenyRuleOrBuilder()
public DenyRuleOrBuilder getDenyRuleOrBuilder()
A rule for a deny policy.
.google.iam.v2beta.DenyRule deny_rule = 2;
Type | Description |
DenyRuleOrBuilder |
getDescription()
public String getDescription()
A user-specified description of the rule. This value can be up to 256 characters.
string description = 1;
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
A user-specified description of the rule. This value can be up to 256 characters.
string description = 1;
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getKindCase()
public PolicyRule.KindCase getKindCase()
Type | Description |
PolicyRule.KindCase |
hasDenyRule()
public boolean hasDenyRule()
A rule for a deny policy.
.google.iam.v2beta.DenyRule deny_rule = 2;
Type | Description |
boolean | Whether the denyRule field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeDenyRule(DenyRule value)
public PolicyRule.Builder mergeDenyRule(DenyRule value)
A rule for a deny policy.
.google.iam.v2beta.DenyRule deny_rule = 2;
Name | Description |
value | DenyRule |
Type | Description |
PolicyRule.Builder |
mergeFrom(PolicyRule other)
public PolicyRule.Builder mergeFrom(PolicyRule other)
Name | Description |
other | PolicyRule |
Type | Description |
PolicyRule.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PolicyRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PolicyRule.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public PolicyRule.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
PolicyRule.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PolicyRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
PolicyRule.Builder |
setDenyRule(DenyRule value)
public PolicyRule.Builder setDenyRule(DenyRule value)
A rule for a deny policy.
.google.iam.v2beta.DenyRule deny_rule = 2;
Name | Description |
value | DenyRule |
Type | Description |
PolicyRule.Builder |
setDenyRule(DenyRule.Builder builderForValue)
public PolicyRule.Builder setDenyRule(DenyRule.Builder builderForValue)
A rule for a deny policy.
.google.iam.v2beta.DenyRule deny_rule = 2;
Name | Description |
builderForValue | DenyRule.Builder |
Type | Description |
PolicyRule.Builder |
setDescription(String value)
public PolicyRule.Builder setDescription(String value)
A user-specified description of the rule. This value can be up to 256 characters.
string description = 1;
Name | Description |
value | String The description to set. |
Type | Description |
PolicyRule.Builder | This builder for chaining. |
setDescriptionBytes(ByteString value)
public PolicyRule.Builder setDescriptionBytes(ByteString value)
A user-specified description of the rule. This value can be up to 256 characters.
string description = 1;
Name | Description |
value | ByteString The bytes for description to set. |
Type | Description |
PolicyRule.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public PolicyRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
PolicyRule.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PolicyRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
PolicyRule.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final PolicyRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
PolicyRule.Builder |