Class ImplicitOAuthFlow.Builder (0.27.0)

public static final class ImplicitOAuthFlow.Builder extends GeneratedMessage.Builder<ImplicitOAuthFlow.Builder> implements ImplicitOAuthFlowOrBuilder

ImplicitOAuthFlow defines an implicit OAuth flow.

Protobuf type google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow

Static Methods

getDescriptor()

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

Methods

build()

public ImplicitOAuthFlow build()
Returns
Type Description
ImplicitOAuthFlow

buildPartial()

public ImplicitOAuthFlow buildPartial()
Returns
Type Description
ImplicitOAuthFlow

clear()

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

clearAuthorizationUrl()

public ImplicitOAuthFlow.Builder clearAuthorizationUrl()

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

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

Returns
Type Description
ImplicitOAuthFlow.Builder

This builder for chaining.

clearRefreshUrl()

public ImplicitOAuthFlow.Builder clearRefreshUrl()

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

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

Returns
Type Description
ImplicitOAuthFlow.Builder

This builder for chaining.

clearScopes()

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

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

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 ImplicitOAuthFlow getDefaultInstanceForType()
Returns
Type Description
ImplicitOAuthFlow

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

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

putAllScopes(Map<String,String> values)

public ImplicitOAuthFlow.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
ImplicitOAuthFlow.Builder

putScopes(String key, String value)

public ImplicitOAuthFlow.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
ImplicitOAuthFlow.Builder

removeScopes(String key)

public ImplicitOAuthFlow.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
ImplicitOAuthFlow.Builder

setAuthorizationUrl(String value)

public ImplicitOAuthFlow.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
ImplicitOAuthFlow.Builder

This builder for chaining.

setAuthorizationUrlBytes(ByteString value)

public ImplicitOAuthFlow.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
ImplicitOAuthFlow.Builder

This builder for chaining.

setRefreshUrl(String value)

public ImplicitOAuthFlow.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
ImplicitOAuthFlow.Builder

This builder for chaining.

setRefreshUrlBytes(ByteString value)

public ImplicitOAuthFlow.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
ImplicitOAuthFlow.Builder

This builder for chaining.