Class AuthorizeEnvironmentRequest.Builder (2.42.0)

public static final class AuthorizeEnvironmentRequest.Builder extends GeneratedMessageV3.Builder<AuthorizeEnvironmentRequest.Builder> implements AuthorizeEnvironmentRequestOrBuilder

Request message for AuthorizeEnvironment.

Protobuf type google.cloud.shell.v1.AuthorizeEnvironmentRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AuthorizeEnvironmentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AuthorizeEnvironmentRequest.Builder
Overrides

build()

public AuthorizeEnvironmentRequest build()
Returns
Type Description
AuthorizeEnvironmentRequest

buildPartial()

public AuthorizeEnvironmentRequest buildPartial()
Returns
Type Description
AuthorizeEnvironmentRequest

clear()

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

clearAccessToken()

public AuthorizeEnvironmentRequest.Builder clearAccessToken()

The OAuth access token that should be sent to the environment.

string access_token = 2;

Returns
Type Description
AuthorizeEnvironmentRequest.Builder

This builder for chaining.

clearExpireTime()

public AuthorizeEnvironmentRequest.Builder clearExpireTime()

The time when the credentials expire. If not set, defaults to one hour from when the server received the request.

.google.protobuf.Timestamp expire_time = 3;

Returns
Type Description
AuthorizeEnvironmentRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public AuthorizeEnvironmentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AuthorizeEnvironmentRequest.Builder
Overrides

clearIdToken()

public AuthorizeEnvironmentRequest.Builder clearIdToken()

The OAuth ID token that should be sent to the environment.

string id_token = 4;

Returns
Type Description
AuthorizeEnvironmentRequest.Builder

This builder for chaining.

clearName()

public AuthorizeEnvironmentRequest.Builder clearName()

Name of the resource that should receive the credentials, for example users/me/environments/default or users/someone@example.com/environments/default.

string name = 1;

Returns
Type Description
AuthorizeEnvironmentRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AuthorizeEnvironmentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AuthorizeEnvironmentRequest.Builder
Overrides

clone()

public AuthorizeEnvironmentRequest.Builder clone()
Returns
Type Description
AuthorizeEnvironmentRequest.Builder
Overrides

getAccessToken()

public String getAccessToken()

The OAuth access token that should be sent to the environment.

string access_token = 2;

Returns
Type Description
String

The accessToken.

getAccessTokenBytes()

public ByteString getAccessTokenBytes()

The OAuth access token that should be sent to the environment.

string access_token = 2;

Returns
Type Description
ByteString

The bytes for accessToken.

getDefaultInstanceForType()

public AuthorizeEnvironmentRequest getDefaultInstanceForType()
Returns
Type Description
AuthorizeEnvironmentRequest

getDescriptorForType()

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

getExpireTime()

public Timestamp getExpireTime()

The time when the credentials expire. If not set, defaults to one hour from when the server received the request.

.google.protobuf.Timestamp expire_time = 3;

Returns
Type Description
Timestamp

The expireTime.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

The time when the credentials expire. If not set, defaults to one hour from when the server received the request.

.google.protobuf.Timestamp expire_time = 3;

Returns
Type Description
Builder

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

The time when the credentials expire. If not set, defaults to one hour from when the server received the request.

.google.protobuf.Timestamp expire_time = 3;

Returns
Type Description
TimestampOrBuilder

getIdToken()

public String getIdToken()

The OAuth ID token that should be sent to the environment.

string id_token = 4;

Returns
Type Description
String

The idToken.

getIdTokenBytes()

public ByteString getIdTokenBytes()

The OAuth ID token that should be sent to the environment.

string id_token = 4;

Returns
Type Description
ByteString

The bytes for idToken.

getName()

public String getName()

Name of the resource that should receive the credentials, for example users/me/environments/default or users/someone@example.com/environments/default.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the resource that should receive the credentials, for example users/me/environments/default or users/someone@example.com/environments/default.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

hasExpireTime()

public boolean hasExpireTime()

The time when the credentials expire. If not set, defaults to one hour from when the server received the request.

.google.protobuf.Timestamp expire_time = 3;

Returns
Type Description
boolean

Whether the expireTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExpireTime(Timestamp value)

public AuthorizeEnvironmentRequest.Builder mergeExpireTime(Timestamp value)

The time when the credentials expire. If not set, defaults to one hour from when the server received the request.

.google.protobuf.Timestamp expire_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
AuthorizeEnvironmentRequest.Builder

mergeFrom(AuthorizeEnvironmentRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AuthorizeEnvironmentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AuthorizeEnvironmentRequest.Builder
Overrides

setAccessToken(String value)

public AuthorizeEnvironmentRequest.Builder setAccessToken(String value)

The OAuth access token that should be sent to the environment.

string access_token = 2;

Parameter
Name Description
value String

The accessToken to set.

Returns
Type Description
AuthorizeEnvironmentRequest.Builder

This builder for chaining.

setAccessTokenBytes(ByteString value)

public AuthorizeEnvironmentRequest.Builder setAccessTokenBytes(ByteString value)

The OAuth access token that should be sent to the environment.

string access_token = 2;

Parameter
Name Description
value ByteString

The bytes for accessToken to set.

Returns
Type Description
AuthorizeEnvironmentRequest.Builder

This builder for chaining.

setExpireTime(Timestamp value)

public AuthorizeEnvironmentRequest.Builder setExpireTime(Timestamp value)

The time when the credentials expire. If not set, defaults to one hour from when the server received the request.

.google.protobuf.Timestamp expire_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
AuthorizeEnvironmentRequest.Builder

setExpireTime(Timestamp.Builder builderForValue)

public AuthorizeEnvironmentRequest.Builder setExpireTime(Timestamp.Builder builderForValue)

The time when the credentials expire. If not set, defaults to one hour from when the server received the request.

.google.protobuf.Timestamp expire_time = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AuthorizeEnvironmentRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AuthorizeEnvironmentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AuthorizeEnvironmentRequest.Builder
Overrides

setIdToken(String value)

public AuthorizeEnvironmentRequest.Builder setIdToken(String value)

The OAuth ID token that should be sent to the environment.

string id_token = 4;

Parameter
Name Description
value String

The idToken to set.

Returns
Type Description
AuthorizeEnvironmentRequest.Builder

This builder for chaining.

setIdTokenBytes(ByteString value)

public AuthorizeEnvironmentRequest.Builder setIdTokenBytes(ByteString value)

The OAuth ID token that should be sent to the environment.

string id_token = 4;

Parameter
Name Description
value ByteString

The bytes for idToken to set.

Returns
Type Description
AuthorizeEnvironmentRequest.Builder

This builder for chaining.

setName(String value)

public AuthorizeEnvironmentRequest.Builder setName(String value)

Name of the resource that should receive the credentials, for example users/me/environments/default or users/someone@example.com/environments/default.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AuthorizeEnvironmentRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AuthorizeEnvironmentRequest.Builder setNameBytes(ByteString value)

Name of the resource that should receive the credentials, for example users/me/environments/default or users/someone@example.com/environments/default.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AuthorizeEnvironmentRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AuthorizeEnvironmentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AuthorizeEnvironmentRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AuthorizeEnvironmentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AuthorizeEnvironmentRequest.Builder
Overrides