Class GenerateCredentialsRequest.Builder (0.6.0)

public static final class GenerateCredentialsRequest.Builder extends GeneratedMessageV3.Builder<GenerateCredentialsRequest.Builder> implements GenerateCredentialsRequestOrBuilder

A request for connection information for a particular membership.

Protobuf type google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GenerateCredentialsRequest build()
Returns
Type Description
GenerateCredentialsRequest

buildPartial()

public GenerateCredentialsRequest buildPartial()
Returns
Type Description
GenerateCredentialsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearForceUseAgent()

public GenerateCredentialsRequest.Builder clearForceUseAgent()

Optional. Whether to force the use of Connect Agent-based transport.

This will return a configuration that uses Connect Agent as the underlying transport mechanism for cluster types that would otherwise have used a different transport. Requires that Connect Agent be installed on the cluster. Setting this field to false is equivalent to not setting it.

bool force_use_agent = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GenerateCredentialsRequest.Builder

This builder for chaining.

clearKubernetesNamespace()

public GenerateCredentialsRequest.Builder clearKubernetesNamespace()

Optional. The namespace to use in the kubeconfig context.

If this field is specified, the server will set the namespace field in kubeconfig context. If not specified, the namespace field is omitted.

string kubernetes_namespace = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GenerateCredentialsRequest.Builder

This builder for chaining.

clearName()

public GenerateCredentialsRequest.Builder clearName()

Required. The Fleet membership resource.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GenerateCredentialsRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOperatingSystem()

public GenerateCredentialsRequest.Builder clearOperatingSystem()

Optional. The operating system where the kubeconfig will be used.

.google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequest.OperatingSystem operating_system = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GenerateCredentialsRequest.Builder

This builder for chaining.

clearVersion()

public GenerateCredentialsRequest.Builder clearVersion()

Optional. The Connect Gateway version to be used in the resulting configuration.

Leave this field blank to let the server choose the version (recommended).

string version = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GenerateCredentialsRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GenerateCredentialsRequest getDefaultInstanceForType()
Returns
Type Description
GenerateCredentialsRequest

getDescriptorForType()

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

getForceUseAgent()

public boolean getForceUseAgent()

Optional. Whether to force the use of Connect Agent-based transport.

This will return a configuration that uses Connect Agent as the underlying transport mechanism for cluster types that would otherwise have used a different transport. Requires that Connect Agent be installed on the cluster. Setting this field to false is equivalent to not setting it.

bool force_use_agent = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The forceUseAgent.

getKubernetesNamespace()

public String getKubernetesNamespace()

Optional. The namespace to use in the kubeconfig context.

If this field is specified, the server will set the namespace field in kubeconfig context. If not specified, the namespace field is omitted.

string kubernetes_namespace = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The kubernetesNamespace.

getKubernetesNamespaceBytes()

public ByteString getKubernetesNamespaceBytes()

Optional. The namespace to use in the kubeconfig context.

If this field is specified, the server will set the namespace field in kubeconfig context. If not specified, the namespace field is omitted.

string kubernetes_namespace = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for kubernetesNamespace.

getName()

public String getName()

Required. The Fleet membership resource.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The Fleet membership resource.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

getOperatingSystem()

public GenerateCredentialsRequest.OperatingSystem getOperatingSystem()

Optional. The operating system where the kubeconfig will be used.

.google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequest.OperatingSystem operating_system = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GenerateCredentialsRequest.OperatingSystem

The operatingSystem.

getOperatingSystemValue()

public int getOperatingSystemValue()

Optional. The operating system where the kubeconfig will be used.

.google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequest.OperatingSystem operating_system = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for operatingSystem.

getVersion()

public String getVersion()

Optional. The Connect Gateway version to be used in the resulting configuration.

Leave this field blank to let the server choose the version (recommended).

string version = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Optional. The Connect Gateway version to be used in the resulting configuration.

Leave this field blank to let the server choose the version (recommended).

string version = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GenerateCredentialsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setForceUseAgent(boolean value)

public GenerateCredentialsRequest.Builder setForceUseAgent(boolean value)

Optional. Whether to force the use of Connect Agent-based transport.

This will return a configuration that uses Connect Agent as the underlying transport mechanism for cluster types that would otherwise have used a different transport. Requires that Connect Agent be installed on the cluster. Setting this field to false is equivalent to not setting it.

bool force_use_agent = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The forceUseAgent to set.

Returns
Type Description
GenerateCredentialsRequest.Builder

This builder for chaining.

setKubernetesNamespace(String value)

public GenerateCredentialsRequest.Builder setKubernetesNamespace(String value)

Optional. The namespace to use in the kubeconfig context.

If this field is specified, the server will set the namespace field in kubeconfig context. If not specified, the namespace field is omitted.

string kubernetes_namespace = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The kubernetesNamespace to set.

Returns
Type Description
GenerateCredentialsRequest.Builder

This builder for chaining.

setKubernetesNamespaceBytes(ByteString value)

public GenerateCredentialsRequest.Builder setKubernetesNamespaceBytes(ByteString value)

Optional. The namespace to use in the kubeconfig context.

If this field is specified, the server will set the namespace field in kubeconfig context. If not specified, the namespace field is omitted.

string kubernetes_namespace = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for kubernetesNamespace to set.

Returns
Type Description
GenerateCredentialsRequest.Builder

This builder for chaining.

setName(String value)

public GenerateCredentialsRequest.Builder setName(String value)

Required. The Fleet membership resource.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GenerateCredentialsRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GenerateCredentialsRequest.Builder setNameBytes(ByteString value)

Required. The Fleet membership resource.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GenerateCredentialsRequest.Builder

This builder for chaining.

setOperatingSystem(GenerateCredentialsRequest.OperatingSystem value)

public GenerateCredentialsRequest.Builder setOperatingSystem(GenerateCredentialsRequest.OperatingSystem value)

Optional. The operating system where the kubeconfig will be used.

.google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequest.OperatingSystem operating_system = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value GenerateCredentialsRequest.OperatingSystem

The operatingSystem to set.

Returns
Type Description
GenerateCredentialsRequest.Builder

This builder for chaining.

setOperatingSystemValue(int value)

public GenerateCredentialsRequest.Builder setOperatingSystemValue(int value)

Optional. The operating system where the kubeconfig will be used.

.google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequest.OperatingSystem operating_system = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for operatingSystem to set.

Returns
Type Description
GenerateCredentialsRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(String value)

public GenerateCredentialsRequest.Builder setVersion(String value)

Optional. The Connect Gateway version to be used in the resulting configuration.

Leave this field blank to let the server choose the version (recommended).

string version = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The version to set.

Returns
Type Description
GenerateCredentialsRequest.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public GenerateCredentialsRequest.Builder setVersionBytes(ByteString value)

Optional. The Connect Gateway version to be used in the resulting configuration.

Leave this field blank to let the server choose the version (recommended).

string version = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
GenerateCredentialsRequest.Builder

This builder for chaining.