Package com.google.iam.admin.v1
Class CreateServiceAccountKeyRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CreateServiceAccountKeyRequest.Builder>
-
- com.google.iam.admin.v1.CreateServiceAccountKeyRequest.Builder
-
- All Implemented Interfaces:
CreateServiceAccountKeyRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CreateServiceAccountKeyRequest
public static final class CreateServiceAccountKeyRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CreateServiceAccountKeyRequest.Builder> implements CreateServiceAccountKeyRequestOrBuilder
The service account key create request.
Protobuf typegoogle.iam.admin.v1.CreateServiceAccountKeyRequest
-
-
Method Summary
-
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<CreateServiceAccountKeyRequest.Builder>
-
clear
public CreateServiceAccountKeyRequest.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<CreateServiceAccountKeyRequest.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<CreateServiceAccountKeyRequest.Builder>
-
getDefaultInstanceForType
public CreateServiceAccountKeyRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CreateServiceAccountKeyRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CreateServiceAccountKeyRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CreateServiceAccountKeyRequest.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<CreateServiceAccountKeyRequest.Builder>
-
setField
public CreateServiceAccountKeyRequest.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<CreateServiceAccountKeyRequest.Builder>
-
clearField
public CreateServiceAccountKeyRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateServiceAccountKeyRequest.Builder>
-
clearOneof
public CreateServiceAccountKeyRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateServiceAccountKeyRequest.Builder>
-
setRepeatedField
public CreateServiceAccountKeyRequest.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<CreateServiceAccountKeyRequest.Builder>
-
addRepeatedField
public CreateServiceAccountKeyRequest.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<CreateServiceAccountKeyRequest.Builder>
-
mergeFrom
public CreateServiceAccountKeyRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CreateServiceAccountKeyRequest.Builder>
-
mergeFrom
public CreateServiceAccountKeyRequest.Builder mergeFrom(CreateServiceAccountKeyRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateServiceAccountKeyRequest.Builder>
-
mergeFrom
public CreateServiceAccountKeyRequest.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<CreateServiceAccountKeyRequest.Builder>- Throws:
IOException
-
getName
public String getName()
Required. The resource name of the service account in the following format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Using `-` as a wildcard for the `PROJECT_ID` will infer the project from the account. The `ACCOUNT` value can be the `email` address or the `unique_id` of the service account.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNamein interfaceCreateServiceAccountKeyRequestOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Required. The resource name of the service account in the following format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Using `-` as a wildcard for the `PROJECT_ID` will infer the project from the account. The `ACCOUNT` value can be the `email` address or the `unique_id` of the service account.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNameBytesin interfaceCreateServiceAccountKeyRequestOrBuilder- Returns:
- The bytes for name.
-
setName
public CreateServiceAccountKeyRequest.Builder setName(String value)
Required. The resource name of the service account in the following format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Using `-` as a wildcard for the `PROJECT_ID` will infer the project from the account. The `ACCOUNT` value can be the `email` address or the `unique_id` of the service account.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 CreateServiceAccountKeyRequest.Builder clearName()
Required. The resource name of the service account in the following format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Using `-` as a wildcard for the `PROJECT_ID` will infer the project from the account. The `ACCOUNT` value can be the `email` address or the `unique_id` of the service account.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setNameBytes
public CreateServiceAccountKeyRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
Required. The resource name of the service account in the following format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Using `-` as a wildcard for the `PROJECT_ID` will infer the project from the account. The `ACCOUNT` value can be the `email` address or the `unique_id` of the service account.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.
-
getPrivateKeyTypeValue
public int getPrivateKeyTypeValue()
The output format of the private key. The default value is `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File format.
.google.iam.admin.v1.ServiceAccountPrivateKeyType private_key_type = 2;- Specified by:
getPrivateKeyTypeValuein interfaceCreateServiceAccountKeyRequestOrBuilder- Returns:
- The enum numeric value on the wire for privateKeyType.
-
setPrivateKeyTypeValue
public CreateServiceAccountKeyRequest.Builder setPrivateKeyTypeValue(int value)
The output format of the private key. The default value is `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File format.
.google.iam.admin.v1.ServiceAccountPrivateKeyType private_key_type = 2;- Parameters:
value- The enum numeric value on the wire for privateKeyType to set.- Returns:
- This builder for chaining.
-
getPrivateKeyType
public ServiceAccountPrivateKeyType getPrivateKeyType()
The output format of the private key. The default value is `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File format.
.google.iam.admin.v1.ServiceAccountPrivateKeyType private_key_type = 2;- Specified by:
getPrivateKeyTypein interfaceCreateServiceAccountKeyRequestOrBuilder- Returns:
- The privateKeyType.
-
setPrivateKeyType
public CreateServiceAccountKeyRequest.Builder setPrivateKeyType(ServiceAccountPrivateKeyType value)
The output format of the private key. The default value is `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File format.
.google.iam.admin.v1.ServiceAccountPrivateKeyType private_key_type = 2;- Parameters:
value- The privateKeyType to set.- Returns:
- This builder for chaining.
-
clearPrivateKeyType
public CreateServiceAccountKeyRequest.Builder clearPrivateKeyType()
The output format of the private key. The default value is `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File format.
.google.iam.admin.v1.ServiceAccountPrivateKeyType private_key_type = 2;- Returns:
- This builder for chaining.
-
getKeyAlgorithmValue
public int getKeyAlgorithmValue()
Which type of key and algorithm to use for the key. The default is currently a 2K RSA key. However this may change in the future.
.google.iam.admin.v1.ServiceAccountKeyAlgorithm key_algorithm = 3;- Specified by:
getKeyAlgorithmValuein interfaceCreateServiceAccountKeyRequestOrBuilder- Returns:
- The enum numeric value on the wire for keyAlgorithm.
-
setKeyAlgorithmValue
public CreateServiceAccountKeyRequest.Builder setKeyAlgorithmValue(int value)
Which type of key and algorithm to use for the key. The default is currently a 2K RSA key. However this may change in the future.
.google.iam.admin.v1.ServiceAccountKeyAlgorithm key_algorithm = 3;- Parameters:
value- The enum numeric value on the wire for keyAlgorithm to set.- Returns:
- This builder for chaining.
-
getKeyAlgorithm
public ServiceAccountKeyAlgorithm getKeyAlgorithm()
Which type of key and algorithm to use for the key. The default is currently a 2K RSA key. However this may change in the future.
.google.iam.admin.v1.ServiceAccountKeyAlgorithm key_algorithm = 3;- Specified by:
getKeyAlgorithmin interfaceCreateServiceAccountKeyRequestOrBuilder- Returns:
- The keyAlgorithm.
-
setKeyAlgorithm
public CreateServiceAccountKeyRequest.Builder setKeyAlgorithm(ServiceAccountKeyAlgorithm value)
Which type of key and algorithm to use for the key. The default is currently a 2K RSA key. However this may change in the future.
.google.iam.admin.v1.ServiceAccountKeyAlgorithm key_algorithm = 3;- Parameters:
value- The keyAlgorithm to set.- Returns:
- This builder for chaining.
-
clearKeyAlgorithm
public CreateServiceAccountKeyRequest.Builder clearKeyAlgorithm()
Which type of key and algorithm to use for the key. The default is currently a 2K RSA key. However this may change in the future.
.google.iam.admin.v1.ServiceAccountKeyAlgorithm key_algorithm = 3;- Returns:
- This builder for chaining.
-
setUnknownFields
public final CreateServiceAccountKeyRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateServiceAccountKeyRequest.Builder>
-
mergeUnknownFields
public final CreateServiceAccountKeyRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateServiceAccountKeyRequest.Builder>
-
-