publicstaticfinalclass UserCredential.BuilderextendsGeneratedMessageV3.Builder<UserCredential.Builder>implementsUserCredentialOrBuilder
Represents a personal access token that authorized the Connection,
and associated metadata.
Protobuf type google.devtools.cloudbuild.v2.UserCredential
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicUserCredential.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Overrides
build()
publicUserCredentialbuild()
buildPartial()
publicUserCredentialbuildPartial()
clear()
publicUserCredential.Builderclear()
Overrides
clearField(Descriptors.FieldDescriptor field)
publicUserCredential.BuilderclearField(Descriptors.FieldDescriptorfield)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
publicUserCredential.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Overrides
clearUserTokenSecretVersion()
publicUserCredential.BuilderclearUserTokenSecretVersion()
Required. A SecretManager resource containing the user token that
authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*.
string user_token_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
clearUsername()
publicUserCredential.BuilderclearUsername()
Output only. The username associated to this token.
string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
clone()
publicUserCredential.Builderclone()
Overrides
getDefaultInstanceForType()
publicUserCredentialgetDefaultInstanceForType()
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()
Overrides
getUserTokenSecretVersion()
publicStringgetUserTokenSecretVersion()
Required. A SecretManager resource containing the user token that
authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*.
string user_token_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
String |
The userTokenSecretVersion.
|
getUserTokenSecretVersionBytes()
publicByteStringgetUserTokenSecretVersionBytes()
Required. A SecretManager resource containing the user token that
authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*.
string user_token_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for userTokenSecretVersion.
|
getUsername()
publicStringgetUsername()
Output only. The username associated to this token.
string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
String |
The username.
|
getUsernameBytes()
publicByteStringgetUsernameBytes()
Output only. The username associated to this token.
string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
ByteString |
The bytes for username.
|
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
mergeFrom(UserCredential other)
publicUserCredential.BuildermergeFrom(UserCredentialother)
publicUserCredential.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Overrides
mergeFrom(Message other)
publicUserCredential.BuildermergeFrom(Messageother)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalUserCredential.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
publicUserCredential.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicUserCredential.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalUserCredential.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Overrides
setUserTokenSecretVersion(String value)
publicUserCredential.BuildersetUserTokenSecretVersion(Stringvalue)
Required. A SecretManager resource containing the user token that
authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*.
string user_token_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter |
| Name |
Description |
value |
String
The userTokenSecretVersion to set.
|
setUserTokenSecretVersionBytes(ByteString value)
publicUserCredential.BuildersetUserTokenSecretVersionBytes(ByteStringvalue)
Required. A SecretManager resource containing the user token that
authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*.
string user_token_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter |
| Name |
Description |
value |
ByteString
The bytes for userTokenSecretVersion to set.
|
setUsername(String value)
publicUserCredential.BuildersetUsername(Stringvalue)
Output only. The username associated to this token.
string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
value |
String
The username to set.
|
setUsernameBytes(ByteString value)
publicUserCredential.BuildersetUsernameBytes(ByteStringvalue)
Output only. The username associated to this token.
string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
value |
ByteString
The bytes for username to set.
|