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.securitycenter.v1.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 typegoogle.cloud.securitycenter.v1.ServiceAccountDelegationInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceAccountDelegationInfo.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ServiceAccountDelegationInfo
build()
ServiceAccountDelegationInfo
buildPartial()
ServiceAccountDelegationInfo.Builder
clear()
ServiceAccountDelegationInfo.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ServiceAccountDelegationInfo.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ServiceAccountDelegationInfo.Builder
clearPrincipalEmail()
The email address of a Google account.ServiceAccountDelegationInfo.Builder
clearPrincipalSubject()
A string representing the principal_subject associated with the identity.ServiceAccountDelegationInfo.Builder
clone()
ServiceAccountDelegationInfo
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getPrincipalEmail()
The email address of a Google account.com.google.protobuf.ByteString
getPrincipalEmailBytes()
The email address of a Google account.String
getPrincipalSubject()
A string representing the principal_subject associated with the identity.com.google.protobuf.ByteString
getPrincipalSubjectBytes()
A string representing the principal_subject associated with the identity.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ServiceAccountDelegationInfo.Builder
mergeFrom(ServiceAccountDelegationInfo other)
ServiceAccountDelegationInfo.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ServiceAccountDelegationInfo.Builder
mergeFrom(com.google.protobuf.Message other)
ServiceAccountDelegationInfo.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ServiceAccountDelegationInfo.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ServiceAccountDelegationInfo.Builder
setPrincipalEmail(String value)
The email address of a Google account.ServiceAccountDelegationInfo.Builder
setPrincipalEmailBytes(com.google.protobuf.ByteString value)
The email address of a Google account.ServiceAccountDelegationInfo.Builder
setPrincipalSubject(String value)
A string representing the principal_subject associated with the identity.ServiceAccountDelegationInfo.Builder
setPrincipalSubjectBytes(com.google.protobuf.ByteString value)
A string representing the principal_subject associated with the identity.ServiceAccountDelegationInfo.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ServiceAccountDelegationInfo.Builder
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, internalGetMutableMapField, 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
-
-
-
-
Method Detail
-
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
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.GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder>
-
getDefaultInstanceForType
public ServiceAccountDelegationInfo getDefaultInstanceForType()
- 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, 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
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.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
-
getPrincipalEmail
public String getPrincipalEmail()
The email address of a Google account.
string principal_email = 1;
- Specified by:
getPrincipalEmail
in interfaceServiceAccountDelegationInfoOrBuilder
- Returns:
- The principalEmail.
-
getPrincipalEmailBytes
public com.google.protobuf.ByteString getPrincipalEmailBytes()
The email address of a Google account.
string principal_email = 1;
- Specified by:
getPrincipalEmailBytes
in interfaceServiceAccountDelegationInfoOrBuilder
- Returns:
- The bytes for principalEmail.
-
setPrincipalEmail
public ServiceAccountDelegationInfo.Builder setPrincipalEmail(String value)
The email address of a Google account.
string principal_email = 1;
- Parameters:
value
- The principalEmail to set.- Returns:
- This builder for chaining.
-
clearPrincipalEmail
public ServiceAccountDelegationInfo.Builder clearPrincipalEmail()
The email address of a Google account.
string principal_email = 1;
- Returns:
- This builder for chaining.
-
setPrincipalEmailBytes
public ServiceAccountDelegationInfo.Builder setPrincipalEmailBytes(com.google.protobuf.ByteString value)
The email address of a Google account.
string principal_email = 1;
- Parameters:
value
- The bytes for principalEmail to set.- Returns:
- This builder for chaining.
-
getPrincipalSubject
public String getPrincipalSubject()
A string representing the principal_subject associated with the identity. As compared to `principal_email`, supports principals that aren't associated with email addresses, such as third party principals. For most identities, the format will be `principal://iam.googleapis.com/{identity pool name}/subjects/{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 = 2;
- 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. As compared to `principal_email`, supports principals that aren't associated with email addresses, such as third party principals. For most identities, the format will be `principal://iam.googleapis.com/{identity pool name}/subjects/{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 = 2;
- Specified by:
getPrincipalSubjectBytes
in interfaceServiceAccountDelegationInfoOrBuilder
- Returns:
- The bytes for principalSubject.
-
setPrincipalSubject
public ServiceAccountDelegationInfo.Builder setPrincipalSubject(String value)
A string representing the principal_subject associated with the identity. As compared to `principal_email`, supports principals that aren't associated with email addresses, such as third party principals. For most identities, the format will be `principal://iam.googleapis.com/{identity pool name}/subjects/{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 = 2;
- 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. As compared to `principal_email`, supports principals that aren't associated with email addresses, such as third party principals. For most identities, the format will be `principal://iam.googleapis.com/{identity pool name}/subjects/{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 = 2;
- 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. As compared to `principal_email`, supports principals that aren't associated with email addresses, such as third party principals. For most identities, the format will be `principal://iam.googleapis.com/{identity pool name}/subjects/{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 = 2;
- Parameters:
value
- The bytes for principalSubject to set.- Returns:
- This builder for chaining.
-
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>
-
-