Class AccountConnector.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AccountConnector.Builder>
com.google.cloud.developerconnect.v1.AccountConnector.Builder
- All Implemented Interfaces:
AccountConnectorOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AccountConnector
public static final class AccountConnector.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Optional.Identifier.Output only.Optional.Output only.booleanOptional.booleancontainsLabels(String key) Optional.Deprecated.intOptional.Optional.getAnnotationsOrDefault(String key, String defaultValue) Optional.Optional.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEtag()Optional.com.google.protobuf.ByteStringOptional.Deprecated.intOptional.Optional.getLabelsOrDefault(String key, String defaultValue) Optional.getLabelsOrThrow(String key) Optional.Deprecated.Deprecated.getName()Identifier.com.google.protobuf.ByteStringIdentifier.Output only.com.google.protobuf.ByteStringOutput only.Optional.Optional.Optional.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanOptional.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(AccountConnector other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.putAllAnnotations(Map<String, String> values) Optional.putAllLabels(Map<String, String> values) Optional.putAnnotations(String key, String value) Optional.Optional.removeAnnotations(String key) Optional.removeLabels(String key) Optional.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Optional.setEtagBytes(com.google.protobuf.ByteString value) Optional.Identifier.setNameBytes(com.google.protobuf.ByteString value) Identifier.setOauthStartUri(String value) Output only.setOauthStartUriBytes(com.google.protobuf.ByteString value) Output only.Optional.setProviderOauthConfig(ProviderOAuthConfig.Builder builderForValue) Optional.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<AccountConnector.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<AccountConnector.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AccountConnector.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AccountConnector.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AccountConnector.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AccountConnector.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AccountConnector.Builder>
-
mergeFrom
public AccountConnector.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AccountConnector.Builder>- Throws:
IOException
-
getAccountConnectorConfigCase
- Specified by:
getAccountConnectorConfigCasein interfaceAccountConnectorOrBuilder
-
clearAccountConnectorConfig
-
hasProviderOauthConfig
public boolean hasProviderOauthConfig()Optional. Provider OAuth config.
.google.cloud.developerconnect.v1.ProviderOAuthConfig provider_oauth_config = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasProviderOauthConfigin interfaceAccountConnectorOrBuilder- Returns:
- Whether the providerOauthConfig field is set.
-
getProviderOauthConfig
Optional. Provider OAuth config.
.google.cloud.developerconnect.v1.ProviderOAuthConfig provider_oauth_config = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProviderOauthConfigin interfaceAccountConnectorOrBuilder- Returns:
- The providerOauthConfig.
-
setProviderOauthConfig
Optional. Provider OAuth config.
.google.cloud.developerconnect.v1.ProviderOAuthConfig provider_oauth_config = 5 [(.google.api.field_behavior) = OPTIONAL]; -
setProviderOauthConfig
Optional. Provider OAuth config.
.google.cloud.developerconnect.v1.ProviderOAuthConfig provider_oauth_config = 5 [(.google.api.field_behavior) = OPTIONAL]; -
mergeProviderOauthConfig
Optional. Provider OAuth config.
.google.cloud.developerconnect.v1.ProviderOAuthConfig provider_oauth_config = 5 [(.google.api.field_behavior) = OPTIONAL]; -
clearProviderOauthConfig
Optional. Provider OAuth config.
.google.cloud.developerconnect.v1.ProviderOAuthConfig provider_oauth_config = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getProviderOauthConfigBuilder
Optional. Provider OAuth config.
.google.cloud.developerconnect.v1.ProviderOAuthConfig provider_oauth_config = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getProviderOauthConfigOrBuilder
Optional. Provider OAuth config.
.google.cloud.developerconnect.v1.ProviderOAuthConfig provider_oauth_config = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProviderOauthConfigOrBuilderin interfaceAccountConnectorOrBuilder
-
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];- Specified by:
getNamein interfaceAccountConnectorOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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];- Specified by:
getNameBytesin interfaceAccountConnectorOrBuilder- Returns:
- The bytes for name.
-
setName
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];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
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];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasCreateTimein interfaceAccountConnectorOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The timestamp when the accountConnector was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceAccountConnectorOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. The timestamp when the accountConnector was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
public AccountConnector.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only. The timestamp when the accountConnector was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. The timestamp when the accountConnector was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. The timestamp when the accountConnector was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. The timestamp when the accountConnector was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The timestamp when the accountConnector was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceAccountConnectorOrBuilder
-
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];- Specified by:
hasUpdateTimein interfaceAccountConnectorOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. The timestamp when the accountConnector was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceAccountConnectorOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. The timestamp when the accountConnector was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
public AccountConnector.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only. The timestamp when the accountConnector was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. The timestamp when the accountConnector was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUpdateTime
Output only. The timestamp when the accountConnector was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()Output only. The timestamp when the accountConnector was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The timestamp when the accountConnector was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceAccountConnectorOrBuilder
-
getAnnotationsCount
public int getAnnotationsCount()Description copied from interface:AccountConnectorOrBuilderOptional. Allows users to store small amounts of arbitrary data.
map<string, string> annotations = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAnnotationsCountin interfaceAccountConnectorOrBuilder
-
containsAnnotations
Optional. Allows users to store small amounts of arbitrary data.
map<string, string> annotations = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsAnnotationsin interfaceAccountConnectorOrBuilder
-
getAnnotations
Deprecated.UsegetAnnotationsMap()instead.- Specified by:
getAnnotationsin interfaceAccountConnectorOrBuilder
-
getAnnotationsMap
Optional. Allows users to store small amounts of arbitrary data.
map<string, string> annotations = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAnnotationsMapin interfaceAccountConnectorOrBuilder
-
getAnnotationsOrDefault
Optional. Allows users to store small amounts of arbitrary data.
map<string, string> annotations = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAnnotationsOrDefaultin interfaceAccountConnectorOrBuilder
-
getAnnotationsOrThrow
Optional. Allows users to store small amounts of arbitrary data.
map<string, string> annotations = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAnnotationsOrThrowin interfaceAccountConnectorOrBuilder
-
clearAnnotations
-
removeAnnotations
Optional. Allows users to store small amounts of arbitrary data.
map<string, string> annotations = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getMutableAnnotations
Deprecated.Use alternate mutation accessors instead. -
putAnnotations
Optional. Allows users to store small amounts of arbitrary data.
map<string, string> annotations = 6 [(.google.api.field_behavior) = OPTIONAL]; -
putAllAnnotations
Optional. Allows users to store small amounts of arbitrary data.
map<string, string> annotations = 6 [(.google.api.field_behavior) = OPTIONAL]; -
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];- Specified by:
getEtagin interfaceAccountConnectorOrBuilder- Returns:
- The etag.
-
getEtagBytes
public com.google.protobuf.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];- Specified by:
getEtagBytesin interfaceAccountConnectorOrBuilder- Returns:
- The bytes for etag.
-
setEtag
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];- Parameters:
value- The etag to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setEtagBytes
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];- Parameters:
value- The bytes for etag to set.- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()Description copied from interface:AccountConnectorOrBuilderOptional. Labels as key value pairs
map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsCountin interfaceAccountConnectorOrBuilder
-
containsLabels
Optional. Labels as key value pairs
map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsLabelsin interfaceAccountConnectorOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceAccountConnectorOrBuilder
-
getLabelsMap
Optional. Labels as key value pairs
map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsMapin interfaceAccountConnectorOrBuilder
-
getLabelsOrDefault
Optional. Labels as key value pairs
map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrDefaultin interfaceAccountConnectorOrBuilder
-
getLabelsOrThrow
Optional. Labels as key value pairs
map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrThrowin interfaceAccountConnectorOrBuilder
-
clearLabels
-
removeLabels
Optional. Labels as key value pairs
map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
Optional. Labels as key value pairs
map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; -
putAllLabels
Optional. Labels as key value pairs
map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; -
getOauthStartUri
Output only. Start OAuth flow by clicking on this URL.
string oauth_start_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getOauthStartUriin interfaceAccountConnectorOrBuilder- Returns:
- The oauthStartUri.
-
getOauthStartUriBytes
public com.google.protobuf.ByteString getOauthStartUriBytes()Output only. Start OAuth flow by clicking on this URL.
string oauth_start_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getOauthStartUriBytesin interfaceAccountConnectorOrBuilder- Returns:
- The bytes for oauthStartUri.
-
setOauthStartUri
Output only. Start OAuth flow by clicking on this URL.
string oauth_start_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The oauthStartUri to set.- Returns:
- This builder for chaining.
-
clearOauthStartUri
Output only. Start OAuth flow by clicking on this URL.
string oauth_start_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setOauthStartUriBytes
Output only. Start OAuth flow by clicking on this URL.
string oauth_start_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for oauthStartUri to set.- Returns:
- This builder for chaining.
-