Class GenerateOfflineCredentialResponse.Builder (0.36.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GenerateOfflineCredentialResponse build()
Returns
TypeDescription
GenerateOfflineCredentialResponse

buildPartial()

public GenerateOfflineCredentialResponse buildPartial()
Returns
TypeDescription
GenerateOfflineCredentialResponse

clear()

public GenerateOfflineCredentialResponse.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
GenerateOfflineCredentialResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUserId()

public GenerateOfflineCredentialResponse.Builder clearUserId()

Output only. Client's identity.

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

Returns
TypeDescription
GenerateOfflineCredentialResponse.Builder

This builder for chaining.

clone()

public GenerateOfflineCredentialResponse.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for clientKey.

getDefaultInstanceForType()

public GenerateOfflineCredentialResponse getDefaultInstanceForType()
Returns
TypeDescription
GenerateOfflineCredentialResponse

getDescriptorForType()

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

getUserId()

public String getUserId()

Output only. Client's identity.

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

Returns
TypeDescription
String

The userId.

getUserIdBytes()

public ByteString getUserIdBytes()

Output only. Client's identity.

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

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

mergeFrom(GenerateOfflineCredentialResponse other)

public GenerateOfflineCredentialResponse.Builder mergeFrom(GenerateOfflineCredentialResponse other)
Parameter
NameDescription
otherGenerateOfflineCredentialResponse
Returns
TypeDescription
GenerateOfflineCredentialResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The clientCertificate to set.

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

The bytes for clientCertificate to set.

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

The clientKey to set.

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

The bytes for clientKey to set.

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public GenerateOfflineCredentialResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GenerateOfflineCredentialResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

The userId to set.

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

The bytes for userId to set.

Returns
TypeDescription
GenerateOfflineCredentialResponse.Builder

This builder for chaining.