Class AuthorizationCodeOAuthFlow (0.27.0)

public final class AuthorizationCodeOAuthFlow extends GeneratedMessage implements AuthorizationCodeOAuthFlowOrBuilder

AuthorizationCodeOAuthFlow defines an authorization code OAuth flow.

Protobuf type google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow

Static Fields

AUTHORIZATION_URL_FIELD_NUMBER

public static final int AUTHORIZATION_URL_FIELD_NUMBER
Field Value
Type Description
int

REFRESH_URL_FIELD_NUMBER

public static final int REFRESH_URL_FIELD_NUMBER
Field Value
Type Description
int

SCOPES_FIELD_NUMBER

public static final int SCOPES_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 AuthorizationCodeOAuthFlow getDefaultInstance()
Returns
Type Description
AuthorizationCodeOAuthFlow

getDescriptor()

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

newBuilder()

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

newBuilder(AuthorizationCodeOAuthFlow prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

containsScopes(String key)

public boolean containsScopes(String key)

The available scopes for the OAuth2 security scheme.

map<string, string> scopes = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

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

getAuthorizationUrl()

public String getAuthorizationUrl()

Optional. The authorization URL to be used for this flow.

string authorization_url = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The authorizationUrl.

getAuthorizationUrlBytes()

public ByteString getAuthorizationUrlBytes()

Optional. The authorization URL to be used for this flow.

string authorization_url = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for authorizationUrl.

getDefaultInstanceForType()

public AuthorizationCodeOAuthFlow getDefaultInstanceForType()
Returns
Type Description
AuthorizationCodeOAuthFlow

getParserForType()

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

getRefreshUrl()

public String getRefreshUrl()

Optional. The URL to be used for obtaining refresh tokens.

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

Returns
Type Description
String

The refreshUrl.

getRefreshUrlBytes()

public ByteString getRefreshUrlBytes()

Optional. The URL to be used for obtaining refresh tokens.

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

Returns
Type Description
ByteString

The bytes for refreshUrl.

getScopes() (deprecated)

public Map<String,String> getScopes()

Use #getScopesMap() instead.

Returns
Type Description
Map<String,String>

getScopesCount()

public int getScopesCount()

The available scopes for the OAuth2 security scheme.

map<string, string> scopes = 4;

Returns
Type Description
int

getScopesMap()

public Map<String,String> getScopesMap()

The available scopes for the OAuth2 security scheme.

map<string, string> scopes = 4;

Returns
Type Description
Map<String,String>

getScopesOrDefault(String key, String defaultValue)

public String getScopesOrDefault(String key, String defaultValue)

The available scopes for the OAuth2 security scheme.

map<string, string> scopes = 4;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getScopesOrThrow(String key)

public String getScopesOrThrow(String key)

The available scopes for the OAuth2 security scheme.

map<string, string> scopes = 4;

Parameter
Name Description
key String
Returns
Type Description
String

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTokenUrl()

public String getTokenUrl()

Optional. The token URL to be used for this flow.

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

Returns
Type Description
String

The tokenUrl.

getTokenUrlBytes()

public ByteString getTokenUrlBytes()

Optional. The token URL to be used for this flow.

string token_url = 2 [(.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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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