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.
[[["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 2025-08-28 UTC."],[],[],null,["# Interface GenerateCredentialsRequestOrBuilder (0.24.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.24.0 (latest)](/java/docs/reference/google-cloud-connectgateway/latest/com.google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequestOrBuilder)\n- [0.22.0](/java/docs/reference/google-cloud-connectgateway/0.22.0/com.google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequestOrBuilder)\n- [0.20.0](/java/docs/reference/google-cloud-connectgateway/0.20.0/com.google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequestOrBuilder)\n- [0.19.0](/java/docs/reference/google-cloud-connectgateway/0.19.0/com.google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequestOrBuilder)\n- [0.16.0](/java/docs/reference/google-cloud-connectgateway/0.16.0/com.google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequestOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloud-connectgateway/0.15.0/com.google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequestOrBuilder)\n- [0.14.0](/java/docs/reference/google-cloud-connectgateway/0.14.0/com.google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequestOrBuilder)\n- [0.12.0](/java/docs/reference/google-cloud-connectgateway/0.12.0/com.google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequestOrBuilder)\n- [0.11.0](/java/docs/reference/google-cloud-connectgateway/0.11.0/com.google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequestOrBuilder)\n- [0.10.0](/java/docs/reference/google-cloud-connectgateway/0.10.0/com.google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequestOrBuilder)\n- [0.9.0](/java/docs/reference/google-cloud-connectgateway/0.9.0/com.google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequestOrBuilder)\n- [0.8.0](/java/docs/reference/google-cloud-connectgateway/0.8.0/com.google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequestOrBuilder)\n- [0.7.0](/java/docs/reference/google-cloud-connectgateway/0.7.0/com.google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequestOrBuilder)\n- [0.6.0](/java/docs/reference/google-cloud-connectgateway/0.6.0/com.google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequestOrBuilder)\n- [0.5.0](/java/docs/reference/google-cloud-connectgateway/0.5.0/com.google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequestOrBuilder)\n- [0.4.0](/java/docs/reference/google-cloud-connectgateway/0.4.0/com.google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequestOrBuilder)\n- [0.3.0](/java/docs/reference/google-cloud-connectgateway/0.3.0/com.google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequestOrBuilder)\n- [0.1.0](/java/docs/reference/google-cloud-connectgateway/0.1.0/com.google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequestOrBuilder) \n\n public interface GenerateCredentialsRequestOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getForceUseAgent()\n\n public abstract boolean getForceUseAgent()\n\nOptional. Whether to force the use of Connect Agent-based transport.\n\nThis will return a configuration that uses Connect Agent as the underlying\ntransport mechanism for cluster types that would otherwise have used a\ndifferent transport. Requires that Connect Agent be installed on the\ncluster. Setting this field to false is equivalent to not setting it.\n\n`bool force_use_agent = 2 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getKubernetesNamespace()\n\n public abstract String getKubernetesNamespace()\n\nOptional. The namespace to use in the kubeconfig context.\n\nIf this field is specified, the server will set the `namespace` field in\nkubeconfig context. If not specified, the `namespace` field is omitted.\n\n`string kubernetes_namespace = 4 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getKubernetesNamespaceBytes()\n\n public abstract ByteString getKubernetesNamespaceBytes()\n\nOptional. The namespace to use in the kubeconfig context.\n\nIf this field is specified, the server will set the `namespace` field in\nkubeconfig context. If not specified, the `namespace` field is omitted.\n\n`string kubernetes_namespace = 4 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getName()\n\n public abstract String getName()\n\nRequired. The Fleet membership resource.\n\n`string name = 1 [(.google.api.field_behavior) = REQUIRED];`\n\n### getNameBytes()\n\n public abstract ByteString getNameBytes()\n\nRequired. The Fleet membership resource.\n\n`string name = 1 [(.google.api.field_behavior) = REQUIRED];`\n\n### getOperatingSystem()\n\n public abstract GenerateCredentialsRequest.OperatingSystem getOperatingSystem()\n\nOptional. The operating system where the kubeconfig will be used.\n\n`\n.google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequest.OperatingSystem operating_system = 5 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getOperatingSystemValue()\n\n public abstract int getOperatingSystemValue()\n\nOptional. The operating system where the kubeconfig will be used.\n\n`\n.google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequest.OperatingSystem operating_system = 5 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getVersion()\n\n public abstract String getVersion()\n\nOptional. The Connect Gateway version to be used in the resulting\nconfiguration.\n\nLeave this field blank to let the server choose the version (recommended).\n\n`string version = 3 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getVersionBytes()\n\n public abstract ByteString getVersionBytes()\n\nOptional. The Connect Gateway version to be used in the resulting\nconfiguration.\n\nLeave this field blank to let the server choose the version (recommended).\n\n`string version = 3 [(.google.api.field_behavior) = OPTIONAL];`"]]