public static final class WorkdayAuth.Builder extends GeneratedMessage.Builder<WorkdayAuth.Builder> implements WorkdayAuthOrBuilderAuthentication for Workday.
Protobuf type google.cloud.chronicle.v1.WorkdayAuth
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > WorkdayAuth.BuilderImplements
WorkdayAuthOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public WorkdayAuth build()| Returns | |
|---|---|
| Type | Description |
WorkdayAuth |
|
buildPartial()
public WorkdayAuth buildPartial()| Returns | |
|---|---|
| Type | Description |
WorkdayAuth |
|
clear()
public WorkdayAuth.Builder clear()| Returns | |
|---|---|
| Type | Description |
WorkdayAuth.Builder |
|
clearClientId()
public WorkdayAuth.Builder clearClientId()Client ID.
string client_id = 4;
| Returns | |
|---|---|
| Type | Description |
WorkdayAuth.Builder |
This builder for chaining. |
clearClientSecret()
public WorkdayAuth.Builder clearClientSecret()Client Secret.
string client_secret = 5;
| Returns | |
|---|---|
| Type | Description |
WorkdayAuth.Builder |
This builder for chaining. |
clearRefreshToken()
public WorkdayAuth.Builder clearRefreshToken()Refresh Token.
string refresh_token = 6;
| Returns | |
|---|---|
| Type | Description |
WorkdayAuth.Builder |
This builder for chaining. |
clearSecret()
public WorkdayAuth.Builder clearSecret()The access token used to authenticate against Workday. This field is called "secret" to maintain backwards compatibility. Workday was (only) configured using username (which was unused) and secret (which is used as the access token). Either this field or all of the other OAuth fields below must be specified.
string secret = 2;
| Returns | |
|---|---|
| Type | Description |
WorkdayAuth.Builder |
This builder for chaining. |
clearTokenEndpoint()
public WorkdayAuth.Builder clearTokenEndpoint()Token endpoint to get the OAuth token from.
string token_endpoint = 3;
| Returns | |
|---|---|
| Type | Description |
WorkdayAuth.Builder |
This builder for chaining. |
clearUser()
public WorkdayAuth.Builder clearUser()Username. This is unused: Workday feeds were originally configured using a username and secret authentication method, but only the secret field was used, and it was used to supply the OAuth access token.
string user = 1;
| Returns | |
|---|---|
| Type | Description |
WorkdayAuth.Builder |
This builder for chaining. |
getClientId()
public String getClientId()Client ID.
string client_id = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The clientId. |
getClientIdBytes()
public ByteString getClientIdBytes()Client ID.
string client_id = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for clientId. |
getClientSecret()
public String getClientSecret()Client Secret.
string client_secret = 5;
| Returns | |
|---|---|
| Type | Description |
String |
The clientSecret. |
getClientSecretBytes()
public ByteString getClientSecretBytes()Client Secret.
string client_secret = 5;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for clientSecret. |
getDefaultInstanceForType()
public WorkdayAuth getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
WorkdayAuth |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getRefreshToken()
public String getRefreshToken()Refresh Token.
string refresh_token = 6;
| Returns | |
|---|---|
| Type | Description |
String |
The refreshToken. |
getRefreshTokenBytes()
public ByteString getRefreshTokenBytes()Refresh Token.
string refresh_token = 6;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for refreshToken. |
getSecret()
public String getSecret()The access token used to authenticate against Workday. This field is called "secret" to maintain backwards compatibility. Workday was (only) configured using username (which was unused) and secret (which is used as the access token). Either this field or all of the other OAuth fields below must be specified.
string secret = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The secret. |
getSecretBytes()
public ByteString getSecretBytes()The access token used to authenticate against Workday. This field is called "secret" to maintain backwards compatibility. Workday was (only) configured using username (which was unused) and secret (which is used as the access token). Either this field or all of the other OAuth fields below must be specified.
string secret = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for secret. |
getTokenEndpoint()
public String getTokenEndpoint()Token endpoint to get the OAuth token from.
string token_endpoint = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The tokenEndpoint. |
getTokenEndpointBytes()
public ByteString getTokenEndpointBytes()Token endpoint to get the OAuth token from.
string token_endpoint = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for tokenEndpoint. |
getUser()
public String getUser()Username. This is unused: Workday feeds were originally configured using a username and secret authentication method, but only the secret field was used, and it was used to supply the OAuth access token.
string user = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The user. |
getUserBytes()
public ByteString getUserBytes()Username. This is unused: Workday feeds were originally configured using a username and secret authentication method, but only the secret field was used, and it was used to supply the OAuth access token.
string user = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for user. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(WorkdayAuth other)
public WorkdayAuth.Builder mergeFrom(WorkdayAuth other)| Parameter | |
|---|---|
| Name | Description |
other |
WorkdayAuth |
| Returns | |
|---|---|
| Type | Description |
WorkdayAuth.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public WorkdayAuth.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
WorkdayAuth.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public WorkdayAuth.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
WorkdayAuth.Builder |
|
setClientId(String value)
public WorkdayAuth.Builder setClientId(String value)Client ID.
string client_id = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe clientId to set. |
| Returns | |
|---|---|
| Type | Description |
WorkdayAuth.Builder |
This builder for chaining. |
setClientIdBytes(ByteString value)
public WorkdayAuth.Builder setClientIdBytes(ByteString value)Client ID.
string client_id = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for clientId to set. |
| Returns | |
|---|---|
| Type | Description |
WorkdayAuth.Builder |
This builder for chaining. |
setClientSecret(String value)
public WorkdayAuth.Builder setClientSecret(String value)Client Secret.
string client_secret = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe clientSecret to set. |
| Returns | |
|---|---|
| Type | Description |
WorkdayAuth.Builder |
This builder for chaining. |
setClientSecretBytes(ByteString value)
public WorkdayAuth.Builder setClientSecretBytes(ByteString value)Client Secret.
string client_secret = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for clientSecret to set. |
| Returns | |
|---|---|
| Type | Description |
WorkdayAuth.Builder |
This builder for chaining. |
setRefreshToken(String value)
public WorkdayAuth.Builder setRefreshToken(String value)Refresh Token.
string refresh_token = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe refreshToken to set. |
| Returns | |
|---|---|
| Type | Description |
WorkdayAuth.Builder |
This builder for chaining. |
setRefreshTokenBytes(ByteString value)
public WorkdayAuth.Builder setRefreshTokenBytes(ByteString value)Refresh Token.
string refresh_token = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for refreshToken to set. |
| Returns | |
|---|---|
| Type | Description |
WorkdayAuth.Builder |
This builder for chaining. |
setSecret(String value)
public WorkdayAuth.Builder setSecret(String value)The access token used to authenticate against Workday. This field is called "secret" to maintain backwards compatibility. Workday was (only) configured using username (which was unused) and secret (which is used as the access token). Either this field or all of the other OAuth fields below must be specified.
string secret = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe secret to set. |
| Returns | |
|---|---|
| Type | Description |
WorkdayAuth.Builder |
This builder for chaining. |
setSecretBytes(ByteString value)
public WorkdayAuth.Builder setSecretBytes(ByteString value)The access token used to authenticate against Workday. This field is called "secret" to maintain backwards compatibility. Workday was (only) configured using username (which was unused) and secret (which is used as the access token). Either this field or all of the other OAuth fields below must be specified.
string secret = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for secret to set. |
| Returns | |
|---|---|
| Type | Description |
WorkdayAuth.Builder |
This builder for chaining. |
setTokenEndpoint(String value)
public WorkdayAuth.Builder setTokenEndpoint(String value)Token endpoint to get the OAuth token from.
string token_endpoint = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe tokenEndpoint to set. |
| Returns | |
|---|---|
| Type | Description |
WorkdayAuth.Builder |
This builder for chaining. |
setTokenEndpointBytes(ByteString value)
public WorkdayAuth.Builder setTokenEndpointBytes(ByteString value)Token endpoint to get the OAuth token from.
string token_endpoint = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for tokenEndpoint to set. |
| Returns | |
|---|---|
| Type | Description |
WorkdayAuth.Builder |
This builder for chaining. |
setUser(String value)
public WorkdayAuth.Builder setUser(String value)Username. This is unused: Workday feeds were originally configured using a username and secret authentication method, but only the secret field was used, and it was used to supply the OAuth access token.
string user = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe user to set. |
| Returns | |
|---|---|
| Type | Description |
WorkdayAuth.Builder |
This builder for chaining. |
setUserBytes(ByteString value)
public WorkdayAuth.Builder setUserBytes(ByteString value)Username. This is unused: Workday feeds were originally configured using a username and secret authentication method, but only the secret field was used, and it was used to supply the OAuth access token.
string user = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for user to set. |
| Returns | |
|---|---|
| Type | Description |
WorkdayAuth.Builder |
This builder for chaining. |