Class SignBlobRequest.Builder (2.43.0)

publicstaticfinalclass SignBlobRequest.BuilderextendsGeneratedMessageV3.Builder<SignBlobRequest.Builder>implementsSignBlobRequestOrBuilder

Protobuf type google.iam.credentials.v1.SignBlobRequest

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addAllDelegates(Iterable<String> values)

publicSignBlobRequest.BuilderaddAllDelegates(Iterable<String>values)

The sequence of service accounts in a delegation chain. Each service account must be granted the roles/iam.serviceAccountTokenCreator role on its next service account in the chain. The last service account in the chain must be granted the roles/iam.serviceAccountTokenCreator role on the service account that is specified in the name field of the request.

The delegates must have the following format: projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}. The - wildcard character is required; replacing it with a project ID is invalid.

repeated string delegates = 3;

Parameter
Name Description
values Iterable<String>

The delegates to add.

Returns
Type Description
SignBlobRequest.Builder

This builder for chaining.

addDelegates(String value)

publicSignBlobRequest.BuilderaddDelegates(Stringvalue)

The sequence of service accounts in a delegation chain. Each service account must be granted the roles/iam.serviceAccountTokenCreator role on its next service account in the chain. The last service account in the chain must be granted the roles/iam.serviceAccountTokenCreator role on the service account that is specified in the name field of the request.

The delegates must have the following format: projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}. The - wildcard character is required; replacing it with a project ID is invalid.

repeated string delegates = 3;

Parameter
Name Description
value String

The delegates to add.

Returns
Type Description
SignBlobRequest.Builder

This builder for chaining.

addDelegatesBytes(ByteString value)

publicSignBlobRequest.BuilderaddDelegatesBytes(ByteStringvalue)

The sequence of service accounts in a delegation chain. Each service account must be granted the roles/iam.serviceAccountTokenCreator role on its next service account in the chain. The last service account in the chain must be granted the roles/iam.serviceAccountTokenCreator role on the service account that is specified in the name field of the request.

The delegates must have the following format: projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}. The - wildcard character is required; replacing it with a project ID is invalid.

repeated string delegates = 3;

Parameter
Name Description
value ByteString

The bytes of the delegates to add.

Returns
Type Description
SignBlobRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicSignBlobRequest.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SignBlobRequest.Builder
Overrides

build()

publicSignBlobRequestbuild()
Returns
Type Description
SignBlobRequest

buildPartial()

publicSignBlobRequestbuildPartial()
Returns
Type Description
SignBlobRequest

clear()

publicSignBlobRequest.Builderclear()
Returns
Type Description
SignBlobRequest.Builder
Overrides

clearDelegates()

publicSignBlobRequest.BuilderclearDelegates()

The sequence of service accounts in a delegation chain. Each service account must be granted the roles/iam.serviceAccountTokenCreator role on its next service account in the chain. The last service account in the chain must be granted the roles/iam.serviceAccountTokenCreator role on the service account that is specified in the name field of the request.

The delegates must have the following format: projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}. The - wildcard character is required; replacing it with a project ID is invalid.

repeated string delegates = 3;

Returns
Type Description
SignBlobRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicSignBlobRequest.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SignBlobRequest.Builder
Overrides

clearName()

publicSignBlobRequest.BuilderclearName()

Required. The resource name of the service account for which the credentials are requested, in the following format: projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}. The - wildcard character is required; replacing it with a project ID is invalid.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
SignBlobRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicSignBlobRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SignBlobRequest.Builder
Overrides

clearPayload()

publicSignBlobRequest.BuilderclearPayload()

Required. The bytes to sign.

bytes payload = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SignBlobRequest.Builder

This builder for chaining.

clone()

publicSignBlobRequest.Builderclone()
Returns
Type Description
SignBlobRequest.Builder
Overrides

getDefaultInstanceForType()

publicSignBlobRequestgetDefaultInstanceForType()
Returns
Type Description
SignBlobRequest

getDelegates(int index)

publicStringgetDelegates(intindex)

The sequence of service accounts in a delegation chain. Each service account must be granted the roles/iam.serviceAccountTokenCreator role on its next service account in the chain. The last service account in the chain must be granted the roles/iam.serviceAccountTokenCreator role on the service account that is specified in the name field of the request.

The delegates must have the following format: projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}. The - wildcard character is required; replacing it with a project ID is invalid.

repeated string delegates = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The delegates at the given index.

getDelegatesBytes(int index)

publicByteStringgetDelegatesBytes(intindex)

The sequence of service accounts in a delegation chain. Each service account must be granted the roles/iam.serviceAccountTokenCreator role on its next service account in the chain. The last service account in the chain must be granted the roles/iam.serviceAccountTokenCreator role on the service account that is specified in the name field of the request.

The delegates must have the following format: projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}. The - wildcard character is required; replacing it with a project ID is invalid.

repeated string delegates = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the delegates at the given index.

getDelegatesCount()

publicintgetDelegatesCount()

The sequence of service accounts in a delegation chain. Each service account must be granted the roles/iam.serviceAccountTokenCreator role on its next service account in the chain. The last service account in the chain must be granted the roles/iam.serviceAccountTokenCreator role on the service account that is specified in the name field of the request.

The delegates must have the following format: projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}. The - wildcard character is required; replacing it with a project ID is invalid.

repeated string delegates = 3;

Returns
Type Description
int

The count of delegates.

getDelegatesList()

publicProtocolStringListgetDelegatesList()

The sequence of service accounts in a delegation chain. Each service account must be granted the roles/iam.serviceAccountTokenCreator role on its next service account in the chain. The last service account in the chain must be granted the roles/iam.serviceAccountTokenCreator role on the service account that is specified in the name field of the request.

The delegates must have the following format: projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}. The - wildcard character is required; replacing it with a project ID is invalid.

repeated string delegates = 3;

Returns
Type Description
ProtocolStringList

A list containing the delegates.

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

publicStringgetName()

Required. The resource name of the service account for which the credentials are requested, in the following format: projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}. The - wildcard character is required; replacing it with a project ID is invalid.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

Required. The resource name of the service account for which the credentials are requested, in the following format: projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}. The - wildcard character is required; replacing it with a project ID is invalid.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getPayload()

publicByteStringgetPayload()

Required. The bytes to sign.

bytes payload = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The payload.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SignBlobRequest other)

publicSignBlobRequest.BuildermergeFrom(SignBlobRequestother)
Parameter
Name Description
other SignBlobRequest
Returns
Type Description
SignBlobRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicSignBlobRequest.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SignBlobRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicSignBlobRequest.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
SignBlobRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalSignBlobRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SignBlobRequest.Builder
Overrides

setDelegates(int index, String value)

publicSignBlobRequest.BuildersetDelegates(intindex,Stringvalue)

The sequence of service accounts in a delegation chain. Each service account must be granted the roles/iam.serviceAccountTokenCreator role on its next service account in the chain. The last service account in the chain must be granted the roles/iam.serviceAccountTokenCreator role on the service account that is specified in the name field of the request.

The delegates must have the following format: projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}. The - wildcard character is required; replacing it with a project ID is invalid.

repeated string delegates = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The delegates to set.

Returns
Type Description
SignBlobRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicSignBlobRequest.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SignBlobRequest.Builder
Overrides

setName(String value)

publicSignBlobRequest.BuildersetName(Stringvalue)

Required. The resource name of the service account for which the credentials are requested, in the following format: projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}. The - wildcard character is required; replacing it with a project ID is invalid.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SignBlobRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

publicSignBlobRequest.BuildersetNameBytes(ByteStringvalue)

Required. The resource name of the service account for which the credentials are requested, in the following format: projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}. The - wildcard character is required; replacing it with a project ID is invalid.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SignBlobRequest.Builder

This builder for chaining.

setPayload(ByteString value)

publicSignBlobRequest.BuildersetPayload(ByteStringvalue)

Required. The bytes to sign.

bytes payload = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The payload to set.

Returns
Type Description
SignBlobRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicSignBlobRequest.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SignBlobRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalSignBlobRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SignBlobRequest.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.