public static final class SalesforceProfile.Oauth2ClientCredentials.Builder extends GeneratedMessageV3.Builder<SalesforceProfile.Oauth2ClientCredentials.Builder> implements SalesforceProfile.Oauth2ClientCredentialsOrBuilder
OAuth2 Client Credentials.
Protobuf type google.cloud.datastream.v1.SalesforceProfile.Oauth2ClientCredentials
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SalesforceProfile.Oauth2ClientCredentials.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SalesforceProfile.Oauth2ClientCredentials.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
SalesforceProfile.Oauth2ClientCredentials.Builder |
build()
public SalesforceProfile.Oauth2ClientCredentials build()
Returns | |
---|---|
Type | Description |
SalesforceProfile.Oauth2ClientCredentials |
buildPartial()
public SalesforceProfile.Oauth2ClientCredentials buildPartial()
Returns | |
---|---|
Type | Description |
SalesforceProfile.Oauth2ClientCredentials |
clear()
public SalesforceProfile.Oauth2ClientCredentials.Builder clear()
Returns | |
---|---|
Type | Description |
SalesforceProfile.Oauth2ClientCredentials.Builder |
clearClientId()
public SalesforceProfile.Oauth2ClientCredentials.Builder clearClientId()
Required. Client ID for Salesforce OAuth2 Client Credentials.
string client_id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
SalesforceProfile.Oauth2ClientCredentials.Builder |
This builder for chaining. |
clearClientSecret()
public SalesforceProfile.Oauth2ClientCredentials.Builder clearClientSecret()
Optional. Client secret for Salesforce OAuth2 Client Credentials.
Mutually exclusive with the secret_manager_stored_client_secret
field.
string client_secret = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
SalesforceProfile.Oauth2ClientCredentials.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public SalesforceProfile.Oauth2ClientCredentials.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
SalesforceProfile.Oauth2ClientCredentials.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public SalesforceProfile.Oauth2ClientCredentials.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
SalesforceProfile.Oauth2ClientCredentials.Builder |
clearSecretManagerStoredClientSecret()
public SalesforceProfile.Oauth2ClientCredentials.Builder clearSecretManagerStoredClientSecret()
Optional. A reference to a Secret Manager resource name storing the
Salesforce OAuth2 client_secret. Mutually exclusive with the
client_secret
field.
string secret_manager_stored_client_secret = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
SalesforceProfile.Oauth2ClientCredentials.Builder |
This builder for chaining. |
clone()
public SalesforceProfile.Oauth2ClientCredentials.Builder clone()
Returns | |
---|---|
Type | Description |
SalesforceProfile.Oauth2ClientCredentials.Builder |
getClientId()
public String getClientId()
Required. Client ID for Salesforce OAuth2 Client Credentials.
string client_id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The clientId. |
getClientIdBytes()
public ByteString getClientIdBytes()
Required. Client ID for Salesforce OAuth2 Client Credentials.
string client_id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for clientId. |
getClientSecret()
public String getClientSecret()
Optional. Client secret for Salesforce OAuth2 Client Credentials.
Mutually exclusive with the secret_manager_stored_client_secret
field.
string client_secret = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The clientSecret. |
getClientSecretBytes()
public ByteString getClientSecretBytes()
Optional. Client secret for Salesforce OAuth2 Client Credentials.
Mutually exclusive with the secret_manager_stored_client_secret
field.
string client_secret = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for clientSecret. |
getDefaultInstanceForType()
public SalesforceProfile.Oauth2ClientCredentials getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
SalesforceProfile.Oauth2ClientCredentials |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getSecretManagerStoredClientSecret()
public String getSecretManagerStoredClientSecret()
Optional. A reference to a Secret Manager resource name storing the
Salesforce OAuth2 client_secret. Mutually exclusive with the
client_secret
field.
string secret_manager_stored_client_secret = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The secretManagerStoredClientSecret. |
getSecretManagerStoredClientSecretBytes()
public ByteString getSecretManagerStoredClientSecretBytes()
Optional. A reference to a Secret Manager resource name storing the
Salesforce OAuth2 client_secret. Mutually exclusive with the
client_secret
field.
string secret_manager_stored_client_secret = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for secretManagerStoredClientSecret. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(SalesforceProfile.Oauth2ClientCredentials other)
public SalesforceProfile.Oauth2ClientCredentials.Builder mergeFrom(SalesforceProfile.Oauth2ClientCredentials other)
Parameter | |
---|---|
Name | Description |
other |
SalesforceProfile.Oauth2ClientCredentials |
Returns | |
---|---|
Type | Description |
SalesforceProfile.Oauth2ClientCredentials.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SalesforceProfile.Oauth2ClientCredentials.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
SalesforceProfile.Oauth2ClientCredentials.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public SalesforceProfile.Oauth2ClientCredentials.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
SalesforceProfile.Oauth2ClientCredentials.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SalesforceProfile.Oauth2ClientCredentials.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
SalesforceProfile.Oauth2ClientCredentials.Builder |
setClientId(String value)
public SalesforceProfile.Oauth2ClientCredentials.Builder setClientId(String value)
Required. Client ID for Salesforce OAuth2 Client Credentials.
string client_id = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The clientId to set. |
Returns | |
---|---|
Type | Description |
SalesforceProfile.Oauth2ClientCredentials.Builder |
This builder for chaining. |
setClientIdBytes(ByteString value)
public SalesforceProfile.Oauth2ClientCredentials.Builder setClientIdBytes(ByteString value)
Required. Client ID for Salesforce OAuth2 Client Credentials.
string client_id = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for clientId to set. |
Returns | |
---|---|
Type | Description |
SalesforceProfile.Oauth2ClientCredentials.Builder |
This builder for chaining. |
setClientSecret(String value)
public SalesforceProfile.Oauth2ClientCredentials.Builder setClientSecret(String value)
Optional. Client secret for Salesforce OAuth2 Client Credentials.
Mutually exclusive with the secret_manager_stored_client_secret
field.
string client_secret = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The clientSecret to set. |
Returns | |
---|---|
Type | Description |
SalesforceProfile.Oauth2ClientCredentials.Builder |
This builder for chaining. |
setClientSecretBytes(ByteString value)
public SalesforceProfile.Oauth2ClientCredentials.Builder setClientSecretBytes(ByteString value)
Optional. Client secret for Salesforce OAuth2 Client Credentials.
Mutually exclusive with the secret_manager_stored_client_secret
field.
string client_secret = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for clientSecret to set. |
Returns | |
---|---|
Type | Description |
SalesforceProfile.Oauth2ClientCredentials.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public SalesforceProfile.Oauth2ClientCredentials.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
SalesforceProfile.Oauth2ClientCredentials.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SalesforceProfile.Oauth2ClientCredentials.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
SalesforceProfile.Oauth2ClientCredentials.Builder |
setSecretManagerStoredClientSecret(String value)
public SalesforceProfile.Oauth2ClientCredentials.Builder setSecretManagerStoredClientSecret(String value)
Optional. A reference to a Secret Manager resource name storing the
Salesforce OAuth2 client_secret. Mutually exclusive with the
client_secret
field.
string secret_manager_stored_client_secret = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The secretManagerStoredClientSecret to set. |
Returns | |
---|---|
Type | Description |
SalesforceProfile.Oauth2ClientCredentials.Builder |
This builder for chaining. |
setSecretManagerStoredClientSecretBytes(ByteString value)
public SalesforceProfile.Oauth2ClientCredentials.Builder setSecretManagerStoredClientSecretBytes(ByteString value)
Optional. A reference to a Secret Manager resource name storing the
Salesforce OAuth2 client_secret. Mutually exclusive with the
client_secret
field.
string secret_manager_stored_client_secret = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for secretManagerStoredClientSecret to set. |
Returns | |
---|---|
Type | Description |
SalesforceProfile.Oauth2ClientCredentials.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final SalesforceProfile.Oauth2ClientCredentials.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
SalesforceProfile.Oauth2ClientCredentials.Builder |