Class AuthenticationInfo.Builder (0.27.0)

public static final class AuthenticationInfo.Builder extends GeneratedMessage.Builder<AuthenticationInfo.Builder> implements AuthenticationInfoOrBuilder

Defines authentication details, used for push notifications.

Protobuf type google.cloud.geminidataanalytics.v1beta.AuthenticationInfo

Static Methods

getDescriptor()

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

Methods

addAllSchemes(Iterable<String> values)

public AuthenticationInfo.Builder addAllSchemes(Iterable<String> values)

Optional. Supported authentication schemes - e.g. Basic, Bearer, etc.

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

Parameter
Name Description
values Iterable<String>

The schemes to add.

Returns
Type Description
AuthenticationInfo.Builder

This builder for chaining.

addSchemes(String value)

public AuthenticationInfo.Builder addSchemes(String value)

Optional. Supported authentication schemes - e.g. Basic, Bearer, etc.

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

Parameter
Name Description
value String

The schemes to add.

Returns
Type Description
AuthenticationInfo.Builder

This builder for chaining.

addSchemesBytes(ByteString value)

public AuthenticationInfo.Builder addSchemesBytes(ByteString value)

Optional. Supported authentication schemes - e.g. Basic, Bearer, etc.

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

Parameter
Name Description
value ByteString

The bytes of the schemes to add.

Returns
Type Description
AuthenticationInfo.Builder

This builder for chaining.

build()

public AuthenticationInfo build()
Returns
Type Description
AuthenticationInfo

buildPartial()

public AuthenticationInfo buildPartial()
Returns
Type Description
AuthenticationInfo

clear()

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

clearCredentials()

public AuthenticationInfo.Builder clearCredentials()

Optional. Optional credentials.

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

Returns
Type Description
AuthenticationInfo.Builder

This builder for chaining.

clearSchemes()

public AuthenticationInfo.Builder clearSchemes()

Optional. Supported authentication schemes - e.g. Basic, Bearer, etc.

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

Returns
Type Description
AuthenticationInfo.Builder

This builder for chaining.

getCredentials()

public String getCredentials()

Optional. Optional credentials.

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

Returns
Type Description
String

The credentials.

getCredentialsBytes()

public ByteString getCredentialsBytes()

Optional. Optional credentials.

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

Returns
Type Description
ByteString

The bytes for credentials.

getDefaultInstanceForType()

public AuthenticationInfo getDefaultInstanceForType()
Returns
Type Description
AuthenticationInfo

getDescriptorForType()

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

getSchemes(int index)

public String getSchemes(int index)

Optional. Supported authentication schemes - e.g. Basic, Bearer, etc.

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

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The schemes at the given index.

getSchemesBytes(int index)

public ByteString getSchemesBytes(int index)

Optional. Supported authentication schemes - e.g. Basic, Bearer, etc.

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

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the schemes at the given index.

getSchemesCount()

public int getSchemesCount()

Optional. Supported authentication schemes - e.g. Basic, Bearer, etc.

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

Returns
Type Description
int

The count of schemes.

getSchemesList()

public ProtocolStringList getSchemesList()

Optional. Supported authentication schemes - e.g. Basic, Bearer, etc.

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

Returns
Type Description
ProtocolStringList

A list containing the schemes.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AuthenticationInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCredentials(String value)

public AuthenticationInfo.Builder setCredentials(String value)

Optional. Optional credentials.

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

Parameter
Name Description
value String

The credentials to set.

Returns
Type Description
AuthenticationInfo.Builder

This builder for chaining.

setCredentialsBytes(ByteString value)

public AuthenticationInfo.Builder setCredentialsBytes(ByteString value)

Optional. Optional credentials.

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

Parameter
Name Description
value ByteString

The bytes for credentials to set.

Returns
Type Description
AuthenticationInfo.Builder

This builder for chaining.

setSchemes(int index, String value)

public AuthenticationInfo.Builder setSchemes(int index, String value)

Optional. Supported authentication schemes - e.g. Basic, Bearer, etc.

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

Parameters
Name Description
index int

The index to set the value at.

value String

The schemes to set.

Returns
Type Description
AuthenticationInfo.Builder

This builder for chaining.