Class TwoLeggedOAuth (0.1.0)

public final class TwoLeggedOAuth extends GeneratedMessage implements TwoLeggedOAuthOrBuilder

Message describing TwoLeggedOAuth object.

Protobuf type google.cloud.agentidentity.v1beta.TwoLeggedOAuth

Static Fields

CLIENT_ID_FIELD_NUMBER

public static final int CLIENT_ID_FIELD_NUMBER
Field Value
Type Description
int

CLIENT_SECRET_FIELD_NUMBER

public static final int CLIENT_SECRET_FIELD_NUMBER
Field Value
Type Description
int

TOKEN_URL_FIELD_NUMBER

public static final int TOKEN_URL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TwoLeggedOAuth getDefaultInstance()
Returns
Type Description
TwoLeggedOAuth

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static TwoLeggedOAuth.Builder newBuilder()
Returns
Type Description
TwoLeggedOAuth.Builder

newBuilder(TwoLeggedOAuth prototype)

public static TwoLeggedOAuth.Builder newBuilder(TwoLeggedOAuth prototype)
Parameter
Name Description
prototype TwoLeggedOAuth
Returns
Type Description
TwoLeggedOAuth.Builder

parseDelimitedFrom(InputStream input)

public static TwoLeggedOAuth parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TwoLeggedOAuth
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TwoLeggedOAuth parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TwoLeggedOAuth
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static TwoLeggedOAuth parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
TwoLeggedOAuth
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TwoLeggedOAuth parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TwoLeggedOAuth
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TwoLeggedOAuth parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
TwoLeggedOAuth
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TwoLeggedOAuth parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TwoLeggedOAuth
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TwoLeggedOAuth parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TwoLeggedOAuth
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TwoLeggedOAuth parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TwoLeggedOAuth
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static TwoLeggedOAuth parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TwoLeggedOAuth
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TwoLeggedOAuth parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TwoLeggedOAuth
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static TwoLeggedOAuth parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TwoLeggedOAuth
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TwoLeggedOAuth parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TwoLeggedOAuth
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<TwoLeggedOAuth> parser()
Returns
Type Description
Parser<TwoLeggedOAuth>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getClientId()

public String getClientId()

Optional. The client ID of the OAuth client.

string client_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The clientId.

getClientIdBytes()

public ByteString getClientIdBytes()

Optional. The client ID of the OAuth client.

string client_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for clientId.

getClientSecret()

public String getClientSecret()

Optional. Input only. The client secret of the OAuth client.

string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
String

The clientSecret.

getClientSecretBytes()

public ByteString getClientSecretBytes()

Optional. Input only. The client secret of the OAuth client.

string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
ByteString

The bytes for clientSecret.

getDefaultInstanceForType()

public TwoLeggedOAuth getDefaultInstanceForType()
Returns
Type Description
TwoLeggedOAuth

getParserForType()

public Parser<TwoLeggedOAuth> getParserForType()
Returns
Type Description
Parser<TwoLeggedOAuth>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTokenUrl()

public String getTokenUrl()

Optional. The token endpoint of the OAuth client.

string token_url = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The tokenUrl.

getTokenUrlBytes()

public ByteString getTokenUrlBytes()

Optional. The token endpoint of the OAuth client.

string token_url = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for tokenUrl.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public TwoLeggedOAuth.Builder newBuilderForType()
Returns
Type Description
TwoLeggedOAuth.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected TwoLeggedOAuth.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TwoLeggedOAuth.Builder
Overrides

toBuilder()

public TwoLeggedOAuth.Builder toBuilder()
Returns
Type Description
TwoLeggedOAuth.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException