Class AccessApprovalSettings
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.accessapproval.v1.AccessApprovalSettings
-
- All Implemented Interfaces:
AccessApprovalSettingsOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class AccessApprovalSettings extends com.google.protobuf.GeneratedMessageV3 implements AccessApprovalSettingsOrBuilder
Settings on a Project/Folder/Organization related to Access Approval.
Protobuf typegoogle.cloud.accessapproval.v1.AccessApprovalSettings- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAccessApprovalSettings.BuilderSettings on a Project/Folder/Organization related to Access Approval.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intACTIVE_KEY_VERSION_FIELD_NUMBERstatic intANCESTOR_HAS_ACTIVE_KEY_VERSION_FIELD_NUMBERstatic intENROLLED_ANCESTOR_FIELD_NUMBERstatic intENROLLED_SERVICES_FIELD_NUMBERstatic intINVALID_KEY_VERSION_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intNOTIFICATION_EMAILS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetActiveKeyVersion()The asymmetric crypto key version to use for signing approval requests.com.google.protobuf.ByteStringgetActiveKeyVersionBytes()The asymmetric crypto key version to use for signing approval requests.booleangetAncestorHasActiveKeyVersion()Output only.static AccessApprovalSettingsgetDefaultInstance()AccessApprovalSettingsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()booleangetEnrolledAncestor()Output only.EnrolledServicegetEnrolledServices(int index)A list of Google Cloud Services for which the given resource has Access Approval enrolled.intgetEnrolledServicesCount()A list of Google Cloud Services for which the given resource has Access Approval enrolled.List<EnrolledService>getEnrolledServicesList()A list of Google Cloud Services for which the given resource has Access Approval enrolled.EnrolledServiceOrBuildergetEnrolledServicesOrBuilder(int index)A list of Google Cloud Services for which the given resource has Access Approval enrolled.List<? extends EnrolledServiceOrBuilder>getEnrolledServicesOrBuilderList()A list of Google Cloud Services for which the given resource has Access Approval enrolled.booleangetInvalidKeyVersion()Output only.StringgetName()The resource name of the settings.com.google.protobuf.ByteStringgetNameBytes()The resource name of the settings.StringgetNotificationEmails(int index)A list of email addresses to which notifications relating to approval requests should be sent.com.google.protobuf.ByteStringgetNotificationEmailsBytes(int index)A list of email addresses to which notifications relating to approval requests should be sent.intgetNotificationEmailsCount()A list of email addresses to which notifications relating to approval requests should be sent.com.google.protobuf.ProtocolStringListgetNotificationEmailsList()A list of email addresses to which notifications relating to approval requests should be sent.com.google.protobuf.Parser<AccessApprovalSettings>getParserForType()intgetSerializedSize()inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static AccessApprovalSettings.BuildernewBuilder()static AccessApprovalSettings.BuildernewBuilder(AccessApprovalSettings prototype)AccessApprovalSettings.BuildernewBuilderForType()protected AccessApprovalSettings.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static AccessApprovalSettingsparseDelimitedFrom(InputStream input)static AccessApprovalSettingsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AccessApprovalSettingsparseFrom(byte[] data)static AccessApprovalSettingsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AccessApprovalSettingsparseFrom(com.google.protobuf.ByteString data)static AccessApprovalSettingsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AccessApprovalSettingsparseFrom(com.google.protobuf.CodedInputStream input)static AccessApprovalSettingsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AccessApprovalSettingsparseFrom(InputStream input)static AccessApprovalSettingsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AccessApprovalSettingsparseFrom(ByteBuffer data)static AccessApprovalSettingsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<AccessApprovalSettings>parser()AccessApprovalSettings.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NOTIFICATION_EMAILS_FIELD_NUMBER
public static final int NOTIFICATION_EMAILS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENROLLED_SERVICES_FIELD_NUMBER
public static final int ENROLLED_SERVICES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENROLLED_ANCESTOR_FIELD_NUMBER
public static final int ENROLLED_ANCESTOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ACTIVE_KEY_VERSION_FIELD_NUMBER
public static final int ACTIVE_KEY_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ANCESTOR_HAS_ACTIVE_KEY_VERSION_FIELD_NUMBER
public static final int ANCESTOR_HAS_ACTIVE_KEY_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INVALID_KEY_VERSION_FIELD_NUMBER
public static final int INVALID_KEY_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getName
public String getName()
The resource name of the settings. Format is one of: * "projects/{project}/accessApprovalSettings" * "folders/{folder}/accessApprovalSettings" * "organizations/{organization}/accessApprovalSettings"string name = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getNamein interfaceAccessApprovalSettingsOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The resource name of the settings. Format is one of: * "projects/{project}/accessApprovalSettings" * "folders/{folder}/accessApprovalSettings" * "organizations/{organization}/accessApprovalSettings"string name = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getNameBytesin interfaceAccessApprovalSettingsOrBuilder- Returns:
- The bytes for name.
-
getNotificationEmailsList
public com.google.protobuf.ProtocolStringList getNotificationEmailsList()
A list of email addresses to which notifications relating to approval requests should be sent. Notifications relating to a resource will be sent to all emails in the settings of ancestor resources of that resource. A maximum of 50 email addresses are allowed.
repeated string notification_emails = 2;- Specified by:
getNotificationEmailsListin interfaceAccessApprovalSettingsOrBuilder- Returns:
- A list containing the notificationEmails.
-
getNotificationEmailsCount
public int getNotificationEmailsCount()
A list of email addresses to which notifications relating to approval requests should be sent. Notifications relating to a resource will be sent to all emails in the settings of ancestor resources of that resource. A maximum of 50 email addresses are allowed.
repeated string notification_emails = 2;- Specified by:
getNotificationEmailsCountin interfaceAccessApprovalSettingsOrBuilder- Returns:
- The count of notificationEmails.
-
getNotificationEmails
public String getNotificationEmails(int index)
A list of email addresses to which notifications relating to approval requests should be sent. Notifications relating to a resource will be sent to all emails in the settings of ancestor resources of that resource. A maximum of 50 email addresses are allowed.
repeated string notification_emails = 2;- Specified by:
getNotificationEmailsin interfaceAccessApprovalSettingsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The notificationEmails at the given index.
-
getNotificationEmailsBytes
public com.google.protobuf.ByteString getNotificationEmailsBytes(int index)
A list of email addresses to which notifications relating to approval requests should be sent. Notifications relating to a resource will be sent to all emails in the settings of ancestor resources of that resource. A maximum of 50 email addresses are allowed.
repeated string notification_emails = 2;- Specified by:
getNotificationEmailsBytesin interfaceAccessApprovalSettingsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the notificationEmails at the given index.
-
getEnrolledServicesList
public List<EnrolledService> getEnrolledServicesList()
A list of Google Cloud Services for which the given resource has Access Approval enrolled. Access requests for the resource given by name against any of these services contained here will be required to have explicit approval. If name refers to an organization, enrollment can be done for individual services. If name refers to a folder or project, enrollment can only be done on an all or nothing basis. If a cloud_product is repeated in this list, the first entry will be honored and all following entries will be discarded. A maximum of 10 enrolled services will be enforced, to be expanded as the set of supported services is expanded.
repeated .google.cloud.accessapproval.v1.EnrolledService enrolled_services = 3;- Specified by:
getEnrolledServicesListin interfaceAccessApprovalSettingsOrBuilder
-
getEnrolledServicesOrBuilderList
public List<? extends EnrolledServiceOrBuilder> getEnrolledServicesOrBuilderList()
A list of Google Cloud Services for which the given resource has Access Approval enrolled. Access requests for the resource given by name against any of these services contained here will be required to have explicit approval. If name refers to an organization, enrollment can be done for individual services. If name refers to a folder or project, enrollment can only be done on an all or nothing basis. If a cloud_product is repeated in this list, the first entry will be honored and all following entries will be discarded. A maximum of 10 enrolled services will be enforced, to be expanded as the set of supported services is expanded.
repeated .google.cloud.accessapproval.v1.EnrolledService enrolled_services = 3;- Specified by:
getEnrolledServicesOrBuilderListin interfaceAccessApprovalSettingsOrBuilder
-
getEnrolledServicesCount
public int getEnrolledServicesCount()
A list of Google Cloud Services for which the given resource has Access Approval enrolled. Access requests for the resource given by name against any of these services contained here will be required to have explicit approval. If name refers to an organization, enrollment can be done for individual services. If name refers to a folder or project, enrollment can only be done on an all or nothing basis. If a cloud_product is repeated in this list, the first entry will be honored and all following entries will be discarded. A maximum of 10 enrolled services will be enforced, to be expanded as the set of supported services is expanded.
repeated .google.cloud.accessapproval.v1.EnrolledService enrolled_services = 3;- Specified by:
getEnrolledServicesCountin interfaceAccessApprovalSettingsOrBuilder
-
getEnrolledServices
public EnrolledService getEnrolledServices(int index)
A list of Google Cloud Services for which the given resource has Access Approval enrolled. Access requests for the resource given by name against any of these services contained here will be required to have explicit approval. If name refers to an organization, enrollment can be done for individual services. If name refers to a folder or project, enrollment can only be done on an all or nothing basis. If a cloud_product is repeated in this list, the first entry will be honored and all following entries will be discarded. A maximum of 10 enrolled services will be enforced, to be expanded as the set of supported services is expanded.
repeated .google.cloud.accessapproval.v1.EnrolledService enrolled_services = 3;- Specified by:
getEnrolledServicesin interfaceAccessApprovalSettingsOrBuilder
-
getEnrolledServicesOrBuilder
public EnrolledServiceOrBuilder getEnrolledServicesOrBuilder(int index)
A list of Google Cloud Services for which the given resource has Access Approval enrolled. Access requests for the resource given by name against any of these services contained here will be required to have explicit approval. If name refers to an organization, enrollment can be done for individual services. If name refers to a folder or project, enrollment can only be done on an all or nothing basis. If a cloud_product is repeated in this list, the first entry will be honored and all following entries will be discarded. A maximum of 10 enrolled services will be enforced, to be expanded as the set of supported services is expanded.
repeated .google.cloud.accessapproval.v1.EnrolledService enrolled_services = 3;- Specified by:
getEnrolledServicesOrBuilderin interfaceAccessApprovalSettingsOrBuilder
-
getEnrolledAncestor
public boolean getEnrolledAncestor()
Output only. This field is read only (not settable via UpdateAccessApprovalSettings method). If the field is true, that indicates that at least one service is enrolled for Access Approval in one or more ancestors of the Project or Folder (this field will always be unset for the organization since organizations do not have ancestors).
bool enrolled_ancestor = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEnrolledAncestorin interfaceAccessApprovalSettingsOrBuilder- Returns:
- The enrolledAncestor.
-
getActiveKeyVersion
public String getActiveKeyVersion()
The asymmetric crypto key version to use for signing approval requests. Empty active_key_version indicates that a Google-managed key should be used for signing. This property will be ignored if set by an ancestor of this resource, and new non-empty values may not be set.
string active_key_version = 6;- Specified by:
getActiveKeyVersionin interfaceAccessApprovalSettingsOrBuilder- Returns:
- The activeKeyVersion.
-
getActiveKeyVersionBytes
public com.google.protobuf.ByteString getActiveKeyVersionBytes()
The asymmetric crypto key version to use for signing approval requests. Empty active_key_version indicates that a Google-managed key should be used for signing. This property will be ignored if set by an ancestor of this resource, and new non-empty values may not be set.
string active_key_version = 6;- Specified by:
getActiveKeyVersionBytesin interfaceAccessApprovalSettingsOrBuilder- Returns:
- The bytes for activeKeyVersion.
-
getAncestorHasActiveKeyVersion
public boolean getAncestorHasActiveKeyVersion()
Output only. This field is read only (not settable via UpdateAccessApprovalSettings method). If the field is true, that indicates that an ancestor of this Project or Folder has set active_key_version (this field will always be unset for the organization since organizations do not have ancestors).
bool ancestor_has_active_key_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAncestorHasActiveKeyVersionin interfaceAccessApprovalSettingsOrBuilder- Returns:
- The ancestorHasActiveKeyVersion.
-
getInvalidKeyVersion
public boolean getInvalidKeyVersion()
Output only. This field is read only (not settable via UpdateAccessApprovalSettings method). If the field is true, that indicates that there is some configuration issue with the active_key_version configured at this level in the resource hierarchy (e.g. it doesn't exist or the Access Approval service account doesn't have the correct permissions on it, etc.) This key version is not necessarily the effective key version at this level, as key versions are inherited top-down.
bool invalid_key_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInvalidKeyVersionin interfaceAccessApprovalSettingsOrBuilder- Returns:
- The invalidKeyVersion.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AccessApprovalSettings parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AccessApprovalSettings parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AccessApprovalSettings parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AccessApprovalSettings parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AccessApprovalSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AccessApprovalSettings parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AccessApprovalSettings parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AccessApprovalSettings parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AccessApprovalSettings parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AccessApprovalSettings parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static AccessApprovalSettings parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AccessApprovalSettings parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public AccessApprovalSettings.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static AccessApprovalSettings.Builder newBuilder()
-
newBuilder
public static AccessApprovalSettings.Builder newBuilder(AccessApprovalSettings prototype)
-
toBuilder
public AccessApprovalSettings.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AccessApprovalSettings.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static AccessApprovalSettings getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<AccessApprovalSettings> parser()
-
getParserForType
public com.google.protobuf.Parser<AccessApprovalSettings> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AccessApprovalSettings getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-