Class AuthConfig.OauthConfig.Builder (3.41.0)

public static final class AuthConfig.OauthConfig.Builder extends GeneratedMessageV3.Builder<AuthConfig.OauthConfig.Builder> implements AuthConfig.OauthConfigOrBuilder

Config for user oauth.

Protobuf type google.cloud.aiplatform.v1beta1.AuthConfig.OauthConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AuthConfig.OauthConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AuthConfig.OauthConfig.Builder
Overrides

build()

public AuthConfig.OauthConfig build()
Returns
TypeDescription
AuthConfig.OauthConfig

buildPartial()

public AuthConfig.OauthConfig buildPartial()
Returns
TypeDescription
AuthConfig.OauthConfig

clear()

public AuthConfig.OauthConfig.Builder clear()
Returns
TypeDescription
AuthConfig.OauthConfig.Builder
Overrides

clearAccessToken()

public AuthConfig.OauthConfig.Builder clearAccessToken()

Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.

string access_token = 1;

Returns
TypeDescription
AuthConfig.OauthConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AuthConfig.OauthConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AuthConfig.OauthConfig.Builder
Overrides

clearOauthConfig()

public AuthConfig.OauthConfig.Builder clearOauthConfig()
Returns
TypeDescription
AuthConfig.OauthConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AuthConfig.OauthConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AuthConfig.OauthConfig.Builder
Overrides

clearServiceAccount()

public AuthConfig.OauthConfig.Builder clearServiceAccount()

The service account used to generate access tokens for executing the Extension.

string service_account = 2;

Returns
TypeDescription
AuthConfig.OauthConfig.Builder

This builder for chaining.

clone()

public AuthConfig.OauthConfig.Builder clone()
Returns
TypeDescription
AuthConfig.OauthConfig.Builder
Overrides

getAccessToken()

public String getAccessToken()

Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.

string access_token = 1;

Returns
TypeDescription
String

The accessToken.

getAccessTokenBytes()

public ByteString getAccessTokenBytes()

Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.

string access_token = 1;

Returns
TypeDescription
ByteString

The bytes for accessToken.

getDefaultInstanceForType()

public AuthConfig.OauthConfig getDefaultInstanceForType()
Returns
TypeDescription
AuthConfig.OauthConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getOauthConfigCase()

public AuthConfig.OauthConfig.OauthConfigCase getOauthConfigCase()
Returns
TypeDescription
AuthConfig.OauthConfig.OauthConfigCase

getServiceAccount()

public String getServiceAccount()

The service account used to generate access tokens for executing the Extension.

string service_account = 2;

Returns
TypeDescription
String

The serviceAccount.

getServiceAccountBytes()

public ByteString getServiceAccountBytes()

The service account used to generate access tokens for executing the Extension.

string service_account = 2;

Returns
TypeDescription
ByteString

The bytes for serviceAccount.

hasAccessToken()

public boolean hasAccessToken()

Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.

string access_token = 1;

Returns
TypeDescription
boolean

Whether the accessToken field is set.

hasServiceAccount()

public boolean hasServiceAccount()

The service account used to generate access tokens for executing the Extension.

string service_account = 2;

Returns
TypeDescription
boolean

Whether the serviceAccount field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AuthConfig.OauthConfig other)

public AuthConfig.OauthConfig.Builder mergeFrom(AuthConfig.OauthConfig other)
Parameter
NameDescription
otherAuthConfig.OauthConfig
Returns
TypeDescription
AuthConfig.OauthConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AuthConfig.OauthConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuthConfig.OauthConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AuthConfig.OauthConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AuthConfig.OauthConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AuthConfig.OauthConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AuthConfig.OauthConfig.Builder
Overrides

setAccessToken(String value)

public AuthConfig.OauthConfig.Builder setAccessToken(String value)

Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.

string access_token = 1;

Parameter
NameDescription
valueString

The accessToken to set.

Returns
TypeDescription
AuthConfig.OauthConfig.Builder

This builder for chaining.

setAccessTokenBytes(ByteString value)

public AuthConfig.OauthConfig.Builder setAccessTokenBytes(ByteString value)

Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.

string access_token = 1;

Parameter
NameDescription
valueByteString

The bytes for accessToken to set.

Returns
TypeDescription
AuthConfig.OauthConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AuthConfig.OauthConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AuthConfig.OauthConfig.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AuthConfig.OauthConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AuthConfig.OauthConfig.Builder
Overrides

setServiceAccount(String value)

public AuthConfig.OauthConfig.Builder setServiceAccount(String value)

The service account used to generate access tokens for executing the Extension.

string service_account = 2;

Parameter
NameDescription
valueString

The serviceAccount to set.

Returns
TypeDescription
AuthConfig.OauthConfig.Builder

This builder for chaining.

setServiceAccountBytes(ByteString value)

public AuthConfig.OauthConfig.Builder setServiceAccountBytes(ByteString value)

The service account used to generate access tokens for executing the Extension.

string service_account = 2;

Parameter
NameDescription
valueByteString

The bytes for serviceAccount to set.

Returns
TypeDescription
AuthConfig.OauthConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AuthConfig.OauthConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AuthConfig.OauthConfig.Builder
Overrides