Class GenerateOfflineCredentialResponse.Builder (0.43.0)

public static final class GenerateOfflineCredentialResponse.Builder extends GeneratedMessageV3.Builder<GenerateOfflineCredentialResponse.Builder> implements GenerateOfflineCredentialResponseOrBuilder

An offline credential for a cluster.

Protobuf type google.cloud.edgecontainer.v1.GenerateOfflineCredentialResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GenerateOfflineCredentialResponse build()
Returns
Type Description
GenerateOfflineCredentialResponse

buildPartial()

public GenerateOfflineCredentialResponse buildPartial()
Returns
Type Description
GenerateOfflineCredentialResponse

clear()

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

clearClientCertificate()

public GenerateOfflineCredentialResponse.Builder clearClientCertificate()

Output only. Client certificate to authenticate to k8s api-server.

string client_certificate = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GenerateOfflineCredentialResponse.Builder

This builder for chaining.

clearClientKey()

public GenerateOfflineCredentialResponse.Builder clearClientKey()

Output only. Client private key to authenticate to k8s api-server.

string client_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GenerateOfflineCredentialResponse.Builder

This builder for chaining.

clearExpireTime()

public GenerateOfflineCredentialResponse.Builder clearExpireTime()

Output only. Timestamp at which this credential will expire.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GenerateOfflineCredentialResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUserId()

public GenerateOfflineCredentialResponse.Builder clearUserId()

Output only. Client's identity.

string user_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GenerateOfflineCredentialResponse.Builder

This builder for chaining.

clone()

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

getClientCertificate()

public String getClientCertificate()

Output only. Client certificate to authenticate to k8s api-server.

string client_certificate = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The clientCertificate.

getClientCertificateBytes()

public ByteString getClientCertificateBytes()

Output only. Client certificate to authenticate to k8s api-server.

string client_certificate = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for clientCertificate.

getClientKey()

public String getClientKey()

Output only. Client private key to authenticate to k8s api-server.

string client_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The clientKey.

getClientKeyBytes()

public ByteString getClientKeyBytes()

Output only. Client private key to authenticate to k8s api-server.

string client_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for clientKey.

getDefaultInstanceForType()

public GenerateOfflineCredentialResponse getDefaultInstanceForType()
Returns
Type Description
GenerateOfflineCredentialResponse

getDescriptorForType()

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

getExpireTime()

public Timestamp getExpireTime()

Output only. Timestamp at which this credential will expire.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The expireTime.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

Output only. Timestamp at which this credential will expire.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

Output only. Timestamp at which this credential will expire.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getUserId()

public String getUserId()

Output only. Client's identity.

string user_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The userId.

getUserIdBytes()

public ByteString getUserIdBytes()

Output only. Client's identity.

string user_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for userId.

hasExpireTime()

public boolean hasExpireTime()

Output only. Timestamp at which this credential will expire.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

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 GenerateOfflineCredentialResponse.Builder mergeExpireTime(Timestamp value)

Output only. Timestamp at which this credential will expire.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
GenerateOfflineCredentialResponse.Builder

mergeFrom(GenerateOfflineCredentialResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setClientCertificate(String value)

public GenerateOfflineCredentialResponse.Builder setClientCertificate(String value)

Output only. Client certificate to authenticate to k8s api-server.

string client_certificate = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The clientCertificate to set.

Returns
Type Description
GenerateOfflineCredentialResponse.Builder

This builder for chaining.

setClientCertificateBytes(ByteString value)

public GenerateOfflineCredentialResponse.Builder setClientCertificateBytes(ByteString value)

Output only. Client certificate to authenticate to k8s api-server.

string client_certificate = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for clientCertificate to set.

Returns
Type Description
GenerateOfflineCredentialResponse.Builder

This builder for chaining.

setClientKey(String value)

public GenerateOfflineCredentialResponse.Builder setClientKey(String value)

Output only. Client private key to authenticate to k8s api-server.

string client_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The clientKey to set.

Returns
Type Description
GenerateOfflineCredentialResponse.Builder

This builder for chaining.

setClientKeyBytes(ByteString value)

public GenerateOfflineCredentialResponse.Builder setClientKeyBytes(ByteString value)

Output only. Client private key to authenticate to k8s api-server.

string client_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for clientKey to set.

Returns
Type Description
GenerateOfflineCredentialResponse.Builder

This builder for chaining.

setExpireTime(Timestamp value)

public GenerateOfflineCredentialResponse.Builder setExpireTime(Timestamp value)

Output only. Timestamp at which this credential will expire.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
GenerateOfflineCredentialResponse.Builder

setExpireTime(Timestamp.Builder builderForValue)

public GenerateOfflineCredentialResponse.Builder setExpireTime(Timestamp.Builder builderForValue)

Output only. Timestamp at which this credential will expire.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
GenerateOfflineCredentialResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUserId(String value)

public GenerateOfflineCredentialResponse.Builder setUserId(String value)

Output only. Client's identity.

string user_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The userId to set.

Returns
Type Description
GenerateOfflineCredentialResponse.Builder

This builder for chaining.

setUserIdBytes(ByteString value)

public GenerateOfflineCredentialResponse.Builder setUserIdBytes(ByteString value)

Output only. Client's identity.

string user_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for userId to set.

Returns
Type Description
GenerateOfflineCredentialResponse.Builder

This builder for chaining.