Package com.google.cloud.shell.v1
Class AuthorizeEnvironmentRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AuthorizeEnvironmentRequest.Builder>
com.google.cloud.shell.v1.AuthorizeEnvironmentRequest.Builder
- All Implemented Interfaces:
AuthorizeEnvironmentRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AuthorizeEnvironmentRequest
public static final class AuthorizeEnvironmentRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AuthorizeEnvironmentRequest.Builder>
implements AuthorizeEnvironmentRequestOrBuilder
Request message for [AuthorizeEnvironment][google.cloud.shell.v1.CloudShellService.AuthorizeEnvironment].Protobuf type
google.cloud.shell.v1.AuthorizeEnvironmentRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The OAuth access token that should be sent to the environment.The time when the credentials expire.The OAuth ID token that should be sent to the environment.Name of the resource that should receive the credentials, for example `users/me/environments/default` or `users/someone@example.com/environments/default`.The OAuth access token that should be sent to the environment.com.google.protobuf.ByteStringThe OAuth access token that should be sent to the environment.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampThe time when the credentials expire.com.google.protobuf.Timestamp.BuilderThe time when the credentials expire.com.google.protobuf.TimestampOrBuilderThe time when the credentials expire.The OAuth ID token that should be sent to the environment.com.google.protobuf.ByteStringThe OAuth ID token that should be sent to the environment.getName()Name of the resource that should receive the credentials, for example `users/me/environments/default` or `users/someone@example.com/environments/default`.com.google.protobuf.ByteStringName of the resource that should receive the credentials, for example `users/me/environments/default` or `users/someone@example.com/environments/default`.booleanThe time when the credentials expire.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeExpireTime(com.google.protobuf.Timestamp value) The time when the credentials expire.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAccessToken(String value) The OAuth access token that should be sent to the environment.setAccessTokenBytes(com.google.protobuf.ByteString value) The OAuth access token that should be sent to the environment.setExpireTime(com.google.protobuf.Timestamp value) The time when the credentials expire.setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) The time when the credentials expire.setIdToken(String value) The OAuth ID token that should be sent to the environment.setIdTokenBytes(com.google.protobuf.ByteString value) The OAuth ID token that should be sent to the environment.Name of the resource that should receive the credentials, for example `users/me/environments/default` or `users/someone@example.com/environments/default`.setNameBytes(com.google.protobuf.ByteString value) Name of the resource that should receive the credentials, for example `users/me/environments/default` or `users/someone@example.com/environments/default`.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AuthorizeEnvironmentRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AuthorizeEnvironmentRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AuthorizeEnvironmentRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AuthorizeEnvironmentRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AuthorizeEnvironmentRequest.Builder>
-
mergeFrom
public AuthorizeEnvironmentRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AuthorizeEnvironmentRequest.Builder>- Throws:
IOException
-
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;- Specified by:
getNamein interfaceAuthorizeEnvironmentRequestOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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;- Specified by:
getNameBytesin interfaceAuthorizeEnvironmentRequestOrBuilder- Returns:
- The bytes for name.
-
setName
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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getAccessToken
The OAuth access token that should be sent to the environment.
string access_token = 2;- Specified by:
getAccessTokenin interfaceAuthorizeEnvironmentRequestOrBuilder- Returns:
- The accessToken.
-
getAccessTokenBytes
public com.google.protobuf.ByteString getAccessTokenBytes()The OAuth access token that should be sent to the environment.
string access_token = 2;- Specified by:
getAccessTokenBytesin interfaceAuthorizeEnvironmentRequestOrBuilder- Returns:
- The bytes for accessToken.
-
setAccessToken
The OAuth access token that should be sent to the environment.
string access_token = 2;- Parameters:
value- The accessToken to set.- Returns:
- This builder for chaining.
-
clearAccessToken
The OAuth access token that should be sent to the environment.
string access_token = 2;- Returns:
- This builder for chaining.
-
setAccessTokenBytes
public AuthorizeEnvironmentRequest.Builder setAccessTokenBytes(com.google.protobuf.ByteString value) The OAuth access token that should be sent to the environment.
string access_token = 2;- Parameters:
value- The bytes for accessToken to set.- Returns:
- This builder for chaining.
-
getIdToken
The OAuth ID token that should be sent to the environment.
string id_token = 4;- Specified by:
getIdTokenin interfaceAuthorizeEnvironmentRequestOrBuilder- Returns:
- The idToken.
-
getIdTokenBytes
public com.google.protobuf.ByteString getIdTokenBytes()The OAuth ID token that should be sent to the environment.
string id_token = 4;- Specified by:
getIdTokenBytesin interfaceAuthorizeEnvironmentRequestOrBuilder- Returns:
- The bytes for idToken.
-
setIdToken
The OAuth ID token that should be sent to the environment.
string id_token = 4;- Parameters:
value- The idToken to set.- Returns:
- This builder for chaining.
-
clearIdToken
The OAuth ID token that should be sent to the environment.
string id_token = 4;- Returns:
- This builder for chaining.
-
setIdTokenBytes
The OAuth ID token that should be sent to the environment.
string id_token = 4;- Parameters:
value- The bytes for idToken to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasExpireTimein interfaceAuthorizeEnvironmentRequestOrBuilder- Returns:
- Whether the expireTime field is set.
-
getExpireTime
public com.google.protobuf.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;- Specified by:
getExpireTimein interfaceAuthorizeEnvironmentRequestOrBuilder- Returns:
- The expireTime.
-
setExpireTime
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; -
setExpireTime
public AuthorizeEnvironmentRequest.Builder setExpireTime(com.google.protobuf.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; -
mergeExpireTime
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; -
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; -
getExpireTimeBuilder
public com.google.protobuf.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; -
getExpireTimeOrBuilder
public com.google.protobuf.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;- Specified by:
getExpireTimeOrBuilderin interfaceAuthorizeEnvironmentRequestOrBuilder
-