public static final class AclPolicyRevision.Builder extends GeneratedMessage.Builder<AclPolicyRevision.Builder> implements AclPolicyRevisionOrBuilderThe ACL policy revision resource.
Protobuf type google.cloud.memorystore.v1.AclPolicyRevision
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AclPolicyRevision.BuilderImplements
AclPolicyRevisionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllAttachedInstances(Iterable<String> values)
public AclPolicyRevision.Builder addAllAttachedInstances(Iterable<String> values)Output only. A list of instances that are attached to this ACL policy revision.
repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The attachedInstances to add. |
| Returns | |
|---|---|
| Type | Description |
AclPolicyRevision.Builder |
This builder for chaining. |
addAttachedInstances(String value)
public AclPolicyRevision.Builder addAttachedInstances(String value)Output only. A list of instances that are attached to this ACL policy revision.
repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe attachedInstances to add. |
| Returns | |
|---|---|
| Type | Description |
AclPolicyRevision.Builder |
This builder for chaining. |
addAttachedInstancesBytes(ByteString value)
public AclPolicyRevision.Builder addAttachedInstancesBytes(ByteString value)Output only. A list of instances that are attached to this ACL policy revision.
repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the attachedInstances 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 |
|
clearAttachedInstances()
public AclPolicyRevision.Builder clearAttachedInstances()Output only. A list of instances that are attached to this ACL policy revision.
repeated string attached_instances = 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.memorystore.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AclPolicyRevision.Builder |
|
getAttachedInstances(int index)
public String getAttachedInstances(int index)Output only. A list of instances that are attached to this ACL policy revision.
repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The attachedInstances at the given index. |
getAttachedInstancesBytes(int index)
public ByteString getAttachedInstancesBytes(int index)Output only. A list of instances that are attached to this ACL policy revision.
repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the attachedInstances at the given index. |
getAttachedInstancesCount()
public int getAttachedInstancesCount()Output only. A list of instances that are attached to this ACL policy revision.
repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
int |
The count of attachedInstances. |
getAttachedInstancesList()
public ProtocolStringList getAttachedInstancesList()Output only. A list of instances that are attached to this ACL policy revision.
repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the attachedInstances. |
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 |
|
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.memorystore.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.memorystore.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.memorystore.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.memorystore.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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AclPolicyRevision.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AclPolicyRevision.Builder |
|
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.memorystore.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
AclPolicy |
| Returns | |
|---|---|
| Type | Description |
AclPolicyRevision.Builder |
|
setAttachedInstances(int index, String value)
public AclPolicyRevision.Builder setAttachedInstances(int index, String value)Output only. A list of instances that are attached to this ACL policy revision.
repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe attachedInstances 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 |
StringThe 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 |
ByteStringThe 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 |
longThe 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.memorystore.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.memorystore.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
AclPolicy.Builder |
| Returns | |
|---|---|
| Type | Description |
AclPolicyRevision.Builder |
|