Class AuthorizationCodeOAuthFlow.Builder (0.27.0)

public static final class AuthorizationCodeOAuthFlow.Builder extends GeneratedMessage.Builder<AuthorizationCodeOAuthFlow.Builder> implements AuthorizationCodeOAuthFlowOrBuilder

AuthorizationCodeOAuthFlow defines an authorization code OAuth flow.

Protobuf type google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow

Static Methods

getDescriptor()

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

Methods

build()

public AuthorizationCodeOAuthFlow build()
Returns
Type Description
AuthorizationCodeOAuthFlow

buildPartial()

public AuthorizationCodeOAuthFlow buildPartial()
Returns
Type Description
AuthorizationCodeOAuthFlow

clear()

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

clearAuthorizationUrl()

public AuthorizationCodeOAuthFlow.Builder clearAuthorizationUrl()

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

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

Returns
Type Description
AuthorizationCodeOAuthFlow.Builder

This builder for chaining.

clearRefreshUrl()

public AuthorizationCodeOAuthFlow.Builder clearRefreshUrl()

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

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

Returns
Type Description
AuthorizationCodeOAuthFlow.Builder

This builder for chaining.

clearScopes()

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

clearTokenUrl()

public AuthorizationCodeOAuthFlow.Builder clearTokenUrl()

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

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

Returns
Type Description
AuthorizationCodeOAuthFlow.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 = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

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

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

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.

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(AuthorizationCodeOAuthFlow other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

putAllScopes(Map<String,String> values)

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

The available scopes for the OAuth2 security scheme.

map<string, string> scopes = 4;

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

putScopes(String key, String value)

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

The available scopes for the OAuth2 security scheme.

map<string, string> scopes = 4;

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

removeScopes(String key)

public AuthorizationCodeOAuthFlow.Builder removeScopes(String key)

The available scopes for the OAuth2 security scheme.

map<string, string> scopes = 4;

Parameter
Name Description
key String
Returns
Type Description
AuthorizationCodeOAuthFlow.Builder

setAuthorizationUrl(String value)

public AuthorizationCodeOAuthFlow.Builder setAuthorizationUrl(String value)

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

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

Parameter
Name Description
value String

The authorizationUrl to set.

Returns
Type Description
AuthorizationCodeOAuthFlow.Builder

This builder for chaining.

setAuthorizationUrlBytes(ByteString value)

public AuthorizationCodeOAuthFlow.Builder setAuthorizationUrlBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for authorizationUrl to set.

Returns
Type Description
AuthorizationCodeOAuthFlow.Builder

This builder for chaining.

setRefreshUrl(String value)

public AuthorizationCodeOAuthFlow.Builder setRefreshUrl(String value)

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

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

Parameter
Name Description
value String

The refreshUrl to set.

Returns
Type Description
AuthorizationCodeOAuthFlow.Builder

This builder for chaining.

setRefreshUrlBytes(ByteString value)

public AuthorizationCodeOAuthFlow.Builder setRefreshUrlBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for refreshUrl to set.

Returns
Type Description
AuthorizationCodeOAuthFlow.Builder

This builder for chaining.

setTokenUrl(String value)

public AuthorizationCodeOAuthFlow.Builder setTokenUrl(String value)

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

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

Parameter
Name Description
value String

The tokenUrl to set.

Returns
Type Description
AuthorizationCodeOAuthFlow.Builder

This builder for chaining.

setTokenUrlBytes(ByteString value)

public AuthorizationCodeOAuthFlow.Builder setTokenUrlBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for tokenUrl to set.

Returns
Type Description
AuthorizationCodeOAuthFlow.Builder

This builder for chaining.