Class AclPolicyRevision (0.75.0)

public final class AclPolicyRevision extends GeneratedMessage implements AclPolicyRevisionOrBuilder

The ACL policy revision resource.

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

Static Fields

ATTACHED_CLUSTERS_FIELD_NUMBER

public static final int ATTACHED_CLUSTERS_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

REVISION_NUMBER_FIELD_NUMBER

public static final int REVISION_NUMBER_FIELD_NUMBER
Field Value
Type Description
int

SNAPSHOT_FIELD_NUMBER

public static final int SNAPSHOT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AclPolicyRevision getDefaultInstance()
Returns
Type Description
AclPolicyRevision

getDescriptor()

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

newBuilder()

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

newBuilder(AclPolicyRevision prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAttachedClusters(int index)

public String getAttachedClusters(int index)

Output only. A list of clusters that are attached to this ACL policy revision.

repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The attachedClusters at the given index.

getAttachedClustersBytes(int index)

public ByteString getAttachedClustersBytes(int index)

Output only. A list of clusters that are attached to this ACL policy revision.

repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the attachedClusters at the given index.

getAttachedClustersCount()

public int getAttachedClustersCount()

Output only. A list of clusters that are attached to this ACL policy revision.

repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of attachedClusters.

getAttachedClustersList()

public ProtocolStringList getAttachedClustersList()

Output only. A list of clusters that are attached to this ACL policy revision.

repeated string attached_clusters = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the attachedClusters.

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp that the revision was created.

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp that the revision was created.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public AclPolicyRevision getDefaultInstanceForType()
Returns
Type Description
AclPolicyRevision

getName()

public String getName()

Identifier. The name of the ACL policy revision. Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The name of the ACL policy revision. Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"

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

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

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

getRevisionNumber()

public long getRevisionNumber()

Output only. The revision number of the ACL policy revision.

int64 revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The revisionNumber.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSnapshot()

public AclPolicy getSnapshot()

Output only. The snapshot of the ACL policy at the time of revision creation.

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

Returns
Type Description
AclPolicy

The snapshot.

getSnapshotOrBuilder()

public AclPolicyOrBuilder getSnapshotOrBuilder()

Output only. The snapshot of the ACL policy at the time of revision creation.

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

Returns
Type Description
AclPolicyOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The timestamp that the revision was created.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasSnapshot()

public boolean hasSnapshot()

Output only. The snapshot of the ACL policy at the time of revision creation.

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

Returns
Type Description
boolean

Whether the snapshot 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 AclPolicyRevision.Builder newBuilderForType()
Returns
Type Description
AclPolicyRevision.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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