Class PasswordOAuthFlow (0.27.0)

public final class PasswordOAuthFlow extends GeneratedMessage implements PasswordOAuthFlowOrBuilder

PasswordOAuthFlow defines a password OAuth flow.

Protobuf type google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow

Static Fields

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 PasswordOAuthFlow getDefaultInstance()
Returns
Type Description
PasswordOAuthFlow

getDescriptor()

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

newBuilder()

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

newBuilder(PasswordOAuthFlow prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

containsScopes(String key)

public boolean containsScopes(String key)

The available scopes for the OAuth2 security scheme.

map<string, string> scopes = 3;

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

getDefaultInstanceForType()

public PasswordOAuthFlow getDefaultInstanceForType()
Returns
Type Description
PasswordOAuthFlow

getParserForType()

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

getRefreshUrl()

public String getRefreshUrl()

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

string refresh_url = 2 [(.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 = 2 [(.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 = 3;

Returns
Type Description
int

getScopesMap()

public Map<String,String> getScopesMap()

The available scopes for the OAuth2 security scheme.

map<string, string> scopes = 3;

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 = 3;

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 = 3;

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 = 1 [(.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 = 1 [(.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 PasswordOAuthFlow.Builder newBuilderForType()
Returns
Type Description
PasswordOAuthFlow.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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