Class PolicyRule (1.20.1)

public final class PolicyRule extends GeneratedMessageV3 implements PolicyRuleOrBuilder

A single rule in a Policy.

Protobuf type google.iam.v2beta.PolicyRule

Implements

PolicyRuleOrBuilder

Static Fields

DENY_RULE_FIELD_NUMBER

public static final int DENY_RULE_FIELD_NUMBER
Field Value
TypeDescription
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PolicyRule getDefaultInstance()
Returns
TypeDescription
PolicyRule

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static PolicyRule.Builder newBuilder()
Returns
TypeDescription
PolicyRule.Builder

newBuilder(PolicyRule prototype)

public static PolicyRule.Builder newBuilder(PolicyRule prototype)
Parameter
NameDescription
prototypePolicyRule
Returns
TypeDescription
PolicyRule.Builder

parseDelimitedFrom(InputStream input)

public static PolicyRule parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PolicyRule
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PolicyRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PolicyRule
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static PolicyRule parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
PolicyRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PolicyRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PolicyRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PolicyRule parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PolicyRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PolicyRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PolicyRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PolicyRule parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PolicyRule
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PolicyRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PolicyRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static PolicyRule parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PolicyRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PolicyRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PolicyRule
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static PolicyRule parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PolicyRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PolicyRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PolicyRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<PolicyRule> parser()
Returns
TypeDescription
Parser<PolicyRule>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public PolicyRule getDefaultInstanceForType()
Returns
TypeDescription
PolicyRule

getDenyRule()

public DenyRule getDenyRule()

A rule for a deny policy.

.google.iam.v2beta.DenyRule deny_rule = 2;

Returns
TypeDescription
DenyRule

The denyRule.

getDenyRuleOrBuilder()

public DenyRuleOrBuilder getDenyRuleOrBuilder()

A rule for a deny policy.

.google.iam.v2beta.DenyRule deny_rule = 2;

Returns
TypeDescription
DenyRuleOrBuilder

getDescription()

public String getDescription()

A user-specified description of the rule. This value can be up to 256 characters.

string description = 1;

Returns
TypeDescription
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;

Returns
TypeDescription
ByteString

The bytes for description.

getKindCase()

public PolicyRule.KindCase getKindCase()
Returns
TypeDescription
PolicyRule.KindCase

getParserForType()

public Parser<PolicyRule> getParserForType()
Returns
TypeDescription
Parser<PolicyRule>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasDenyRule()

public boolean hasDenyRule()

A rule for a deny policy.

.google.iam.v2beta.DenyRule deny_rule = 2;

Returns
TypeDescription
boolean

Whether the denyRule field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public PolicyRule.Builder newBuilderForType()
Returns
TypeDescription
PolicyRule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PolicyRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
PolicyRule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public PolicyRule.Builder toBuilder()
Returns
TypeDescription
PolicyRule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException