Class Binding.AuthProviderBinding.Builder (0.2.0)

public static final class Binding.AuthProviderBinding.Builder extends GeneratedMessage.Builder<Binding.AuthProviderBinding.Builder> implements Binding.AuthProviderBindingOrBuilder

The AuthProvider of the Binding.

Protobuf type google.cloud.agentregistry.v1.Binding.AuthProviderBinding

Static Methods

getDescriptor()

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

Methods

addAllScopes(Iterable<String> values)

public Binding.AuthProviderBinding.Builder addAllScopes(Iterable<String> values)

Optional. The list of OAuth2 scopes of the AuthProvider.

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

Parameter
Name Description
values Iterable<String>

The scopes to add.

Returns
Type Description
Binding.AuthProviderBinding.Builder

This builder for chaining.

addScopes(String value)

public Binding.AuthProviderBinding.Builder addScopes(String value)

Optional. The list of OAuth2 scopes of the AuthProvider.

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

Parameter
Name Description
value String

The scopes to add.

Returns
Type Description
Binding.AuthProviderBinding.Builder

This builder for chaining.

addScopesBytes(ByteString value)

public Binding.AuthProviderBinding.Builder addScopesBytes(ByteString value)

Optional. The list of OAuth2 scopes of the AuthProvider.

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

Parameter
Name Description
value ByteString

The bytes of the scopes to add.

Returns
Type Description
Binding.AuthProviderBinding.Builder

This builder for chaining.

build()

public Binding.AuthProviderBinding build()
Returns
Type Description
Binding.AuthProviderBinding

buildPartial()

public Binding.AuthProviderBinding buildPartial()
Returns
Type Description
Binding.AuthProviderBinding

clear()

public Binding.AuthProviderBinding.Builder clear()
Returns
Type Description
Binding.AuthProviderBinding.Builder
Overrides

clearAuthProvider()

public Binding.AuthProviderBinding.Builder clearAuthProvider()

Required. The resource name of the target AuthProvider. Format:

  • projects/{project}/locations/{location}/authProviders/{auth_provider}

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

Returns
Type Description
Binding.AuthProviderBinding.Builder

This builder for chaining.

clearContinueUri()

public Binding.AuthProviderBinding.Builder clearContinueUri()

Optional. The continue URI of the AuthProvider. The URI is used to reauthenticate the user and finalize the managed OAuth flow.

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

Returns
Type Description
Binding.AuthProviderBinding.Builder

This builder for chaining.

clearScopes()

public Binding.AuthProviderBinding.Builder clearScopes()

Optional. The list of OAuth2 scopes of the AuthProvider.

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

Returns
Type Description
Binding.AuthProviderBinding.Builder

This builder for chaining.

getAuthProvider()

public String getAuthProvider()

Required. The resource name of the target AuthProvider. Format:

  • projects/{project}/locations/{location}/authProviders/{auth_provider}

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

Returns
Type Description
String

The authProvider.

getAuthProviderBytes()

public ByteString getAuthProviderBytes()

Required. The resource name of the target AuthProvider. Format:

  • projects/{project}/locations/{location}/authProviders/{auth_provider}

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

Returns
Type Description
ByteString

The bytes for authProvider.

getContinueUri()

public String getContinueUri()

Optional. The continue URI of the AuthProvider. The URI is used to reauthenticate the user and finalize the managed OAuth flow.

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

Returns
Type Description
String

The continueUri.

getContinueUriBytes()

public ByteString getContinueUriBytes()

Optional. The continue URI of the AuthProvider. The URI is used to reauthenticate the user and finalize the managed OAuth flow.

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

Returns
Type Description
ByteString

The bytes for continueUri.

getDefaultInstanceForType()

public Binding.AuthProviderBinding getDefaultInstanceForType()
Returns
Type Description
Binding.AuthProviderBinding

getDescriptorForType()

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

getScopes(int index)

public String getScopes(int index)

Optional. The list of OAuth2 scopes of the AuthProvider.

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

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)

Optional. The list of OAuth2 scopes of the AuthProvider.

repeated string scopes = 2 [(.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 scopes at the given index.

getScopesCount()

public int getScopesCount()

Optional. The list of OAuth2 scopes of the AuthProvider.

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

Returns
Type Description
int

The count of scopes.

getScopesList()

public ProtocolStringList getScopesList()

Optional. The list of OAuth2 scopes of the AuthProvider.

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

Returns
Type Description
ProtocolStringList

A list containing the scopes.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Binding.AuthProviderBinding other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAuthProvider(String value)

public Binding.AuthProviderBinding.Builder setAuthProvider(String value)

Required. The resource name of the target AuthProvider. Format:

  • projects/{project}/locations/{location}/authProviders/{auth_provider}

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

Parameter
Name Description
value String

The authProvider to set.

Returns
Type Description
Binding.AuthProviderBinding.Builder

This builder for chaining.

setAuthProviderBytes(ByteString value)

public Binding.AuthProviderBinding.Builder setAuthProviderBytes(ByteString value)

Required. The resource name of the target AuthProvider. Format:

  • projects/{project}/locations/{location}/authProviders/{auth_provider}

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

Parameter
Name Description
value ByteString

The bytes for authProvider to set.

Returns
Type Description
Binding.AuthProviderBinding.Builder

This builder for chaining.

setContinueUri(String value)

public Binding.AuthProviderBinding.Builder setContinueUri(String value)

Optional. The continue URI of the AuthProvider. The URI is used to reauthenticate the user and finalize the managed OAuth flow.

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

Parameter
Name Description
value String

The continueUri to set.

Returns
Type Description
Binding.AuthProviderBinding.Builder

This builder for chaining.

setContinueUriBytes(ByteString value)

public Binding.AuthProviderBinding.Builder setContinueUriBytes(ByteString value)

Optional. The continue URI of the AuthProvider. The URI is used to reauthenticate the user and finalize the managed OAuth flow.

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

Parameter
Name Description
value ByteString

The bytes for continueUri to set.

Returns
Type Description
Binding.AuthProviderBinding.Builder

This builder for chaining.

setScopes(int index, String value)

public Binding.AuthProviderBinding.Builder setScopes(int index, String value)

Optional. The list of OAuth2 scopes of the AuthProvider.

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

Parameters
Name Description
index int

The index to set the value at.

value String

The scopes to set.

Returns
Type Description
Binding.AuthProviderBinding.Builder

This builder for chaining.