public static final class OAuthCredential.Builder extends GeneratedMessageV3.Builder<OAuthCredential.Builder> implements OAuthCredentialOrBuilder
Represents an OAuth token of the account that authorized the Connection,
and associated metadata.
Protobuf type google.devtools.cloudbuild.v2.OAuthCredential
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public OAuthCredential.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public OAuthCredential build()
Returns
public OAuthCredential buildPartial()
Returns
public OAuthCredential.Builder clear()
Returns
Overrides
public OAuthCredential.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public OAuthCredential.Builder clearOauthTokenSecretVersion()
A SecretManager resource containing the OAuth token that authorizes
the Cloud Build connection. Format: projects/*/secrets/*/versions/*
.
string oauth_token_secret_version = 1 [(.google.api.resource_reference) = { ... }
Returns
public OAuthCredential.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public OAuthCredential.Builder clearUsername()
Output only. The username associated to this token.
string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public OAuthCredential.Builder clone()
Returns
Overrides
public OAuthCredential getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public String getOauthTokenSecretVersion()
A SecretManager resource containing the OAuth token that authorizes
the Cloud Build connection. Format: projects/*/secrets/*/versions/*
.
string oauth_token_secret_version = 1 [(.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The oauthTokenSecretVersion.
|
public ByteString getOauthTokenSecretVersionBytes()
A SecretManager resource containing the OAuth token that authorizes
the Cloud Build connection. Format: projects/*/secrets/*/versions/*
.
string oauth_token_secret_version = 1 [(.google.api.resource_reference) = { ... }
Returns
Type | Description |
ByteString | The bytes for oauthTokenSecretVersion.
|
public String getUsername()
Output only. The username associated to this token.
string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
String | The username.
|
public ByteString getUsernameBytes()
Output only. The username associated to this token.
string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public OAuthCredential.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public OAuthCredential.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public OAuthCredential.Builder mergeFrom(OAuthCredential other)
Parameter
Returns
public final OAuthCredential.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public OAuthCredential.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public OAuthCredential.Builder setOauthTokenSecretVersion(String value)
A SecretManager resource containing the OAuth token that authorizes
the Cloud Build connection. Format: projects/*/secrets/*/versions/*
.
string oauth_token_secret_version = 1 [(.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The oauthTokenSecretVersion to set.
|
Returns
public OAuthCredential.Builder setOauthTokenSecretVersionBytes(ByteString value)
A SecretManager resource containing the OAuth token that authorizes
the Cloud Build connection. Format: projects/*/secrets/*/versions/*
.
string oauth_token_secret_version = 1 [(.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for oauthTokenSecretVersion to set.
|
Returns
public OAuthCredential.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final OAuthCredential.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public OAuthCredential.Builder setUsername(String value)
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.
|
Returns
public OAuthCredential.Builder setUsernameBytes(ByteString value)
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.
|
Returns