Class AuthorizeEnvironmentRequest.Builder (2.6.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AuthorizeEnvironmentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AuthorizeEnvironmentRequest.Builder
Overrides

build()

public AuthorizeEnvironmentRequest build()
Returns
TypeDescription
AuthorizeEnvironmentRequest

buildPartial()

public AuthorizeEnvironmentRequest buildPartial()
Returns
TypeDescription
AuthorizeEnvironmentRequest

clear()

public AuthorizeEnvironmentRequest.Builder clear()
Returns
TypeDescription
AuthorizeEnvironmentRequest.Builder
Overrides

clearAccessToken()

public AuthorizeEnvironmentRequest.Builder clearAccessToken()

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

string access_token = 2;

Returns
TypeDescription
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
TypeDescription
AuthorizeEnvironmentRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public AuthorizeEnvironmentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AuthorizeEnvironmentRequest.Builder
Overrides

clearIdToken()

public AuthorizeEnvironmentRequest.Builder clearIdToken()

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

string id_token = 4;

Returns
TypeDescription
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
TypeDescription
AuthorizeEnvironmentRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AuthorizeEnvironmentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AuthorizeEnvironmentRequest.Builder
Overrides

clone()

public AuthorizeEnvironmentRequest.Builder clone()
Returns
TypeDescription
AuthorizeEnvironmentRequest.Builder
Overrides

getAccessToken()

public String getAccessToken()

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

string access_token = 2;

Returns
TypeDescription
String

The accessToken.

getAccessTokenBytes()

public ByteString getAccessTokenBytes()

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

string access_token = 2;

Returns
TypeDescription
ByteString

The bytes for accessToken.

getDefaultInstanceForType()

public AuthorizeEnvironmentRequest getDefaultInstanceForType()
Returns
TypeDescription
AuthorizeEnvironmentRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getIdToken()

public String getIdToken()

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

string id_token = 4;

Returns
TypeDescription
String

The idToken.

getIdTokenBytes()

public ByteString getIdTokenBytes()

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

string id_token = 4;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the expireTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
AuthorizeEnvironmentRequest.Builder

mergeFrom(AuthorizeEnvironmentRequest other)

public AuthorizeEnvironmentRequest.Builder mergeFrom(AuthorizeEnvironmentRequest other)
Parameter
NameDescription
otherAuthorizeEnvironmentRequest
Returns
TypeDescription
AuthorizeEnvironmentRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AuthorizeEnvironmentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuthorizeEnvironmentRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AuthorizeEnvironmentRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AuthorizeEnvironmentRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AuthorizeEnvironmentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The accessToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for accessToken to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
AuthorizeEnvironmentRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AuthorizeEnvironmentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The idToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for idToken to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AuthorizeEnvironmentRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AuthorizeEnvironmentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AuthorizeEnvironmentRequest.Builder
Overrides