Class OAuth2SecurityScheme.Builder (0.27.0)

public static final class OAuth2SecurityScheme.Builder extends GeneratedMessage.Builder<OAuth2SecurityScheme.Builder> implements OAuth2SecuritySchemeOrBuilder

OAuth2SecurityScheme defines an OAuth2 security scheme.

Protobuf type google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme

Static Methods

getDescriptor()

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

Methods

build()

public OAuth2SecurityScheme build()
Returns
Type Description
OAuth2SecurityScheme

buildPartial()

public OAuth2SecurityScheme buildPartial()
Returns
Type Description
OAuth2SecurityScheme

clear()

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

clearDescription()

public OAuth2SecurityScheme.Builder clearDescription()

Optional. Description of this security scheme.

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

Returns
Type Description
OAuth2SecurityScheme.Builder

This builder for chaining.

clearFlows()

public OAuth2SecurityScheme.Builder clearFlows()

Optional. An object containing configuration information for the flow types supported.

.google.cloud.geminidataanalytics.v1beta.OAuthFlows flows = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OAuth2SecurityScheme.Builder

clearOauth2MetadataUrl()

public OAuth2SecurityScheme.Builder clearOauth2MetadataUrl()

Optional. URL to the oauth2 authorization server metadata.

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

Returns
Type Description
OAuth2SecurityScheme.Builder

This builder for chaining.

getDefaultInstanceForType()

public OAuth2SecurityScheme getDefaultInstanceForType()
Returns
Type Description
OAuth2SecurityScheme

getDescription()

public String getDescription()

Optional. Description of this security scheme.

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

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Description of this security scheme.

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

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getFlows()

public OAuthFlows getFlows()

Optional. An object containing configuration information for the flow types supported.

.google.cloud.geminidataanalytics.v1beta.OAuthFlows flows = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OAuthFlows

The flows.

getFlowsBuilder()

public OAuthFlows.Builder getFlowsBuilder()

Optional. An object containing configuration information for the flow types supported.

.google.cloud.geminidataanalytics.v1beta.OAuthFlows flows = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OAuthFlows.Builder

getFlowsOrBuilder()

public OAuthFlowsOrBuilder getFlowsOrBuilder()

Optional. An object containing configuration information for the flow types supported.

.google.cloud.geminidataanalytics.v1beta.OAuthFlows flows = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OAuthFlowsOrBuilder

getOauth2MetadataUrl()

public String getOauth2MetadataUrl()

Optional. URL to the oauth2 authorization server metadata.

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

Returns
Type Description
String

The oauth2MetadataUrl.

getOauth2MetadataUrlBytes()

public ByteString getOauth2MetadataUrlBytes()

Optional. URL to the oauth2 authorization server metadata.

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

Returns
Type Description
ByteString

The bytes for oauth2MetadataUrl.

hasFlows()

public boolean hasFlows()

Optional. An object containing configuration information for the flow types supported.

.google.cloud.geminidataanalytics.v1beta.OAuthFlows flows = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the flows field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFlows(OAuthFlows value)

public OAuth2SecurityScheme.Builder mergeFlows(OAuthFlows value)

Optional. An object containing configuration information for the flow types supported.

.google.cloud.geminidataanalytics.v1beta.OAuthFlows flows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value OAuthFlows
Returns
Type Description
OAuth2SecurityScheme.Builder

mergeFrom(OAuth2SecurityScheme other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDescription(String value)

public OAuth2SecurityScheme.Builder setDescription(String value)

Optional. Description of this security scheme.

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

Parameter
Name Description
value String

The description to set.

Returns
Type Description
OAuth2SecurityScheme.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public OAuth2SecurityScheme.Builder setDescriptionBytes(ByteString value)

Optional. Description of this security scheme.

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

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
OAuth2SecurityScheme.Builder

This builder for chaining.

setFlows(OAuthFlows value)

public OAuth2SecurityScheme.Builder setFlows(OAuthFlows value)

Optional. An object containing configuration information for the flow types supported.

.google.cloud.geminidataanalytics.v1beta.OAuthFlows flows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value OAuthFlows
Returns
Type Description
OAuth2SecurityScheme.Builder

setFlows(OAuthFlows.Builder builderForValue)

public OAuth2SecurityScheme.Builder setFlows(OAuthFlows.Builder builderForValue)

Optional. An object containing configuration information for the flow types supported.

.google.cloud.geminidataanalytics.v1beta.OAuthFlows flows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue OAuthFlows.Builder
Returns
Type Description
OAuth2SecurityScheme.Builder

setOauth2MetadataUrl(String value)

public OAuth2SecurityScheme.Builder setOauth2MetadataUrl(String value)

Optional. URL to the oauth2 authorization server metadata.

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

Parameter
Name Description
value String

The oauth2MetadataUrl to set.

Returns
Type Description
OAuth2SecurityScheme.Builder

This builder for chaining.

setOauth2MetadataUrlBytes(ByteString value)

public OAuth2SecurityScheme.Builder setOauth2MetadataUrlBytes(ByteString value)

Optional. URL to the oauth2 authorization server metadata.

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

Parameter
Name Description
value ByteString

The bytes for oauth2MetadataUrl to set.

Returns
Type Description
OAuth2SecurityScheme.Builder

This builder for chaining.