Class AccountConnector.Builder (0.24.0)

public static final class AccountConnector.Builder extends GeneratedMessageV3.Builder<AccountConnector.Builder> implements AccountConnectorOrBuilder

AccountConnector encapsulates what a platform administrator needs to configure for users to connect to the service providers, which includes, among other fields, the OAuth client ID, client secret, and authorization and token endpoints.

Protobuf type google.cloud.developerconnect.v1.AccountConnector

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AccountConnector.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AccountConnector.Builder
Overrides

build()

public AccountConnector build()
Returns
Type Description
AccountConnector

buildPartial()

public AccountConnector buildPartial()
Returns
Type Description
AccountConnector

clear()

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

clearAccountConnectorConfig()

public AccountConnector.Builder clearAccountConnectorConfig()
Returns
Type Description
AccountConnector.Builder

clearAnnotations()

public AccountConnector.Builder clearAnnotations()
Returns
Type Description
AccountConnector.Builder

clearCreateTime()

public AccountConnector.Builder clearCreateTime()

Output only. The timestamp when the accountConnector was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AccountConnector.Builder

clearEtag()

public AccountConnector.Builder clearEtag()

Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AccountConnector.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AccountConnector.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AccountConnector.Builder
Overrides

clearLabels()

public AccountConnector.Builder clearLabels()
Returns
Type Description
AccountConnector.Builder

clearName()

public AccountConnector.Builder clearName()

Identifier. The resource name of the accountConnector, in the format projects/{project}/locations/{location}/accountConnectors/{account_connector_id}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
AccountConnector.Builder

This builder for chaining.

clearOauthStartUri()

public AccountConnector.Builder clearOauthStartUri()

Output only. Start OAuth flow by clicking on this URL.

string oauth_start_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AccountConnector.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AccountConnector.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AccountConnector.Builder
Overrides

clearProviderOauthConfig()

public AccountConnector.Builder clearProviderOauthConfig()

Provider OAuth config.

.google.cloud.developerconnect.v1.ProviderOAuthConfig provider_oauth_config = 5;

Returns
Type Description
AccountConnector.Builder

clearUpdateTime()

public AccountConnector.Builder clearUpdateTime()

Output only. The timestamp when the accountConnector was updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AccountConnector.Builder

clone()

public AccountConnector.Builder clone()
Returns
Type Description
AccountConnector.Builder
Overrides

containsAnnotations(String key)

public boolean containsAnnotations(String key)

Optional. Allows users to store small amounts of arbitrary data.

map<string, string> annotations = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Labels as key value pairs

map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getAccountConnectorConfigCase()

public AccountConnector.AccountConnectorConfigCase getAccountConnectorConfigCase()
Returns
Type Description
AccountConnector.AccountConnectorConfigCase

getAnnotations() (deprecated)

public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
Type Description
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()

Optional. Allows users to store small amounts of arbitrary data.

map<string, string> annotations = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getAnnotationsMap()

public Map<String,String> getAnnotationsMap()

Optional. Allows users to store small amounts of arbitrary data.

map<string, string> annotations = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getAnnotationsOrDefault(String key, String defaultValue)

public String getAnnotationsOrDefault(String key, String defaultValue)

Optional. Allows users to store small amounts of arbitrary data.

map<string, string> annotations = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getAnnotationsOrThrow(String key)

public String getAnnotationsOrThrow(String key)

Optional. Allows users to store small amounts of arbitrary data.

map<string, string> annotations = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp when the accountConnector was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The timestamp when the accountConnector was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp when the accountConnector was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public AccountConnector getDefaultInstanceForType()
Returns
Type Description
AccountConnector

getDescriptorForType()

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

getEtag()

public String getEtag()

Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for etag.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Labels as key value pairs

map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Labels as key value pairs

map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Labels as key value pairs

map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Labels as key value pairs

map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getMutableAnnotations() (deprecated)

public Map<String,String> getMutableAnnotations()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Identifier. The resource name of the accountConnector, in the format projects/{project}/locations/{location}/accountConnectors/{account_connector_id}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the accountConnector, in the format projects/{project}/locations/{location}/accountConnectors/{account_connector_id}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getOauthStartUri()

public String getOauthStartUri()

Output only. Start OAuth flow by clicking on this URL.

string oauth_start_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The oauthStartUri.

getOauthStartUriBytes()

public ByteString getOauthStartUriBytes()

Output only. Start OAuth flow by clicking on this URL.

string oauth_start_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for oauthStartUri.

getProviderOauthConfig()

public ProviderOAuthConfig getProviderOauthConfig()

Provider OAuth config.

.google.cloud.developerconnect.v1.ProviderOAuthConfig provider_oauth_config = 5;

Returns
Type Description
ProviderOAuthConfig

The providerOauthConfig.

getProviderOauthConfigBuilder()

public ProviderOAuthConfig.Builder getProviderOauthConfigBuilder()

Provider OAuth config.

.google.cloud.developerconnect.v1.ProviderOAuthConfig provider_oauth_config = 5;

Returns
Type Description
ProviderOAuthConfig.Builder

getProviderOauthConfigOrBuilder()

public ProviderOAuthConfigOrBuilder getProviderOauthConfigOrBuilder()

Provider OAuth config.

.google.cloud.developerconnect.v1.ProviderOAuthConfig provider_oauth_config = 5;

Returns
Type Description
ProviderOAuthConfigOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The timestamp when the accountConnector was updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The timestamp when the accountConnector was updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The timestamp when the accountConnector was updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The timestamp when the accountConnector was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasProviderOauthConfig()

public boolean hasProviderOauthConfig()

Provider OAuth config.

.google.cloud.developerconnect.v1.ProviderOAuthConfig provider_oauth_config = 5;

Returns
Type Description
boolean

Whether the providerOauthConfig field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The timestamp when the accountConnector was updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public AccountConnector.Builder mergeCreateTime(Timestamp value)

Output only. The timestamp when the accountConnector was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AccountConnector.Builder

mergeFrom(AccountConnector other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeProviderOauthConfig(ProviderOAuthConfig value)

public AccountConnector.Builder mergeProviderOauthConfig(ProviderOAuthConfig value)

Provider OAuth config.

.google.cloud.developerconnect.v1.ProviderOAuthConfig provider_oauth_config = 5;

Parameter
Name Description
value ProviderOAuthConfig
Returns
Type Description
AccountConnector.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AccountConnector.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AccountConnector.Builder
Overrides

mergeUpdateTime(Timestamp value)

public AccountConnector.Builder mergeUpdateTime(Timestamp value)

Output only. The timestamp when the accountConnector was updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AccountConnector.Builder

putAllAnnotations(Map<String,String> values)

public AccountConnector.Builder putAllAnnotations(Map<String,String> values)

Optional. Allows users to store small amounts of arbitrary data.

map<string, string> annotations = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
AccountConnector.Builder

putAllLabels(Map<String,String> values)

public AccountConnector.Builder putAllLabels(Map<String,String> values)

Optional. Labels as key value pairs

map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
AccountConnector.Builder

putAnnotations(String key, String value)

public AccountConnector.Builder putAnnotations(String key, String value)

Optional. Allows users to store small amounts of arbitrary data.

map<string, string> annotations = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
AccountConnector.Builder

putLabels(String key, String value)

public AccountConnector.Builder putLabels(String key, String value)

Optional. Labels as key value pairs

map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
AccountConnector.Builder

removeAnnotations(String key)

public AccountConnector.Builder removeAnnotations(String key)

Optional. Allows users to store small amounts of arbitrary data.

map<string, string> annotations = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
AccountConnector.Builder

removeLabels(String key)

public AccountConnector.Builder removeLabels(String key)

Optional. Labels as key value pairs

map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
AccountConnector.Builder

setCreateTime(Timestamp value)

public AccountConnector.Builder setCreateTime(Timestamp value)

Output only. The timestamp when the accountConnector was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AccountConnector.Builder

setCreateTime(Timestamp.Builder builderForValue)

public AccountConnector.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the accountConnector was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AccountConnector.Builder

setEtag(String value)

public AccountConnector.Builder setEtag(String value)

Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The etag to set.

Returns
Type Description
AccountConnector.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public AccountConnector.Builder setEtagBytes(ByteString value)

Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
AccountConnector.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AccountConnector.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AccountConnector.Builder
Overrides

setName(String value)

public AccountConnector.Builder setName(String value)

Identifier. The resource name of the accountConnector, in the format projects/{project}/locations/{location}/accountConnectors/{account_connector_id}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AccountConnector.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AccountConnector.Builder setNameBytes(ByteString value)

Identifier. The resource name of the accountConnector, in the format projects/{project}/locations/{location}/accountConnectors/{account_connector_id}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AccountConnector.Builder

This builder for chaining.

setOauthStartUri(String value)

public AccountConnector.Builder setOauthStartUri(String value)

Output only. Start OAuth flow by clicking on this URL.

string oauth_start_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The oauthStartUri to set.

Returns
Type Description
AccountConnector.Builder

This builder for chaining.

setOauthStartUriBytes(ByteString value)

public AccountConnector.Builder setOauthStartUriBytes(ByteString value)

Output only. Start OAuth flow by clicking on this URL.

string oauth_start_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for oauthStartUri to set.

Returns
Type Description
AccountConnector.Builder

This builder for chaining.

setProviderOauthConfig(ProviderOAuthConfig value)

public AccountConnector.Builder setProviderOauthConfig(ProviderOAuthConfig value)

Provider OAuth config.

.google.cloud.developerconnect.v1.ProviderOAuthConfig provider_oauth_config = 5;

Parameter
Name Description
value ProviderOAuthConfig
Returns
Type Description
AccountConnector.Builder

setProviderOauthConfig(ProviderOAuthConfig.Builder builderForValue)

public AccountConnector.Builder setProviderOauthConfig(ProviderOAuthConfig.Builder builderForValue)

Provider OAuth config.

.google.cloud.developerconnect.v1.ProviderOAuthConfig provider_oauth_config = 5;

Parameter
Name Description
builderForValue ProviderOAuthConfig.Builder
Returns
Type Description
AccountConnector.Builder

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

public AccountConnector.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AccountConnector.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AccountConnector.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AccountConnector.Builder
Overrides

setUpdateTime(Timestamp value)

public AccountConnector.Builder setUpdateTime(Timestamp value)

Output only. The timestamp when the accountConnector was updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AccountConnector.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public AccountConnector.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the accountConnector was updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AccountConnector.Builder