Class GenerateCredentialsRequest (0.56.0)

public final class GenerateCredentialsRequest extends GeneratedMessageV3 implements GenerateCredentialsRequestOrBuilder

A request for connection information for a particular membership.

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

Static Fields

FORCE_USE_AGENT_FIELD_NUMBER

public static final int FORCE_USE_AGENT_FIELD_NUMBER
Field Value
Type Description
int

KUBERNETES_NAMESPACE_FIELD_NUMBER

public static final int KUBERNETES_NAMESPACE_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

OPERATING_SYSTEM_FIELD_NUMBER

public static final int OPERATING_SYSTEM_FIELD_NUMBER
Field Value
Type Description
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static GenerateCredentialsRequest getDefaultInstance()
Returns
Type Description
GenerateCredentialsRequest

getDescriptor()

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

newBuilder()

public static GenerateCredentialsRequest.Builder newBuilder()
Returns
Type Description
GenerateCredentialsRequest.Builder

newBuilder(GenerateCredentialsRequest prototype)

public static GenerateCredentialsRequest.Builder newBuilder(GenerateCredentialsRequest prototype)
Parameter
Name Description
prototype GenerateCredentialsRequest
Returns
Type Description
GenerateCredentialsRequest.Builder

parseDelimitedFrom(InputStream input)

public static GenerateCredentialsRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GenerateCredentialsRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GenerateCredentialsRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateCredentialsRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static GenerateCredentialsRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
GenerateCredentialsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GenerateCredentialsRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateCredentialsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GenerateCredentialsRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
GenerateCredentialsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GenerateCredentialsRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateCredentialsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GenerateCredentialsRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
GenerateCredentialsRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GenerateCredentialsRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateCredentialsRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static GenerateCredentialsRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GenerateCredentialsRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GenerateCredentialsRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateCredentialsRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static GenerateCredentialsRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
GenerateCredentialsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GenerateCredentialsRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateCredentialsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<GenerateCredentialsRequest> parser()
Returns
Type Description
Parser<GenerateCredentialsRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public GenerateCredentialsRequest getDefaultInstanceForType()
Returns
Type Description
GenerateCredentialsRequest

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.v1beta1.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.v1beta1.GenerateCredentialsRequest.OperatingSystem operating_system = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for operatingSystem.

getParserForType()

public Parser<GenerateCredentialsRequest> getParserForType()
Returns
Type Description
Parser<GenerateCredentialsRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public GenerateCredentialsRequest.Builder newBuilderForType()
Returns
Type Description
GenerateCredentialsRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GenerateCredentialsRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
GenerateCredentialsRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public GenerateCredentialsRequest.Builder toBuilder()
Returns
Type Description
GenerateCredentialsRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException