Class FinishOAuthRequest.GoogleOAuthParams.Builder (0.44.0)

public static final class FinishOAuthRequest.GoogleOAuthParams.Builder extends GeneratedMessage.Builder<FinishOAuthRequest.GoogleOAuthParams.Builder> implements FinishOAuthRequest.GoogleOAuthParamsOrBuilder

The params returned by Google OAuth flow redirects.

Protobuf type google.cloud.developerconnect.v1.FinishOAuthRequest.GoogleOAuthParams

Static Methods

getDescriptor()

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

Methods

addAllScopes(Iterable<String> values)

public FinishOAuthRequest.GoogleOAuthParams.Builder addAllScopes(Iterable<String> values)

Required. The scopes returned by Google OAuth flow.

repeated string scopes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<String>

The scopes to add.

Returns
Type Description
FinishOAuthRequest.GoogleOAuthParams.Builder

This builder for chaining.

addScopes(String value)

public FinishOAuthRequest.GoogleOAuthParams.Builder addScopes(String value)

Required. The scopes returned by Google OAuth flow.

repeated string scopes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The scopes to add.

Returns
Type Description
FinishOAuthRequest.GoogleOAuthParams.Builder

This builder for chaining.

addScopesBytes(ByteString value)

public FinishOAuthRequest.GoogleOAuthParams.Builder addScopesBytes(ByteString value)

Required. The scopes returned by Google OAuth flow.

repeated string scopes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes of the scopes to add.

Returns
Type Description
FinishOAuthRequest.GoogleOAuthParams.Builder

This builder for chaining.

build()

public FinishOAuthRequest.GoogleOAuthParams build()
Returns
Type Description
FinishOAuthRequest.GoogleOAuthParams

buildPartial()

public FinishOAuthRequest.GoogleOAuthParams buildPartial()
Returns
Type Description
FinishOAuthRequest.GoogleOAuthParams

clear()

public FinishOAuthRequest.GoogleOAuthParams.Builder clear()
Returns
Type Description
FinishOAuthRequest.GoogleOAuthParams.Builder
Overrides

clearScopes()

public FinishOAuthRequest.GoogleOAuthParams.Builder clearScopes()

Required. The scopes returned by Google OAuth flow.

repeated string scopes = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FinishOAuthRequest.GoogleOAuthParams.Builder

This builder for chaining.

clearTicket()

public FinishOAuthRequest.GoogleOAuthParams.Builder clearTicket()

Required. The ticket to be used for post processing the callback from Google OAuth flow.

string ticket = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FinishOAuthRequest.GoogleOAuthParams.Builder

This builder for chaining.

clearVersionInfo()

public FinishOAuthRequest.GoogleOAuthParams.Builder clearVersionInfo()

Optional. The version info returned by Google OAuth flow.

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

Returns
Type Description
FinishOAuthRequest.GoogleOAuthParams.Builder

This builder for chaining.

getDefaultInstanceForType()

public FinishOAuthRequest.GoogleOAuthParams getDefaultInstanceForType()
Returns
Type Description
FinishOAuthRequest.GoogleOAuthParams

getDescriptorForType()

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

getScopes(int index)

public String getScopes(int index)

Required. The scopes returned by Google OAuth flow.

repeated string scopes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The scopes at the given index.

getScopesBytes(int index)

public ByteString getScopesBytes(int index)

Required. The scopes returned by Google OAuth flow.

repeated string scopes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the scopes at the given index.

getScopesCount()

public int getScopesCount()

Required. The scopes returned by Google OAuth flow.

repeated string scopes = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of scopes.

getScopesList()

public ProtocolStringList getScopesList()

Required. The scopes returned by Google OAuth flow.

repeated string scopes = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the scopes.

getTicket()

public String getTicket()

Required. The ticket to be used for post processing the callback from Google OAuth flow.

string ticket = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The ticket.

getTicketBytes()

public ByteString getTicketBytes()

Required. The ticket to be used for post processing the callback from Google OAuth flow.

string ticket = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for ticket.

getVersionInfo()

public String getVersionInfo()

Optional. The version info returned by Google OAuth flow.

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

Returns
Type Description
String

The versionInfo.

getVersionInfoBytes()

public ByteString getVersionInfoBytes()

Optional. The version info returned by Google OAuth flow.

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

Returns
Type Description
ByteString

The bytes for versionInfo.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FinishOAuthRequest.GoogleOAuthParams other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setScopes(int index, String value)

public FinishOAuthRequest.GoogleOAuthParams.Builder setScopes(int index, String value)

Required. The scopes returned by Google OAuth flow.

repeated string scopes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value String

The scopes to set.

Returns
Type Description
FinishOAuthRequest.GoogleOAuthParams.Builder

This builder for chaining.

setTicket(String value)

public FinishOAuthRequest.GoogleOAuthParams.Builder setTicket(String value)

Required. The ticket to be used for post processing the callback from Google OAuth flow.

string ticket = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The ticket to set.

Returns
Type Description
FinishOAuthRequest.GoogleOAuthParams.Builder

This builder for chaining.

setTicketBytes(ByteString value)

public FinishOAuthRequest.GoogleOAuthParams.Builder setTicketBytes(ByteString value)

Required. The ticket to be used for post processing the callback from Google OAuth flow.

string ticket = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for ticket to set.

Returns
Type Description
FinishOAuthRequest.GoogleOAuthParams.Builder

This builder for chaining.

setVersionInfo(String value)

public FinishOAuthRequest.GoogleOAuthParams.Builder setVersionInfo(String value)

Optional. The version info returned by Google OAuth flow.

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

Parameter
Name Description
value String

The versionInfo to set.

Returns
Type Description
FinishOAuthRequest.GoogleOAuthParams.Builder

This builder for chaining.

setVersionInfoBytes(ByteString value)

public FinishOAuthRequest.GoogleOAuthParams.Builder setVersionInfoBytes(ByteString value)

Optional. The version info returned by Google OAuth flow.

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

Parameter
Name Description
value ByteString

The bytes for versionInfo to set.

Returns
Type Description
FinishOAuthRequest.GoogleOAuthParams.Builder

This builder for chaining.