Send feedback
Class GenerateAttachedClusterAgentTokenResponse.Builder (0.84.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public static final class GenerateAttachedClusterAgentTokenResponse . Builder extends GeneratedMessage . Builder<GenerateAttachedClusterAgentTokenResponse . Builder > implements GenerateAttachedClusterAgentTokenResponseOrBuilder
Protobuf type google.cloud.gkemulticloud.v1.GenerateAttachedClusterAgentTokenResponse
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
build()
public GenerateAttachedClusterAgentTokenResponse build ()
buildPartial()
public GenerateAttachedClusterAgentTokenResponse buildPartial ()
clear()
public GenerateAttachedClusterAgentTokenResponse . Builder clear ()
Overrides
clearAccessToken()
public GenerateAttachedClusterAgentTokenResponse . Builder clearAccessToken ()
string access_token = 1 [json_name = "access_token"];
clearExpiresIn()
public GenerateAttachedClusterAgentTokenResponse . Builder clearExpiresIn ()
int32 expires_in = 2 [json_name = "expires_in"];
clearTokenType()
public GenerateAttachedClusterAgentTokenResponse . Builder clearTokenType ()
string token_type = 3 [json_name = "token_type"];
getAccessToken()
public String getAccessToken ()
string access_token = 1 [json_name = "access_token"];
Returns
Type
Description
String
The accessToken.
getAccessTokenBytes()
public ByteString getAccessTokenBytes ()
string access_token = 1 [json_name = "access_token"];
Returns
Type
Description
ByteString
The bytes for accessToken.
getDefaultInstanceForType()
public GenerateAttachedClusterAgentTokenResponse getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getExpiresIn()
public int getExpiresIn ()
int32 expires_in = 2 [json_name = "expires_in"];
Returns
Type
Description
int
The expiresIn.
getTokenType()
public String getTokenType ()
string token_type = 3 [json_name = "token_type"];
Returns
Type
Description
String
The tokenType.
getTokenTypeBytes()
public ByteString getTokenTypeBytes ()
string token_type = 3 [json_name = "token_type"];
Returns
Type
Description
ByteString
The bytes for tokenType.
internalGetFieldAccessorTable()
protected GeneratedMessage . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(GenerateAttachedClusterAgentTokenResponse other)
public GenerateAttachedClusterAgentTokenResponse . Builder mergeFrom ( GenerateAttachedClusterAgentTokenResponse other )
public GenerateAttachedClusterAgentTokenResponse . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public GenerateAttachedClusterAgentTokenResponse . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
setAccessToken(String value)
public GenerateAttachedClusterAgentTokenResponse . Builder setAccessToken ( String value )
string access_token = 1 [json_name = "access_token"];
Parameter
Name
Description
value
String The accessToken to set.
setAccessTokenBytes(ByteString value)
public GenerateAttachedClusterAgentTokenResponse . Builder setAccessTokenBytes ( ByteString value )
string access_token = 1 [json_name = "access_token"];
Parameter
Name
Description
value
ByteString The bytes for accessToken to set.
setExpiresIn(int value)
public GenerateAttachedClusterAgentTokenResponse . Builder setExpiresIn ( int value )
int32 expires_in = 2 [json_name = "expires_in"];
Parameter
Name
Description
value
int The expiresIn to set.
setTokenType(String value)
public GenerateAttachedClusterAgentTokenResponse . Builder setTokenType ( String value )
string token_type = 3 [json_name = "token_type"];
Parameter
Name
Description
value
String The tokenType to set.
setTokenTypeBytes(ByteString value)
public GenerateAttachedClusterAgentTokenResponse . Builder setTokenTypeBytes ( ByteString value )
string token_type = 3 [json_name = "token_type"];
Parameter
Name
Description
value
ByteString The bytes for tokenType to set.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-02-27 UTC."],[],[]]