public static final class TwoLeggedOAuth.Builder extends GeneratedMessage.Builder<TwoLeggedOAuth.Builder> implements TwoLeggedOAuthOrBuilderMessage describing TwoLeggedOAuth object.
Protobuf type google.cloud.agentidentity.v1.TwoLeggedOAuth
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > TwoLeggedOAuth.BuilderImplements
TwoLeggedOAuthOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public TwoLeggedOAuth build()| Returns | |
|---|---|
| Type | Description |
TwoLeggedOAuth |
|
buildPartial()
public TwoLeggedOAuth buildPartial()| Returns | |
|---|---|
| Type | Description |
TwoLeggedOAuth |
|
clear()
public TwoLeggedOAuth.Builder clear()| Returns | |
|---|---|
| Type | Description |
TwoLeggedOAuth.Builder |
|
clearClientId()
public TwoLeggedOAuth.Builder clearClientId()Optional. The client ID of the OAuth client.
string client_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TwoLeggedOAuth.Builder |
This builder for chaining. |
clearClientSecret()
public TwoLeggedOAuth.Builder clearClientSecret()Optional. Input only. The client secret of the OAuth client.
string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TwoLeggedOAuth.Builder |
This builder for chaining. |
clearTokenUrl()
public TwoLeggedOAuth.Builder clearTokenUrl()Optional. The token endpoint of the OAuth client.
string token_url = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TwoLeggedOAuth.Builder |
This builder for chaining. |
getClientId()
public String getClientId()Optional. The client ID of the OAuth client.
string client_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The clientId. |
getClientIdBytes()
public ByteString getClientIdBytes()Optional. The client ID of the OAuth client.
string client_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for clientId. |
getClientSecret()
public String getClientSecret()Optional. Input only. The client secret of the OAuth client.
string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The clientSecret. |
getClientSecretBytes()
public ByteString getClientSecretBytes()Optional. Input only. The client secret of the OAuth client.
string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for clientSecret. |
getDefaultInstanceForType()
public TwoLeggedOAuth getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
TwoLeggedOAuth |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getTokenUrl()
public String getTokenUrl()Optional. The token endpoint of the OAuth client.
string token_url = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The tokenUrl. |
getTokenUrlBytes()
public ByteString getTokenUrlBytes()Optional. The token endpoint of the OAuth client.
string token_url = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for tokenUrl. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(TwoLeggedOAuth other)
public TwoLeggedOAuth.Builder mergeFrom(TwoLeggedOAuth other)| Parameter | |
|---|---|
| Name | Description |
other |
TwoLeggedOAuth |
| Returns | |
|---|---|
| Type | Description |
TwoLeggedOAuth.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TwoLeggedOAuth.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
TwoLeggedOAuth.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public TwoLeggedOAuth.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
TwoLeggedOAuth.Builder |
|
setClientId(String value)
public TwoLeggedOAuth.Builder setClientId(String value)Optional. The client ID of the OAuth client.
string client_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe clientId to set. |
| Returns | |
|---|---|
| Type | Description |
TwoLeggedOAuth.Builder |
This builder for chaining. |
setClientIdBytes(ByteString value)
public TwoLeggedOAuth.Builder setClientIdBytes(ByteString value)Optional. The client ID of the OAuth client.
string client_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for clientId to set. |
| Returns | |
|---|---|
| Type | Description |
TwoLeggedOAuth.Builder |
This builder for chaining. |
setClientSecret(String value)
public TwoLeggedOAuth.Builder setClientSecret(String value)Optional. Input only. The client secret of the OAuth client.
string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe clientSecret to set. |
| Returns | |
|---|---|
| Type | Description |
TwoLeggedOAuth.Builder |
This builder for chaining. |
setClientSecretBytes(ByteString value)
public TwoLeggedOAuth.Builder setClientSecretBytes(ByteString value)Optional. Input only. The client secret of the OAuth client.
string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for clientSecret to set. |
| Returns | |
|---|---|
| Type | Description |
TwoLeggedOAuth.Builder |
This builder for chaining. |
setTokenUrl(String value)
public TwoLeggedOAuth.Builder setTokenUrl(String value)Optional. The token endpoint of the OAuth client.
string token_url = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe tokenUrl to set. |
| Returns | |
|---|---|
| Type | Description |
TwoLeggedOAuth.Builder |
This builder for chaining. |
setTokenUrlBytes(ByteString value)
public TwoLeggedOAuth.Builder setTokenUrlBytes(ByteString value)Optional. The token endpoint of the OAuth client.
string token_url = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for tokenUrl to set. |
| Returns | |
|---|---|
| Type | Description |
TwoLeggedOAuth.Builder |
This builder for chaining. |