Class GenerateCredentialsRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GenerateCredentialsRequest.Builder>
com.google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequest.Builder
All Implemented Interfaces:
GenerateCredentialsRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GenerateCredentialsRequest

public static final class GenerateCredentialsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<GenerateCredentialsRequest.Builder> implements GenerateCredentialsRequestOrBuilder
 A request for connection information for a particular membership.
 
Protobuf type google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GenerateCredentialsRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<GenerateCredentialsRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GenerateCredentialsRequest.Builder>
    • getDefaultInstanceForType

      public GenerateCredentialsRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public GenerateCredentialsRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public GenerateCredentialsRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GenerateCredentialsRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<GenerateCredentialsRequest.Builder>
    • mergeFrom

      public GenerateCredentialsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GenerateCredentialsRequest.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. The Fleet membership resource.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getName in interface GenerateCredentialsRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The Fleet membership resource.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNameBytes in interface GenerateCredentialsRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

       Required. The Fleet membership resource.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Required. The Fleet membership resource.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNameBytes

      public GenerateCredentialsRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The Fleet membership resource.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getForceUseAgent in interface GenerateCredentialsRequestOrBuilder
      Returns:
      The forceUseAgent.
    • setForceUseAgent

      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];
      Parameters:
      value - The forceUseAgent to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • 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];
      Specified by:
      getVersion in interface GenerateCredentialsRequestOrBuilder
      Returns:
      The version.
    • getVersionBytes

      public com.google.protobuf.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];
      Specified by:
      getVersionBytes in interface GenerateCredentialsRequestOrBuilder
      Returns:
      The bytes for version.
    • setVersion

      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];
      Parameters:
      value - The version to set.
      Returns:
      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:
      This builder for chaining.
    • setVersionBytes

      public GenerateCredentialsRequest.Builder setVersionBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for version to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getKubernetesNamespace in interface GenerateCredentialsRequestOrBuilder
      Returns:
      The kubernetesNamespace.
    • getKubernetesNamespaceBytes

      public com.google.protobuf.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];
      Specified by:
      getKubernetesNamespaceBytes in interface GenerateCredentialsRequestOrBuilder
      Returns:
      The bytes for kubernetesNamespace.
    • setKubernetesNamespace

      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];
      Parameters:
      value - The kubernetesNamespace to set.
      Returns:
      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:
      This builder for chaining.
    • setKubernetesNamespaceBytes

      public GenerateCredentialsRequest.Builder setKubernetesNamespaceBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for kubernetesNamespace to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getOperatingSystemValue in interface GenerateCredentialsRequestOrBuilder
      Returns:
      The enum numeric value on the wire for operatingSystem.
    • setOperatingSystemValue

      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];
      Parameters:
      value - The enum numeric value on the wire for operatingSystem to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getOperatingSystem in interface GenerateCredentialsRequestOrBuilder
      Returns:
      The operatingSystem.
    • setOperatingSystem

       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];
      Parameters:
      value - The operatingSystem to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.