public static final class OauthClientCredentials.Builder extends GeneratedMessage.Builder<OauthClientCredentials.Builder> implements OauthClientCredentialsOrBuilderOAuth Client Credentials.
Protobuf type google.cloud.datastream.v1.OauthClientCredentials
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > OauthClientCredentials.BuilderImplements
OauthClientCredentialsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public OauthClientCredentials build()| Returns | |
|---|---|
| Type | Description |
OauthClientCredentials |
|
buildPartial()
public OauthClientCredentials buildPartial()| Returns | |
|---|---|
| Type | Description |
OauthClientCredentials |
|
clear()
public OauthClientCredentials.Builder clear()| Returns | |
|---|---|
| Type | Description |
OauthClientCredentials.Builder |
|
clearClientId()
public OauthClientCredentials.Builder clearClientId()Required. Client ID for OAuth Client Credentials.
string client_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
OauthClientCredentials.Builder |
This builder for chaining. |
clearClientSecret()
public OauthClientCredentials.Builder clearClientSecret()Required. Client secret for OAuth Client Credentials.
.google.cloud.datastream.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
OauthClientCredentials.Builder |
|
getClientId()
public String getClientId()Required. Client ID for OAuth 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 OAuth Client Credentials.
string client_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for clientId. |
getClientSecret()
public Secret getClientSecret()Required. Client secret for OAuth Client Credentials.
.google.cloud.datastream.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Secret |
The clientSecret. |
getClientSecretBuilder()
public Secret.Builder getClientSecretBuilder()Required. Client secret for OAuth Client Credentials.
.google.cloud.datastream.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Secret.Builder |
|
getClientSecretOrBuilder()
public SecretOrBuilder getClientSecretOrBuilder()Required. Client secret for OAuth Client Credentials.
.google.cloud.datastream.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
SecretOrBuilder |
|
getDefaultInstanceForType()
public OauthClientCredentials getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
OauthClientCredentials |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
hasClientSecret()
public boolean hasClientSecret()Required. Client secret for OAuth Client Credentials.
.google.cloud.datastream.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the clientSecret field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeClientSecret(Secret value)
public OauthClientCredentials.Builder mergeClientSecret(Secret value)Required. Client secret for OAuth Client Credentials.
.google.cloud.datastream.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Secret |
| Returns | |
|---|---|
| Type | Description |
OauthClientCredentials.Builder |
|
mergeFrom(OauthClientCredentials other)
public OauthClientCredentials.Builder mergeFrom(OauthClientCredentials other)| Parameter | |
|---|---|
| Name | Description |
other |
OauthClientCredentials |
| Returns | |
|---|---|
| Type | Description |
OauthClientCredentials.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public OauthClientCredentials.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OauthClientCredentials.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public OauthClientCredentials.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
OauthClientCredentials.Builder |
|
setClientId(String value)
public OauthClientCredentials.Builder setClientId(String value)Required. Client ID for OAuth Client Credentials.
string client_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe clientId to set. |
| Returns | |
|---|---|
| Type | Description |
OauthClientCredentials.Builder |
This builder for chaining. |
setClientIdBytes(ByteString value)
public OauthClientCredentials.Builder setClientIdBytes(ByteString value)Required. Client ID for OAuth Client Credentials.
string client_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for clientId to set. |
| Returns | |
|---|---|
| Type | Description |
OauthClientCredentials.Builder |
This builder for chaining. |
setClientSecret(Secret value)
public OauthClientCredentials.Builder setClientSecret(Secret value)Required. Client secret for OAuth Client Credentials.
.google.cloud.datastream.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Secret |
| Returns | |
|---|---|
| Type | Description |
OauthClientCredentials.Builder |
|
setClientSecret(Secret.Builder builderForValue)
public OauthClientCredentials.Builder setClientSecret(Secret.Builder builderForValue)Required. Client secret for OAuth Client Credentials.
.google.cloud.datastream.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Secret.Builder |
| Returns | |
|---|---|
| Type | Description |
OauthClientCredentials.Builder |
|