Class AclPolicy.Builder (0.49.0)

public static final class AclPolicy.Builder extends GeneratedMessage.Builder<AclPolicy.Builder> implements AclPolicyOrBuilder

The ACL policy resource.

Protobuf type google.cloud.memorystore.v1.AclPolicy

Implements

AclPolicyOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllInstanceAclPolicyAttachments(Iterable<? extends InstanceAclPolicyAttachment> values)

public AclPolicy.Builder addAllInstanceAclPolicyAttachments(Iterable<? extends InstanceAclPolicyAttachment> values)

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

repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment>
Returns
Type Description
AclPolicy.Builder

addAllRules(Iterable<? extends AclRule> values)

public AclPolicy.Builder addAllRules(Iterable<? extends AclRule> values)

Required. The ACL rules within the ACL policy.

repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.memorystore.v1.AclRule>
Returns
Type Description
AclPolicy.Builder

addInstanceAclPolicyAttachments(InstanceAclPolicyAttachment value)

public AclPolicy.Builder addInstanceAclPolicyAttachments(InstanceAclPolicyAttachment value)

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

repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value InstanceAclPolicyAttachment
Returns
Type Description
AclPolicy.Builder

addInstanceAclPolicyAttachments(InstanceAclPolicyAttachment.Builder builderForValue)

public AclPolicy.Builder addInstanceAclPolicyAttachments(InstanceAclPolicyAttachment.Builder builderForValue)

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

repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

addInstanceAclPolicyAttachments(int index, InstanceAclPolicyAttachment value)

public AclPolicy.Builder addInstanceAclPolicyAttachments(int index, InstanceAclPolicyAttachment value)

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

repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value InstanceAclPolicyAttachment
Returns
Type Description
AclPolicy.Builder

addInstanceAclPolicyAttachments(int index, InstanceAclPolicyAttachment.Builder builderForValue)

public AclPolicy.Builder addInstanceAclPolicyAttachments(int index, InstanceAclPolicyAttachment.Builder builderForValue)

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

repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue InstanceAclPolicyAttachment.Builder
Returns
Type Description
AclPolicy.Builder

addInstanceAclPolicyAttachmentsBuilder()

public InstanceAclPolicyAttachment.Builder addInstanceAclPolicyAttachmentsBuilder()

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

repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
InstanceAclPolicyAttachment.Builder

addInstanceAclPolicyAttachmentsBuilder(int index)

public InstanceAclPolicyAttachment.Builder addInstanceAclPolicyAttachmentsBuilder(int index)

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

repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
InstanceAclPolicyAttachment.Builder

addRules(AclRule value)

public AclPolicy.Builder addRules(AclRule value)

Required. The ACL rules within the ACL policy.

repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AclRule
Returns
Type Description
AclPolicy.Builder

addRules(AclRule.Builder builderForValue)

public AclPolicy.Builder addRules(AclRule.Builder builderForValue)

Required. The ACL rules within the ACL policy.

repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED];

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

addRules(int index, AclRule value)

public AclPolicy.Builder addRules(int index, AclRule value)

Required. The ACL rules within the ACL policy.

repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value AclRule
Returns
Type Description
AclPolicy.Builder

addRules(int index, AclRule.Builder builderForValue)

public AclPolicy.Builder addRules(int index, AclRule.Builder builderForValue)

Required. The ACL rules within the ACL policy.

repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue AclRule.Builder
Returns
Type Description
AclPolicy.Builder

addRulesBuilder()

public AclRule.Builder addRulesBuilder()

Required. The ACL rules within the ACL policy.

repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AclRule.Builder

addRulesBuilder(int index)

public AclRule.Builder addRulesBuilder(int index)

Required. The ACL rules within the ACL policy.

repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
AclRule.Builder

build()

public AclPolicy build()
Returns
Type Description
AclPolicy

buildPartial()

public AclPolicy buildPartial()
Returns
Type Description
AclPolicy

clear()

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

clearCreateTime()

public AclPolicy.Builder clearCreateTime()

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

clearEtag()

public AclPolicy.Builder clearEtag()

Output only. Etag of the ACL policy.

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

Returns
Type Description
AclPolicy.Builder

This builder for chaining.

clearInstanceAclPolicyAttachments()

public AclPolicy.Builder clearInstanceAclPolicyAttachments()

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

repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AclPolicy.Builder

clearName()

public AclPolicy.Builder clearName()

Identifier. Full resource path of the ACL policy.

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

Returns
Type Description
AclPolicy.Builder

This builder for chaining.

clearRules()

public AclPolicy.Builder clearRules()

Required. The ACL rules within the ACL policy.

repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AclPolicy.Builder

clearState()

public AclPolicy.Builder clearState()

Output only. The state of the ACL policy.

.google.cloud.memorystore.v1.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AclPolicy.Builder

This builder for chaining.

clearUpdateTime()

public AclPolicy.Builder clearUpdateTime()

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

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.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

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
Builder

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

getDescriptorForType()

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

getEtag()

public String getEtag()

Output only. Etag of 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 of the ACL policy.

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

Returns
Type Description
ByteString

The bytes for etag.

getInstanceAclPolicyAttachments(int index)

public InstanceAclPolicyAttachment getInstanceAclPolicyAttachments(int index)

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

repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
InstanceAclPolicyAttachment

getInstanceAclPolicyAttachmentsBuilder(int index)

public InstanceAclPolicyAttachment.Builder getInstanceAclPolicyAttachmentsBuilder(int index)

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

repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
InstanceAclPolicyAttachment.Builder

getInstanceAclPolicyAttachmentsBuilderList()

public List<InstanceAclPolicyAttachment.Builder> getInstanceAclPolicyAttachmentsBuilderList()

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

repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getInstanceAclPolicyAttachmentsCount()

public int getInstanceAclPolicyAttachmentsCount()

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

repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getInstanceAclPolicyAttachmentsList()

public List<InstanceAclPolicyAttachment> getInstanceAclPolicyAttachmentsList()

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

repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<InstanceAclPolicyAttachment>

getInstanceAclPolicyAttachmentsOrBuilder(int index)

public InstanceAclPolicyAttachmentOrBuilder getInstanceAclPolicyAttachmentsOrBuilder(int index)

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

repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
InstanceAclPolicyAttachmentOrBuilder

getInstanceAclPolicyAttachmentsOrBuilderList()

public List<? extends InstanceAclPolicyAttachmentOrBuilder> getInstanceAclPolicyAttachmentsOrBuilderList()

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

repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.memorystore.v1.InstanceAclPolicyAttachmentOrBuilder>

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.

getRules(int index)

public AclRule getRules(int index)

Required. The ACL rules within the ACL policy.

repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
AclRule

getRulesBuilder(int index)

public AclRule.Builder getRulesBuilder(int index)

Required. The ACL rules within the ACL policy.

repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
AclRule.Builder

getRulesBuilderList()

public List<AclRule.Builder> getRulesBuilderList()

Required. The ACL rules within the ACL policy.

repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getRulesCount()

public int getRulesCount()

Required. The ACL rules within the ACL policy.

repeated .google.cloud.memorystore.v1.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.memorystore.v1.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.memorystore.v1.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.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.memorystore.v1.AclRuleOrBuilder>

getState()

public AclPolicy.State getState()

Output only. The state of the ACL policy.

.google.cloud.memorystore.v1.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.memorystore.v1.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.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

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
Builder

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 of 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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public AclPolicy.Builder mergeCreateTime(Timestamp value)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
AclPolicy.Builder

mergeFrom(AclPolicy other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUpdateTime(Timestamp value)

public AclPolicy.Builder mergeUpdateTime(Timestamp value)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
AclPolicy.Builder

removeInstanceAclPolicyAttachments(int index)

public AclPolicy.Builder removeInstanceAclPolicyAttachments(int index)

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

repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AclPolicy.Builder

removeRules(int index)

public AclPolicy.Builder removeRules(int index)

Required. The ACL rules within the ACL policy.

repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
AclPolicy.Builder

setCreateTime(Timestamp value)

public AclPolicy.Builder setCreateTime(Timestamp value)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
AclPolicy.Builder

setCreateTime(Timestamp.Builder builderForValue)

public AclPolicy.Builder setCreateTime(Timestamp.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AclPolicy.Builder

setEtag(String value)

public AclPolicy.Builder setEtag(String value)

Output only. Etag of the ACL policy.

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

Parameter
Name Description
value String

The etag to set.

Returns
Type Description
AclPolicy.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public AclPolicy.Builder setEtagBytes(ByteString value)

Output only. Etag of the ACL policy.

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

Parameter
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
AclPolicy.Builder

This builder for chaining.

setInstanceAclPolicyAttachments(int index, InstanceAclPolicyAttachment value)

public AclPolicy.Builder setInstanceAclPolicyAttachments(int index, InstanceAclPolicyAttachment value)

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

repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value InstanceAclPolicyAttachment
Returns
Type Description
AclPolicy.Builder

setInstanceAclPolicyAttachments(int index, InstanceAclPolicyAttachment.Builder builderForValue)

public AclPolicy.Builder setInstanceAclPolicyAttachments(int index, InstanceAclPolicyAttachment.Builder builderForValue)

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

repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue InstanceAclPolicyAttachment.Builder
Returns
Type Description
AclPolicy.Builder

setName(String value)

public AclPolicy.Builder setName(String value)

Identifier. Full resource path of the ACL policy.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AclPolicy.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AclPolicy.Builder setNameBytes(ByteString value)

Identifier. Full resource path of the ACL policy.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AclPolicy.Builder

This builder for chaining.

setRules(int index, AclRule value)

public AclPolicy.Builder setRules(int index, AclRule value)

Required. The ACL rules within the ACL policy.

repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value AclRule
Returns
Type Description
AclPolicy.Builder

setRules(int index, AclRule.Builder builderForValue)

public AclPolicy.Builder setRules(int index, AclRule.Builder builderForValue)

Required. The ACL rules within the ACL policy.

repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue AclRule.Builder
Returns
Type Description
AclPolicy.Builder

setState(AclPolicy.State value)

public AclPolicy.Builder setState(AclPolicy.State value)

Output only. The state of the ACL policy.

.google.cloud.memorystore.v1.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value AclPolicy.State

The state to set.

Returns
Type Description
AclPolicy.Builder

This builder for chaining.

setStateValue(int value)

public AclPolicy.Builder setStateValue(int value)

Output only. The state of the ACL policy.

.google.cloud.memorystore.v1.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
AclPolicy.Builder

This builder for chaining.

setUpdateTime(Timestamp value)

public AclPolicy.Builder setUpdateTime(Timestamp value)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
AclPolicy.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public AclPolicy.Builder setUpdateTime(Timestamp.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AclPolicy.Builder