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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Required.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanOptional.Optional.com.google.protobuf.ByteStringOptional.getName()Required.com.google.protobuf.ByteStringRequired.Optional.intOptional.Optional.com.google.protobuf.ByteStringOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setForceUseAgent(boolean value) Optional.setKubernetesNamespace(String value) Optional.setKubernetesNamespaceBytes(com.google.protobuf.ByteString value) Optional.Required.setNameBytes(com.google.protobuf.ByteString value) Required.Optional.setOperatingSystemValue(int value) Optional.setVersion(String value) Optional.setVersionBytes(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GenerateCredentialsRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GenerateCredentialsRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<GenerateCredentialsRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenerateCredentialsRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenerateCredentialsRequest.Builder>- Throws:
IOException
-
getName
Required. The Fleet membership resource.
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNamein interfaceGenerateCredentialsRequestOrBuilder- 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:
getNameBytesin interfaceGenerateCredentialsRequestOrBuilder- 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
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:
getForceUseAgentin interfaceGenerateCredentialsRequestOrBuilder- Returns:
- The forceUseAgent.
-
setForceUseAgent
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
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
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:
getVersionin interfaceGenerateCredentialsRequestOrBuilder- 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:
getVersionBytesin interfaceGenerateCredentialsRequestOrBuilder- Returns:
- The bytes for version.
-
setVersion
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
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
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
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:
getKubernetesNamespacein interfaceGenerateCredentialsRequestOrBuilder- 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:
getKubernetesNamespaceBytesin interfaceGenerateCredentialsRequestOrBuilder- Returns:
- The bytes for kubernetesNamespace.
-
setKubernetesNamespace
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
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:
getOperatingSystemValuein interfaceGenerateCredentialsRequestOrBuilder- Returns:
- The enum numeric value on the wire for operatingSystem.
-
setOperatingSystemValue
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
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:
getOperatingSystemin interfaceGenerateCredentialsRequestOrBuilder- Returns:
- The operatingSystem.
-
setOperatingSystem
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];- Parameters:
value- The operatingSystem to set.- Returns:
- This builder for chaining.
-
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.
-