Class PushCredentialsRequest (0.81.0)

public final class PushCredentialsRequest extends GeneratedMessage implements PushCredentialsRequestOrBuilder

Request message for PushCredentials.

Protobuf type google.cloud.workstations.v1beta.PushCredentialsRequest

Static Fields

APPLICATION_DEFAULT_CREDENTIALS_FIELD_NUMBER

public static final int APPLICATION_DEFAULT_CREDENTIALS_FIELD_NUMBER
Field Value
Type Description
int

WORKSTATION_FIELD_NUMBER

public static final int WORKSTATION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PushCredentialsRequest getDefaultInstance()
Returns
Type Description
PushCredentialsRequest

getDescriptor()

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

newBuilder()

public static PushCredentialsRequest.Builder newBuilder()
Returns
Type Description
PushCredentialsRequest.Builder

newBuilder(PushCredentialsRequest prototype)

public static PushCredentialsRequest.Builder newBuilder(PushCredentialsRequest prototype)
Parameter
Name Description
prototype PushCredentialsRequest
Returns
Type Description
PushCredentialsRequest.Builder

parseDelimitedFrom(InputStream input)

public static PushCredentialsRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PushCredentialsRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PushCredentialsRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PushCredentialsRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PushCredentialsRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PushCredentialsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PushCredentialsRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PushCredentialsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PushCredentialsRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PushCredentialsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PushCredentialsRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PushCredentialsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PushCredentialsRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PushCredentialsRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PushCredentialsRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PushCredentialsRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PushCredentialsRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PushCredentialsRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PushCredentialsRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PushCredentialsRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PushCredentialsRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PushCredentialsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PushCredentialsRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PushCredentialsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PushCredentialsRequest> parser()
Returns
Type Description
Parser<PushCredentialsRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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.

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

getParserForType()

public Parser<PushCredentialsRequest> getParserForType()
Returns
Type Description
Parser<PushCredentialsRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PushCredentialsRequest.Builder newBuilderForType()
Returns
Type Description
PushCredentialsRequest.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected PushCredentialsRequest.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PushCredentialsRequest.Builder
Overrides

toBuilder()

public PushCredentialsRequest.Builder toBuilder()
Returns
Type Description
PushCredentialsRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException