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.GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder>
com.google.cloud.audit.ServiceAccountDelegationInfo.Builder
- All Implemented Interfaces:
ServiceAccountDelegationInfoOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,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 type
google.cloud.audit.ServiceAccountDelegationInfo
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) First party (Google) identity as the real authority.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) A string representing the principal_subject associated with the identity.Third party identity as the real authority.clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
First party (Google) identity as the real authority.First party (Google) identity as the real authority.First party (Google) identity as the real authority.A string representing the principal_subject associated with the identity.com.google.protobuf.ByteString
A string representing the principal_subject associated with the identity.Third party identity as the real authority.Third party identity as the real authority.Third party identity as the real authority.boolean
First party (Google) identity as the real authority.boolean
Third party identity as the real authority.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
First party (Google) identity as the real authority.mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) Third party identity as the real authority.mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) First party (Google) identity as the real authority.First party (Google) identity as the real authority.setPrincipalSubject
(String value) A string representing the principal_subject associated with the identity.setPrincipalSubjectBytes
(com.google.protobuf.ByteString value) A string representing the principal_subject associated with the identity.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Third party identity as the real authority.Third party identity as the real authority.setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<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.GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.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, 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, 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, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ServiceAccountDelegationInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder>
-
mergeFrom
public ServiceAccountDelegationInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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:
IOException
-
getAuthorityCase
- Specified by:
getAuthorityCase
in interfaceServiceAccountDelegationInfoOrBuilder
-
clearAuthority
-
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
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
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
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
First party (Google) identity as the real authority.
.google.cloud.audit.ServiceAccountDelegationInfo.FirstPartyPrincipal first_party_principal = 1;
-
getFirstPartyPrincipalBuilder
First party (Google) identity as the real authority.
.google.cloud.audit.ServiceAccountDelegationInfo.FirstPartyPrincipal first_party_principal = 1;
-
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
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
Third party identity as the real authority.
.google.cloud.audit.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2;
-
getThirdPartyPrincipalBuilder
Third party identity as the real authority.
.google.cloud.audit.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2;
-
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>
-