Class AclPolicyRevision.Builder (0.75.0)

public static final class AclPolicyRevision.Builder extends GeneratedMessage.Builder<AclPolicyRevision.Builder> implements AclPolicyRevisionOrBuilder

The ACL policy revision resource.

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

Static Methods

getDescriptor()

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

Methods

addAllAttachedClusters(Iterable<String> values)

public AclPolicyRevision.Builder addAllAttachedClusters(Iterable<String> values)

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
values Iterable<String>

The attachedClusters to add.

Returns
Type Description
AclPolicyRevision.Builder

This builder for chaining.

addAttachedClusters(String value)

public AclPolicyRevision.Builder addAttachedClusters(String value)

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
value String

The attachedClusters to add.

Returns
Type Description
AclPolicyRevision.Builder

This builder for chaining.

addAttachedClustersBytes(ByteString value)

public AclPolicyRevision.Builder addAttachedClustersBytes(ByteString value)

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
value ByteString

The bytes of the attachedClusters to add.

Returns
Type Description
AclPolicyRevision.Builder

This builder for chaining.

build()

public AclPolicyRevision build()
Returns
Type Description
AclPolicyRevision

buildPartial()

public AclPolicyRevision buildPartial()
Returns
Type Description
AclPolicyRevision

clear()

public AclPolicyRevision.Builder clear()
Returns
Type Description
AclPolicyRevision.Builder
Overrides

clearAttachedClusters()

public AclPolicyRevision.Builder clearAttachedClusters()

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
AclPolicyRevision.Builder

This builder for chaining.

clearCreateTime()

public AclPolicyRevision.Builder clearCreateTime()

Output only. The timestamp that the revision was created.

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

Returns
Type Description
AclPolicyRevision.Builder

clearName()

public AclPolicyRevision.Builder clearName()

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
AclPolicyRevision.Builder

This builder for chaining.

clearRevisionNumber()

public AclPolicyRevision.Builder clearRevisionNumber()

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

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

Returns
Type Description
AclPolicyRevision.Builder

This builder for chaining.

clearSnapshot()

public AclPolicyRevision.Builder clearSnapshot()

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

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

Returns
Type Description
AclPolicyRevision.Builder

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.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The timestamp that the revision was created.

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

Returns
Type Description
Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

getSnapshot()

public AclPolicy getSnapshot()

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

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

Returns
Type Description
AclPolicy

The snapshot.

getSnapshotBuilder()

public AclPolicy.Builder getSnapshotBuilder()

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

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

Returns
Type Description
AclPolicy.Builder

getSnapshotOrBuilder()

public AclPolicyOrBuilder getSnapshotOrBuilder()

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

.google.cloud.redis.cluster.v1.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.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the snapshot field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public AclPolicyRevision.Builder mergeCreateTime(Timestamp value)

Output only. The timestamp that the revision was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
AclPolicyRevision.Builder

mergeFrom(AclPolicyRevision other)

public AclPolicyRevision.Builder mergeFrom(AclPolicyRevision other)
Parameter
Name Description
other AclPolicyRevision
Returns
Type Description
AclPolicyRevision.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AclPolicyRevision.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AclPolicyRevision.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AclPolicyRevision.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AclPolicyRevision.Builder
Overrides

mergeSnapshot(AclPolicy value)

public AclPolicyRevision.Builder mergeSnapshot(AclPolicy value)

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

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

Parameter
Name Description
value AclPolicy
Returns
Type Description
AclPolicyRevision.Builder

setAttachedClusters(int index, String value)

public AclPolicyRevision.Builder setAttachedClusters(int index, String value)

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) = { ... }

Parameters
Name Description
index int

The index to set the value at.

value String

The attachedClusters to set.

Returns
Type Description
AclPolicyRevision.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public AclPolicyRevision.Builder setCreateTime(Timestamp value)

Output only. The timestamp that the revision was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
AclPolicyRevision.Builder

setCreateTime(Timestamp.Builder builderForValue)

public AclPolicyRevision.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The timestamp that the revision was created.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AclPolicyRevision.Builder

setName(String value)

public AclPolicyRevision.Builder setName(String value)

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];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AclPolicyRevision.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AclPolicyRevision.Builder setNameBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AclPolicyRevision.Builder

This builder for chaining.

setRevisionNumber(long value)

public AclPolicyRevision.Builder setRevisionNumber(long value)

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

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

Parameter
Name Description
value long

The revisionNumber to set.

Returns
Type Description
AclPolicyRevision.Builder

This builder for chaining.

setSnapshot(AclPolicy value)

public AclPolicyRevision.Builder setSnapshot(AclPolicy value)

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

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

Parameter
Name Description
value AclPolicy
Returns
Type Description
AclPolicyRevision.Builder

setSnapshot(AclPolicy.Builder builderForValue)

public AclPolicyRevision.Builder setSnapshot(AclPolicy.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue AclPolicy.Builder
Returns
Type Description
AclPolicyRevision.Builder