Package com.google.cloud.audit
Class ServiceAccountDelegationInfo.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder>
-
- com.google.cloud.audit.ServiceAccountDelegationInfo.Builder
-
- All Implemented Interfaces:
ServiceAccountDelegationInfoOrBuilder
,com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- ServiceAccountDelegationInfo
public static final class ServiceAccountDelegationInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder> implements ServiceAccountDelegationInfoOrBuilder
Identity delegation history of an authenticated service account.
Protobuf typegoogle.cloud.audit.ServiceAccountDelegationInfo
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableBuilder
addExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, newBuilderForField, parseUnknownField, setExtension, setExtension
-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
getOneofFieldDescriptor, getUnknownFields, getUnknownFieldSetBuilder, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, onBuilt, onChanged, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Overrides:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder>
-
clear
public ServiceAccountDelegationInfo.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<ServiceAccountDelegationInfo.Builder>
-
getDefaultInstanceForType
public ServiceAccountDelegationInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ServiceAccountDelegationInfo build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ServiceAccountDelegationInfo buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ServiceAccountDelegationInfo.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder>
-
setField
public ServiceAccountDelegationInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder>
-
clearField
public ServiceAccountDelegationInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder>
-
clearOneof
public ServiceAccountDelegationInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder>
-
setRepeatedField
public ServiceAccountDelegationInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder>
-
addRepeatedField
public ServiceAccountDelegationInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder>
-
mergeFrom
public ServiceAccountDelegationInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ServiceAccountDelegationInfo.Builder>
-
mergeFrom
public ServiceAccountDelegationInfo.Builder mergeFrom(ServiceAccountDelegationInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,ServiceAccountDelegationInfo.Builder>
-
mergeFrom
public ServiceAccountDelegationInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ServiceAccountDelegationInfo.Builder>
- Throws:
java.io.IOException
-
getAuthorityCase
public ServiceAccountDelegationInfo.AuthorityCase getAuthorityCase()
- Specified by:
getAuthorityCase
in interfaceServiceAccountDelegationInfoOrBuilder
-
clearAuthority
public ServiceAccountDelegationInfo.Builder clearAuthority()
-
getPrincipalSubject
public java.lang.String getPrincipalSubject()
A string representing the principal_subject associated with the identity. For most identities, the format will be `principal://iam.googleapis.com/{identity pool name}/subject/{subject)` except for some GKE identities (GKE_WORKLOAD, FREEFORM, GKE_HUB_WORKLOAD) that are still in the legacy format `serviceAccount:{identity pool name}[{subject}]`
string principal_subject = 3;
- Specified by:
getPrincipalSubject
in interfaceServiceAccountDelegationInfoOrBuilder
- Returns:
- The principalSubject.
-
getPrincipalSubjectBytes
public com.google.protobuf.ByteString getPrincipalSubjectBytes()
A string representing the principal_subject associated with the identity. For most identities, the format will be `principal://iam.googleapis.com/{identity pool name}/subject/{subject)` except for some GKE identities (GKE_WORKLOAD, FREEFORM, GKE_HUB_WORKLOAD) that are still in the legacy format `serviceAccount:{identity pool name}[{subject}]`
string principal_subject = 3;
- Specified by:
getPrincipalSubjectBytes
in interfaceServiceAccountDelegationInfoOrBuilder
- Returns:
- The bytes for principalSubject.
-
setPrincipalSubject
public ServiceAccountDelegationInfo.Builder setPrincipalSubject(java.lang.String value)
A string representing the principal_subject associated with the identity. For most identities, the format will be `principal://iam.googleapis.com/{identity pool name}/subject/{subject)` except for some GKE identities (GKE_WORKLOAD, FREEFORM, GKE_HUB_WORKLOAD) that are still in the legacy format `serviceAccount:{identity pool name}[{subject}]`
string principal_subject = 3;
- Parameters:
value
- The principalSubject to set.- Returns:
- This builder for chaining.
-
clearPrincipalSubject
public ServiceAccountDelegationInfo.Builder clearPrincipalSubject()
A string representing the principal_subject associated with the identity. For most identities, the format will be `principal://iam.googleapis.com/{identity pool name}/subject/{subject)` except for some GKE identities (GKE_WORKLOAD, FREEFORM, GKE_HUB_WORKLOAD) that are still in the legacy format `serviceAccount:{identity pool name}[{subject}]`
string principal_subject = 3;
- Returns:
- This builder for chaining.
-
setPrincipalSubjectBytes
public ServiceAccountDelegationInfo.Builder setPrincipalSubjectBytes(com.google.protobuf.ByteString value)
A string representing the principal_subject associated with the identity. For most identities, the format will be `principal://iam.googleapis.com/{identity pool name}/subject/{subject)` except for some GKE identities (GKE_WORKLOAD, FREEFORM, GKE_HUB_WORKLOAD) that are still in the legacy format `serviceAccount:{identity pool name}[{subject}]`
string principal_subject = 3;
- Parameters:
value
- The bytes for principalSubject to set.- Returns:
- This builder for chaining.
-
hasFirstPartyPrincipal
public boolean hasFirstPartyPrincipal()
First party (Google) identity as the real authority.
.google.cloud.audit.ServiceAccountDelegationInfo.FirstPartyPrincipal first_party_principal = 1;
- Specified by:
hasFirstPartyPrincipal
in interfaceServiceAccountDelegationInfoOrBuilder
- Returns:
- Whether the firstPartyPrincipal field is set.
-
getFirstPartyPrincipal
public ServiceAccountDelegationInfo.FirstPartyPrincipal getFirstPartyPrincipal()
First party (Google) identity as the real authority.
.google.cloud.audit.ServiceAccountDelegationInfo.FirstPartyPrincipal first_party_principal = 1;
- Specified by:
getFirstPartyPrincipal
in interfaceServiceAccountDelegationInfoOrBuilder
- Returns:
- The firstPartyPrincipal.
-
setFirstPartyPrincipal
public ServiceAccountDelegationInfo.Builder setFirstPartyPrincipal(ServiceAccountDelegationInfo.FirstPartyPrincipal value)
First party (Google) identity as the real authority.
.google.cloud.audit.ServiceAccountDelegationInfo.FirstPartyPrincipal first_party_principal = 1;
-
setFirstPartyPrincipal
public ServiceAccountDelegationInfo.Builder setFirstPartyPrincipal(ServiceAccountDelegationInfo.FirstPartyPrincipal.Builder builderForValue)
First party (Google) identity as the real authority.
.google.cloud.audit.ServiceAccountDelegationInfo.FirstPartyPrincipal first_party_principal = 1;
-
mergeFirstPartyPrincipal
public ServiceAccountDelegationInfo.Builder mergeFirstPartyPrincipal(ServiceAccountDelegationInfo.FirstPartyPrincipal value)
First party (Google) identity as the real authority.
.google.cloud.audit.ServiceAccountDelegationInfo.FirstPartyPrincipal first_party_principal = 1;
-
clearFirstPartyPrincipal
public ServiceAccountDelegationInfo.Builder clearFirstPartyPrincipal()
First party (Google) identity as the real authority.
.google.cloud.audit.ServiceAccountDelegationInfo.FirstPartyPrincipal first_party_principal = 1;
-
getFirstPartyPrincipalBuilder
public ServiceAccountDelegationInfo.FirstPartyPrincipal.Builder getFirstPartyPrincipalBuilder()
First party (Google) identity as the real authority.
.google.cloud.audit.ServiceAccountDelegationInfo.FirstPartyPrincipal first_party_principal = 1;
-
getFirstPartyPrincipalOrBuilder
public ServiceAccountDelegationInfo.FirstPartyPrincipalOrBuilder getFirstPartyPrincipalOrBuilder()
First party (Google) identity as the real authority.
.google.cloud.audit.ServiceAccountDelegationInfo.FirstPartyPrincipal first_party_principal = 1;
- Specified by:
getFirstPartyPrincipalOrBuilder
in interfaceServiceAccountDelegationInfoOrBuilder
-
hasThirdPartyPrincipal
public boolean hasThirdPartyPrincipal()
Third party identity as the real authority.
.google.cloud.audit.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2;
- Specified by:
hasThirdPartyPrincipal
in interfaceServiceAccountDelegationInfoOrBuilder
- Returns:
- Whether the thirdPartyPrincipal field is set.
-
getThirdPartyPrincipal
public ServiceAccountDelegationInfo.ThirdPartyPrincipal getThirdPartyPrincipal()
Third party identity as the real authority.
.google.cloud.audit.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2;
- Specified by:
getThirdPartyPrincipal
in interfaceServiceAccountDelegationInfoOrBuilder
- Returns:
- The thirdPartyPrincipal.
-
setThirdPartyPrincipal
public ServiceAccountDelegationInfo.Builder setThirdPartyPrincipal(ServiceAccountDelegationInfo.ThirdPartyPrincipal value)
Third party identity as the real authority.
.google.cloud.audit.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2;
-
setThirdPartyPrincipal
public ServiceAccountDelegationInfo.Builder setThirdPartyPrincipal(ServiceAccountDelegationInfo.ThirdPartyPrincipal.Builder builderForValue)
Third party identity as the real authority.
.google.cloud.audit.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2;
-
mergeThirdPartyPrincipal
public ServiceAccountDelegationInfo.Builder mergeThirdPartyPrincipal(ServiceAccountDelegationInfo.ThirdPartyPrincipal value)
Third party identity as the real authority.
.google.cloud.audit.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2;
-
clearThirdPartyPrincipal
public ServiceAccountDelegationInfo.Builder clearThirdPartyPrincipal()
Third party identity as the real authority.
.google.cloud.audit.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2;
-
getThirdPartyPrincipalBuilder
public ServiceAccountDelegationInfo.ThirdPartyPrincipal.Builder getThirdPartyPrincipalBuilder()
Third party identity as the real authority.
.google.cloud.audit.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2;
-
getThirdPartyPrincipalOrBuilder
public ServiceAccountDelegationInfo.ThirdPartyPrincipalOrBuilder getThirdPartyPrincipalOrBuilder()
Third party identity as the real authority.
.google.cloud.audit.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2;
- Specified by:
getThirdPartyPrincipalOrBuilder
in interfaceServiceAccountDelegationInfoOrBuilder
-
setUnknownFields
public final ServiceAccountDelegationInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder>
-
mergeUnknownFields
public final ServiceAccountDelegationInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder>
-
-