Class PasswordOAuthFlow.Builder (0.27.0)

public static final class PasswordOAuthFlow.Builder extends GeneratedMessage.Builder<PasswordOAuthFlow.Builder> implements PasswordOAuthFlowOrBuilder

PasswordOAuthFlow defines a password OAuth flow.

Protobuf type google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow

Static Methods

getDescriptor()

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

Methods

build()

public PasswordOAuthFlow build()
Returns
Type Description
PasswordOAuthFlow

buildPartial()

public PasswordOAuthFlow buildPartial()
Returns
Type Description
PasswordOAuthFlow

clear()

public PasswordOAuthFlow.Builder clear()
Returns
Type Description
PasswordOAuthFlow.Builder
Overrides

clearRefreshUrl()

public PasswordOAuthFlow.Builder clearRefreshUrl()

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

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

Returns
Type Description
PasswordOAuthFlow.Builder

This builder for chaining.

clearScopes()

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

clearTokenUrl()

public PasswordOAuthFlow.Builder clearTokenUrl()

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

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

Returns
Type Description
PasswordOAuthFlow.Builder

This builder for chaining.

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

getDefaultInstanceForType()

public PasswordOAuthFlow getDefaultInstanceForType()
Returns
Type Description
PasswordOAuthFlow

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMutableScopes() (deprecated)

public Map<String,String> getMutableScopes()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

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

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.

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.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PasswordOAuthFlow other)

public PasswordOAuthFlow.Builder mergeFrom(PasswordOAuthFlow other)
Parameter
Name Description
other PasswordOAuthFlow
Returns
Type Description
PasswordOAuthFlow.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PasswordOAuthFlow.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PasswordOAuthFlow.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PasswordOAuthFlow.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PasswordOAuthFlow.Builder
Overrides

putAllScopes(Map<String,String> values)

public PasswordOAuthFlow.Builder putAllScopes(Map<String,String> values)

The available scopes for the OAuth2 security scheme.

map<string, string> scopes = 3;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
PasswordOAuthFlow.Builder

putScopes(String key, String value)

public PasswordOAuthFlow.Builder putScopes(String key, String value)

The available scopes for the OAuth2 security scheme.

map<string, string> scopes = 3;

Parameters
Name Description
key String
value String
Returns
Type Description
PasswordOAuthFlow.Builder

removeScopes(String key)

public PasswordOAuthFlow.Builder removeScopes(String key)

The available scopes for the OAuth2 security scheme.

map<string, string> scopes = 3;

Parameter
Name Description
key String
Returns
Type Description
PasswordOAuthFlow.Builder

setRefreshUrl(String value)

public PasswordOAuthFlow.Builder setRefreshUrl(String value)

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

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

Parameter
Name Description
value String

The refreshUrl to set.

Returns
Type Description
PasswordOAuthFlow.Builder

This builder for chaining.

setRefreshUrlBytes(ByteString value)

public PasswordOAuthFlow.Builder setRefreshUrlBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for refreshUrl to set.

Returns
Type Description
PasswordOAuthFlow.Builder

This builder for chaining.

setTokenUrl(String value)

public PasswordOAuthFlow.Builder setTokenUrl(String value)

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

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

Parameter
Name Description
value String

The tokenUrl to set.

Returns
Type Description
PasswordOAuthFlow.Builder

This builder for chaining.

setTokenUrlBytes(ByteString value)

public PasswordOAuthFlow.Builder setTokenUrlBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for tokenUrl to set.

Returns
Type Description
PasswordOAuthFlow.Builder

This builder for chaining.