Class SignBlobRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SignBlobRequest.Builder>
-
- com.google.cloud.iam.credentials.v1.SignBlobRequest.Builder
-
- All Implemented Interfaces:
SignBlobRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SignBlobRequest
public static final class SignBlobRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SignBlobRequest.Builder> implements SignBlobRequestOrBuilder
Protobuf typegoogle.iam.credentials.v1.SignBlobRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SignBlobRequest.BuilderaddAllDelegates(Iterable<String> values)The sequence of service accounts in a delegation chain.SignBlobRequest.BuilderaddDelegates(String value)The sequence of service accounts in a delegation chain.SignBlobRequest.BuilderaddDelegatesBytes(com.google.protobuf.ByteString value)The sequence of service accounts in a delegation chain.SignBlobRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SignBlobRequestbuild()SignBlobRequestbuildPartial()SignBlobRequest.Builderclear()SignBlobRequest.BuilderclearDelegates()The sequence of service accounts in a delegation chain.SignBlobRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)SignBlobRequest.BuilderclearName()Required.SignBlobRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)SignBlobRequest.BuilderclearPayload()Required.SignBlobRequest.Builderclone()SignBlobRequestgetDefaultInstanceForType()StringgetDelegates(int index)The sequence of service accounts in a delegation chain.com.google.protobuf.ByteStringgetDelegatesBytes(int index)The sequence of service accounts in a delegation chain.intgetDelegatesCount()The sequence of service accounts in a delegation chain.com.google.protobuf.ProtocolStringListgetDelegatesList()The sequence of service accounts in a delegation chain.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetName()Required.com.google.protobuf.ByteStringgetNameBytes()Required.com.google.protobuf.ByteStringgetPayload()Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SignBlobRequest.BuildermergeFrom(SignBlobRequest other)SignBlobRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SignBlobRequest.BuildermergeFrom(com.google.protobuf.Message other)SignBlobRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SignBlobRequest.BuildersetDelegates(int index, String value)The sequence of service accounts in a delegation chain.SignBlobRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SignBlobRequest.BuildersetName(String value)Required.SignBlobRequest.BuildersetNameBytes(com.google.protobuf.ByteString value)Required.SignBlobRequest.BuildersetPayload(com.google.protobuf.ByteString value)Required.SignBlobRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)SignBlobRequest.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<SignBlobRequest.Builder>
-
clear
public SignBlobRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<SignBlobRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<SignBlobRequest.Builder>
-
getDefaultInstanceForType
public SignBlobRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SignBlobRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SignBlobRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SignBlobRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<SignBlobRequest.Builder>
-
setField
public SignBlobRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SignBlobRequest.Builder>
-
clearField
public SignBlobRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SignBlobRequest.Builder>
-
clearOneof
public SignBlobRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SignBlobRequest.Builder>
-
setRepeatedField
public SignBlobRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SignBlobRequest.Builder>
-
addRepeatedField
public SignBlobRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SignBlobRequest.Builder>
-
mergeFrom
public SignBlobRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SignBlobRequest.Builder>
-
mergeFrom
public SignBlobRequest.Builder mergeFrom(SignBlobRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<SignBlobRequest.Builder>
-
mergeFrom
public SignBlobRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SignBlobRequest.Builder>- Throws:
IOException
-
getName
public String getName()
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) = { ... }- Specified by:
getNamein interfaceSignBlobRequestOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
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) = { ... }- Specified by:
getNameBytesin interfaceSignBlobRequestOrBuilder- Returns:
- The bytes for name.
-
setName
public SignBlobRequest.Builder setName(String value)
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) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public SignBlobRequest.Builder clearName()
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:
- This builder for chaining.
-
setNameBytes
public SignBlobRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
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) = { ... }- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDelegatesList
public com.google.protobuf.ProtocolStringList getDelegatesList()
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;- Specified by:
getDelegatesListin interfaceSignBlobRequestOrBuilder- Returns:
- A list containing the delegates.
-
getDelegatesCount
public int getDelegatesCount()
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;- Specified by:
getDelegatesCountin interfaceSignBlobRequestOrBuilder- Returns:
- The count of delegates.
-
getDelegates
public String getDelegates(int index)
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;- Specified by:
getDelegatesin interfaceSignBlobRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The delegates at the given index.
-
getDelegatesBytes
public com.google.protobuf.ByteString getDelegatesBytes(int index)
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;- Specified by:
getDelegatesBytesin interfaceSignBlobRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the delegates at the given index.
-
setDelegates
public SignBlobRequest.Builder setDelegates(int index, String value)
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:
index- The index to set the value at.value- The delegates to set.- Returns:
- This builder for chaining.
-
addDelegates
public SignBlobRequest.Builder addDelegates(String value)
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:
value- The delegates to add.- Returns:
- This builder for chaining.
-
addAllDelegates
public SignBlobRequest.Builder addAllDelegates(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;- Parameters:
values- The delegates to add.- Returns:
- This builder for chaining.
-
clearDelegates
public SignBlobRequest.Builder clearDelegates()
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:
- This builder for chaining.
-
addDelegatesBytes
public SignBlobRequest.Builder addDelegatesBytes(com.google.protobuf.ByteString value)
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:
value- The bytes of the delegates to add.- Returns:
- This builder for chaining.
-
getPayload
public com.google.protobuf.ByteString getPayload()
Required. The bytes to sign.
bytes payload = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPayloadin interfaceSignBlobRequestOrBuilder- Returns:
- The payload.
-
setPayload
public SignBlobRequest.Builder setPayload(com.google.protobuf.ByteString value)
Required. The bytes to sign.
bytes payload = 5 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The payload to set.- Returns:
- This builder for chaining.
-
clearPayload
public SignBlobRequest.Builder clearPayload()
Required. The bytes to sign.
bytes payload = 5 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setUnknownFields
public final SignBlobRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SignBlobRequest.Builder>
-
mergeUnknownFields
public final SignBlobRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SignBlobRequest.Builder>
-
-