Class AclPolicy (0.75.0)

public final class AclPolicy extends GeneratedMessage implements AclPolicyOrBuilder

The ACL policy resource.

Protobuf type google.cloud.redis.cluster.v1beta1.AclPolicy

Implements

AclPolicyOrBuilder

Static Fields

CLUSTER_ACL_POLICY_ATTACHMENTS_FIELD_NUMBER

public static final int CLUSTER_ACL_POLICY_ATTACHMENTS_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

ETAG_FIELD_NUMBER

public static final int ETAG_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

RULES_FIELD_NUMBER

public static final int RULES_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AclPolicy getDefaultInstance()
Returns
Type Description
AclPolicy

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AclPolicy.Builder newBuilder()
Returns
Type Description
AclPolicy.Builder

newBuilder(AclPolicy prototype)

public static AclPolicy.Builder newBuilder(AclPolicy prototype)
Parameter
Name Description
prototype AclPolicy
Returns
Type Description
AclPolicy.Builder

parseDelimitedFrom(InputStream input)

public static AclPolicy parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AclPolicy
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AclPolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AclPolicy
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AclPolicy parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AclPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AclPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AclPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AclPolicy parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AclPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AclPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AclPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AclPolicy parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AclPolicy
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AclPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AclPolicy
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AclPolicy parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AclPolicy
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AclPolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AclPolicy
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AclPolicy parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AclPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AclPolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AclPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AclPolicy> parser()
Returns
Type Description
Parser<AclPolicy>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getClusterAclPolicyAttachments(int index)

public ClusterAclPolicyAttachment getClusterAclPolicyAttachments(int index)

Output only. The ACL policy attachment status for each attached cluster.

repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ClusterAclPolicyAttachment

getClusterAclPolicyAttachmentsCount()

public int getClusterAclPolicyAttachmentsCount()

Output only. The ACL policy attachment status for each attached cluster.

repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getClusterAclPolicyAttachmentsList()

public List<ClusterAclPolicyAttachment> getClusterAclPolicyAttachmentsList()

Output only. The ACL policy attachment status for each attached cluster.

repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<ClusterAclPolicyAttachment>

getClusterAclPolicyAttachmentsOrBuilder(int index)

public ClusterAclPolicyAttachmentOrBuilder getClusterAclPolicyAttachmentsOrBuilder(int index)

Output only. The ACL policy attachment status for each attached cluster.

repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ClusterAclPolicyAttachmentOrBuilder

getClusterAclPolicyAttachmentsOrBuilderList()

public List<? extends ClusterAclPolicyAttachmentOrBuilder> getClusterAclPolicyAttachmentsOrBuilderList()

Output only. The ACL policy attachment status for each attached cluster.

repeated .google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachment cluster_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.redis.cluster.v1beta1.ClusterAclPolicyAttachmentOrBuilder>

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp that the ACL policy was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp that the ACL policy was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public AclPolicy getDefaultInstanceForType()
Returns
Type Description
AclPolicy

getEtag()

public String getEtag()

Output only. Etag for the ACL policy.

optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Output only. Etag for the ACL policy.

optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for etag.

getName()

public String getName()

Identifier. Full resource path of the ACL policy.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Full resource path of the ACL policy.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<AclPolicy> getParserForType()
Returns
Type Description
Parser<AclPolicy>
Overrides

getRules(int index)

public AclRule getRules(int index)

Required. The ACL rules within the ACL policy.

repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
AclRule

getRulesCount()

public int getRulesCount()

Required. The ACL rules within the ACL policy.

repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getRulesList()

public List<AclRule> getRulesList()

Required. The ACL rules within the ACL policy.

repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<AclRule>

getRulesOrBuilder(int index)

public AclRuleOrBuilder getRulesOrBuilder(int index)

Required. The ACL rules within the ACL policy.

repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
AclRuleOrBuilder

getRulesOrBuilderList()

public List<? extends AclRuleOrBuilder> getRulesOrBuilderList()

Required. The ACL rules within the ACL policy.

repeated .google.cloud.redis.cluster.v1beta1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.redis.cluster.v1beta1.AclRuleOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getState()

public AclPolicy.State getState()

Output only. The state of the ACL policy.

.google.cloud.redis.cluster.v1beta1.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AclPolicy.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of the ACL policy.

.google.cloud.redis.cluster.v1beta1.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The timestamp that the ACL policy was last updated.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The timestamp that the ACL policy was last updated.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The timestamp that the ACL policy was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasEtag()

public boolean hasEtag()

Output only. Etag for the ACL policy.

optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the etag field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The timestamp that the ACL policy was last updated.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AclPolicy.Builder newBuilderForType()
Returns
Type Description
AclPolicy.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected AclPolicy.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AclPolicy.Builder
Overrides

toBuilder()

public AclPolicy.Builder toBuilder()
Returns
Type Description
AclPolicy.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException