Class PushCredentialsRequest.Builder (0.81.0)

public static final class PushCredentialsRequest.Builder extends GeneratedMessage.Builder<PushCredentialsRequest.Builder> implements PushCredentialsRequestOrBuilder

Request message for PushCredentials.

Protobuf type google.cloud.workstations.v1beta.PushCredentialsRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public PushCredentialsRequest build()
Returns
Type Description
PushCredentialsRequest

buildPartial()

public PushCredentialsRequest buildPartial()
Returns
Type Description
PushCredentialsRequest

clear()

public PushCredentialsRequest.Builder clear()
Returns
Type Description
PushCredentialsRequest.Builder
Overrides

clearApplicationDefaultCredentials()

public PushCredentialsRequest.Builder clearApplicationDefaultCredentials()

Optional. Credentials used by Cloud Client Libraries, Google API Client Libraries, and other tooling within the user conainer: https://cloud.google.com/docs/authentication/application-default-credentials

.google.cloud.workstations.v1beta.PushCredentialsRequest.OAuthToken application_default_credentials = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PushCredentialsRequest.Builder

clearWorkstation()

public PushCredentialsRequest.Builder clearWorkstation()

Required. Name of the workstation for which the credentials should be pushed.

string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
PushCredentialsRequest.Builder

This builder for chaining.

getApplicationDefaultCredentials()

public PushCredentialsRequest.OAuthToken getApplicationDefaultCredentials()

Optional. Credentials used by Cloud Client Libraries, Google API Client Libraries, and other tooling within the user conainer: https://cloud.google.com/docs/authentication/application-default-credentials

.google.cloud.workstations.v1beta.PushCredentialsRequest.OAuthToken application_default_credentials = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PushCredentialsRequest.OAuthToken

The applicationDefaultCredentials.

getApplicationDefaultCredentialsBuilder()

public PushCredentialsRequest.OAuthToken.Builder getApplicationDefaultCredentialsBuilder()

Optional. Credentials used by Cloud Client Libraries, Google API Client Libraries, and other tooling within the user conainer: https://cloud.google.com/docs/authentication/application-default-credentials

.google.cloud.workstations.v1beta.PushCredentialsRequest.OAuthToken application_default_credentials = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PushCredentialsRequest.OAuthToken.Builder

getApplicationDefaultCredentialsOrBuilder()

public PushCredentialsRequest.OAuthTokenOrBuilder getApplicationDefaultCredentialsOrBuilder()

Optional. Credentials used by Cloud Client Libraries, Google API Client Libraries, and other tooling within the user conainer: https://cloud.google.com/docs/authentication/application-default-credentials

.google.cloud.workstations.v1beta.PushCredentialsRequest.OAuthToken application_default_credentials = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PushCredentialsRequest.OAuthTokenOrBuilder

getDefaultInstanceForType()

public PushCredentialsRequest getDefaultInstanceForType()
Returns
Type Description
PushCredentialsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getWorkstation()

public String getWorkstation()

Required. Name of the workstation for which the credentials should be pushed.

string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The workstation.

getWorkstationBytes()

public ByteString getWorkstationBytes()

Required. Name of the workstation for which the credentials should be pushed.

string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for workstation.

hasApplicationDefaultCredentials()

public boolean hasApplicationDefaultCredentials()

Optional. Credentials used by Cloud Client Libraries, Google API Client Libraries, and other tooling within the user conainer: https://cloud.google.com/docs/authentication/application-default-credentials

.google.cloud.workstations.v1beta.PushCredentialsRequest.OAuthToken application_default_credentials = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the applicationDefaultCredentials field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeApplicationDefaultCredentials(PushCredentialsRequest.OAuthToken value)

public PushCredentialsRequest.Builder mergeApplicationDefaultCredentials(PushCredentialsRequest.OAuthToken value)

Optional. Credentials used by Cloud Client Libraries, Google API Client Libraries, and other tooling within the user conainer: https://cloud.google.com/docs/authentication/application-default-credentials

.google.cloud.workstations.v1beta.PushCredentialsRequest.OAuthToken application_default_credentials = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value PushCredentialsRequest.OAuthToken
Returns
Type Description
PushCredentialsRequest.Builder

mergeFrom(PushCredentialsRequest other)

public PushCredentialsRequest.Builder mergeFrom(PushCredentialsRequest other)
Parameter
Name Description
other PushCredentialsRequest
Returns
Type Description
PushCredentialsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PushCredentialsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PushCredentialsRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PushCredentialsRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PushCredentialsRequest.Builder
Overrides

setApplicationDefaultCredentials(PushCredentialsRequest.OAuthToken value)

public PushCredentialsRequest.Builder setApplicationDefaultCredentials(PushCredentialsRequest.OAuthToken value)

Optional. Credentials used by Cloud Client Libraries, Google API Client Libraries, and other tooling within the user conainer: https://cloud.google.com/docs/authentication/application-default-credentials

.google.cloud.workstations.v1beta.PushCredentialsRequest.OAuthToken application_default_credentials = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value PushCredentialsRequest.OAuthToken
Returns
Type Description
PushCredentialsRequest.Builder

setApplicationDefaultCredentials(PushCredentialsRequest.OAuthToken.Builder builderForValue)

public PushCredentialsRequest.Builder setApplicationDefaultCredentials(PushCredentialsRequest.OAuthToken.Builder builderForValue)

Optional. Credentials used by Cloud Client Libraries, Google API Client Libraries, and other tooling within the user conainer: https://cloud.google.com/docs/authentication/application-default-credentials

.google.cloud.workstations.v1beta.PushCredentialsRequest.OAuthToken application_default_credentials = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue PushCredentialsRequest.OAuthToken.Builder
Returns
Type Description
PushCredentialsRequest.Builder

setWorkstation(String value)

public PushCredentialsRequest.Builder setWorkstation(String value)

Required. Name of the workstation for which the credentials should be pushed.

string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The workstation to set.

Returns
Type Description
PushCredentialsRequest.Builder

This builder for chaining.

setWorkstationBytes(ByteString value)

public PushCredentialsRequest.Builder setWorkstationBytes(ByteString value)

Required. Name of the workstation for which the credentials should be pushed.

string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for workstation to set.

Returns
Type Description
PushCredentialsRequest.Builder

This builder for chaining.