public final class OAuthCredential extends GeneratedMessageV3 implements OAuthCredentialOrBuilder
Represents an OAuth token of the account that authorized the Connection,
and associated metadata.
Protobuf type google.devtools.cloudbuild.v2.OAuthCredential
Static Fields
public static final int OAUTH_TOKEN_SECRET_VERSION_FIELD_NUMBER
Field Value
public static final int USERNAME_FIELD_NUMBER
Field Value
Static Methods
public static OAuthCredential getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static OAuthCredential.Builder newBuilder()
Returns
public static OAuthCredential.Builder newBuilder(OAuthCredential prototype)
Parameter
Returns
public static OAuthCredential parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static OAuthCredential parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static OAuthCredential parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static OAuthCredential parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static OAuthCredential parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static OAuthCredential parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static OAuthCredential parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static OAuthCredential parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static OAuthCredential parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static OAuthCredential parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static OAuthCredential parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static OAuthCredential parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<OAuthCredential> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public OAuthCredential getDefaultInstanceForType()
Returns
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 Parser<OAuthCredential> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public OAuthCredential.Builder newBuilderForType()
Returns
protected OAuthCredential.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public OAuthCredential.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions