public static final class AccessPolicy.Builder extends GeneratedMessageV3.Builder<AccessPolicy.Builder> implements AccessPolicyOrBuilder
`AccessPolicy` is a container for `AccessLevels` (which define the necessary attributes to use Google Cloud services) and `ServicePerimeters` (which define regions of services able to freely pass data within a perimeter). An access policy is globally visible within an organization, and the restrictions it specifies apply to all projects within an organization.Protobuf type
google.identity.accesscontextmanager.v1.AccessPolicygetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<AccessPolicy.Builder>public AccessPolicy.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<AccessPolicy.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<AccessPolicy.Builder>public AccessPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic AccessPolicy build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic AccessPolicy buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic AccessPolicy.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<AccessPolicy.Builder>public AccessPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<AccessPolicy.Builder>public AccessPolicy.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<AccessPolicy.Builder>public AccessPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<AccessPolicy.Builder>public AccessPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<AccessPolicy.Builder>public AccessPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<AccessPolicy.Builder>public AccessPolicy.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<AccessPolicy.Builder>public AccessPolicy.Builder mergeFrom(AccessPolicy other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<AccessPolicy.Builder>public AccessPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<AccessPolicy.Builder>IOExceptionpublic String getName()
Output only. Resource name of the `AccessPolicy`. Format:
`accessPolicies/{access_policy}`
string name = 1;getName in interface AccessPolicyOrBuilderpublic ByteString getNameBytes()
Output only. Resource name of the `AccessPolicy`. Format:
`accessPolicies/{access_policy}`
string name = 1;getNameBytes in interface AccessPolicyOrBuilderpublic AccessPolicy.Builder setName(String value)
Output only. Resource name of the `AccessPolicy`. Format:
`accessPolicies/{access_policy}`
string name = 1;value - The name to set.public AccessPolicy.Builder clearName()
Output only. Resource name of the `AccessPolicy`. Format:
`accessPolicies/{access_policy}`
string name = 1;public AccessPolicy.Builder setNameBytes(ByteString value)
Output only. Resource name of the `AccessPolicy`. Format:
`accessPolicies/{access_policy}`
string name = 1;value - The bytes for name to set.public String getParent()
Required. The parent of this `AccessPolicy` in the Cloud Resource
Hierarchy. Currently immutable once created. Format:
`organizations/{organization_id}`
string parent = 2;getParent in interface AccessPolicyOrBuilderpublic ByteString getParentBytes()
Required. The parent of this `AccessPolicy` in the Cloud Resource
Hierarchy. Currently immutable once created. Format:
`organizations/{organization_id}`
string parent = 2;getParentBytes in interface AccessPolicyOrBuilderpublic AccessPolicy.Builder setParent(String value)
Required. The parent of this `AccessPolicy` in the Cloud Resource
Hierarchy. Currently immutable once created. Format:
`organizations/{organization_id}`
string parent = 2;value - The parent to set.public AccessPolicy.Builder clearParent()
Required. The parent of this `AccessPolicy` in the Cloud Resource
Hierarchy. Currently immutable once created. Format:
`organizations/{organization_id}`
string parent = 2;public AccessPolicy.Builder setParentBytes(ByteString value)
Required. The parent of this `AccessPolicy` in the Cloud Resource
Hierarchy. Currently immutable once created. Format:
`organizations/{organization_id}`
string parent = 2;value - The bytes for parent to set.public String getTitle()
Required. Human readable title. Does not affect behavior.
string title = 3;getTitle in interface AccessPolicyOrBuilderpublic ByteString getTitleBytes()
Required. Human readable title. Does not affect behavior.
string title = 3;getTitleBytes in interface AccessPolicyOrBuilderpublic AccessPolicy.Builder setTitle(String value)
Required. Human readable title. Does not affect behavior.
string title = 3;value - The title to set.public AccessPolicy.Builder clearTitle()
Required. Human readable title. Does not affect behavior.
string title = 3;public AccessPolicy.Builder setTitleBytes(ByteString value)
Required. Human readable title. Does not affect behavior.
string title = 3;value - The bytes for title to set.public boolean hasCreateTime()
Output only. Time the `AccessPolicy` was created in UTC.
.google.protobuf.Timestamp create_time = 4;hasCreateTime in interface AccessPolicyOrBuilderpublic Timestamp getCreateTime()
Output only. Time the `AccessPolicy` was created in UTC.
.google.protobuf.Timestamp create_time = 4;getCreateTime in interface AccessPolicyOrBuilderpublic AccessPolicy.Builder setCreateTime(Timestamp value)
Output only. Time the `AccessPolicy` was created in UTC.
.google.protobuf.Timestamp create_time = 4;public AccessPolicy.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. Time the `AccessPolicy` was created in UTC.
.google.protobuf.Timestamp create_time = 4;public AccessPolicy.Builder mergeCreateTime(Timestamp value)
Output only. Time the `AccessPolicy` was created in UTC.
.google.protobuf.Timestamp create_time = 4;public AccessPolicy.Builder clearCreateTime()
Output only. Time the `AccessPolicy` was created in UTC.
.google.protobuf.Timestamp create_time = 4;public Timestamp.Builder getCreateTimeBuilder()
Output only. Time the `AccessPolicy` was created in UTC.
.google.protobuf.Timestamp create_time = 4;public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Time the `AccessPolicy` was created in UTC.
.google.protobuf.Timestamp create_time = 4;getCreateTimeOrBuilder in interface AccessPolicyOrBuilderpublic boolean hasUpdateTime()
Output only. Time the `AccessPolicy` was updated in UTC.
.google.protobuf.Timestamp update_time = 5;hasUpdateTime in interface AccessPolicyOrBuilderpublic Timestamp getUpdateTime()
Output only. Time the `AccessPolicy` was updated in UTC.
.google.protobuf.Timestamp update_time = 5;getUpdateTime in interface AccessPolicyOrBuilderpublic AccessPolicy.Builder setUpdateTime(Timestamp value)
Output only. Time the `AccessPolicy` was updated in UTC.
.google.protobuf.Timestamp update_time = 5;public AccessPolicy.Builder setUpdateTime(Timestamp.Builder builderForValue)
Output only. Time the `AccessPolicy` was updated in UTC.
.google.protobuf.Timestamp update_time = 5;public AccessPolicy.Builder mergeUpdateTime(Timestamp value)
Output only. Time the `AccessPolicy` was updated in UTC.
.google.protobuf.Timestamp update_time = 5;public AccessPolicy.Builder clearUpdateTime()
Output only. Time the `AccessPolicy` was updated in UTC.
.google.protobuf.Timestamp update_time = 5;public Timestamp.Builder getUpdateTimeBuilder()
Output only. Time the `AccessPolicy` was updated in UTC.
.google.protobuf.Timestamp update_time = 5;public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. Time the `AccessPolicy` was updated in UTC.
.google.protobuf.Timestamp update_time = 5;getUpdateTimeOrBuilder in interface AccessPolicyOrBuilderpublic String getEtag()
Output only. An opaque identifier for the current version of the `AccessPolicy`. This will always be a strongly validated etag, meaning that two Access Polices will be identical if and only if their etags are identical. Clients should not expect this to be in any specific format.
string etag = 6;getEtag in interface AccessPolicyOrBuilderpublic ByteString getEtagBytes()
Output only. An opaque identifier for the current version of the `AccessPolicy`. This will always be a strongly validated etag, meaning that two Access Polices will be identical if and only if their etags are identical. Clients should not expect this to be in any specific format.
string etag = 6;getEtagBytes in interface AccessPolicyOrBuilderpublic AccessPolicy.Builder setEtag(String value)
Output only. An opaque identifier for the current version of the `AccessPolicy`. This will always be a strongly validated etag, meaning that two Access Polices will be identical if and only if their etags are identical. Clients should not expect this to be in any specific format.
string etag = 6;value - The etag to set.public AccessPolicy.Builder clearEtag()
Output only. An opaque identifier for the current version of the `AccessPolicy`. This will always be a strongly validated etag, meaning that two Access Polices will be identical if and only if their etags are identical. Clients should not expect this to be in any specific format.
string etag = 6;public AccessPolicy.Builder setEtagBytes(ByteString value)
Output only. An opaque identifier for the current version of the `AccessPolicy`. This will always be a strongly validated etag, meaning that two Access Polices will be identical if and only if their etags are identical. Clients should not expect this to be in any specific format.
string etag = 6;value - The bytes for etag to set.public final AccessPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<AccessPolicy.Builder>public final AccessPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<AccessPolicy.Builder>Copyright © 2021 Google LLC. All rights reserved.