Class GenerateConnectManifestRequest.Builder (1.1.0)

public static final class GenerateConnectManifestRequest.Builder extends GeneratedMessageV3.Builder<GenerateConnectManifestRequest.Builder> implements GenerateConnectManifestRequestOrBuilder

Request message for GkeHub.GenerateConnectManifest method. .

Protobuf type google.cloud.gkehub.v1.GenerateConnectManifestRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GenerateConnectManifestRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GenerateConnectManifestRequest.Builder
Overrides

build()

public GenerateConnectManifestRequest build()
Returns
TypeDescription
GenerateConnectManifestRequest

buildPartial()

public GenerateConnectManifestRequest buildPartial()
Returns
TypeDescription
GenerateConnectManifestRequest

clear()

public GenerateConnectManifestRequest.Builder clear()
Returns
TypeDescription
GenerateConnectManifestRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GenerateConnectManifestRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GenerateConnectManifestRequest.Builder
Overrides

clearImagePullSecretContent()

public GenerateConnectManifestRequest.Builder clearImagePullSecretContent()

Optional. The image pull secret content for the registry, if not public.

bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GenerateConnectManifestRequest.Builder

This builder for chaining.

clearIsUpgrade()

public GenerateConnectManifestRequest.Builder clearIsUpgrade()

Optional. If true, generate the resources for upgrade only. Some resources generated only for installation (e.g. secrets) will be excluded.

bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GenerateConnectManifestRequest.Builder

This builder for chaining.

clearName()

public GenerateConnectManifestRequest.Builder clearName()

Required. The Membership resource name the Agent will associate with, in the format projects/*/locations/*/memberships/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
GenerateConnectManifestRequest.Builder

This builder for chaining.

clearNamespace()

public GenerateConnectManifestRequest.Builder clearNamespace()

Optional. Namespace for GKE Connect agent resources. Defaults to gke-connect. The Connect Agent is authorized automatically when run in the default namespace. Otherwise, explicit authorization must be granted with an additional IAM binding.

string namespace = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GenerateConnectManifestRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GenerateConnectManifestRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GenerateConnectManifestRequest.Builder
Overrides

clearProxy()

public GenerateConnectManifestRequest.Builder clearProxy()

Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com requires the use of a proxy. Format must be in the form http(s)://{proxy_address}, depending on the HTTP/HTTPS protocol supported by the proxy. This will direct the connect agent's outbound traffic through a HTTP(S) proxy.

bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GenerateConnectManifestRequest.Builder

This builder for chaining.

clearRegistry()

public GenerateConnectManifestRequest.Builder clearRegistry()

Optional. The registry to fetch the connect agent image from. Defaults to gcr.io/gkeconnect.

string registry = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GenerateConnectManifestRequest.Builder

This builder for chaining.

clearVersion()

public GenerateConnectManifestRequest.Builder clearVersion()

Optional. The Connect agent version to use. Defaults to the most current version.

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

Returns
TypeDescription
GenerateConnectManifestRequest.Builder

This builder for chaining.

clone()

public GenerateConnectManifestRequest.Builder clone()
Returns
TypeDescription
GenerateConnectManifestRequest.Builder
Overrides

getDefaultInstanceForType()

public GenerateConnectManifestRequest getDefaultInstanceForType()
Returns
TypeDescription
GenerateConnectManifestRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getImagePullSecretContent()

public ByteString getImagePullSecretContent()

Optional. The image pull secret content for the registry, if not public.

bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The imagePullSecretContent.

getIsUpgrade()

public boolean getIsUpgrade()

Optional. If true, generate the resources for upgrade only. Some resources generated only for installation (e.g. secrets) will be excluded.

bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The isUpgrade.

getName()

public String getName()

Required. The Membership resource name the Agent will associate with, in the format projects/*/locations/*/memberships/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The Membership resource name the Agent will associate with, in the format projects/*/locations/*/memberships/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

getNamespace()

public String getNamespace()

Optional. Namespace for GKE Connect agent resources. Defaults to gke-connect. The Connect Agent is authorized automatically when run in the default namespace. Otherwise, explicit authorization must be granted with an additional IAM binding.

string namespace = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The namespace.

getNamespaceBytes()

public ByteString getNamespaceBytes()

Optional. Namespace for GKE Connect agent resources. Defaults to gke-connect. The Connect Agent is authorized automatically when run in the default namespace. Otherwise, explicit authorization must be granted with an additional IAM binding.

string namespace = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for namespace.

getProxy()

public ByteString getProxy()

Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com requires the use of a proxy. Format must be in the form http(s)://{proxy_address}, depending on the HTTP/HTTPS protocol supported by the proxy. This will direct the connect agent's outbound traffic through a HTTP(S) proxy.

bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The proxy.

getRegistry()

public String getRegistry()

Optional. The registry to fetch the connect agent image from. Defaults to gcr.io/gkeconnect.

string registry = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The registry.

getRegistryBytes()

public ByteString getRegistryBytes()

Optional. The registry to fetch the connect agent image from. Defaults to gcr.io/gkeconnect.

string registry = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for registry.

getVersion()

public String getVersion()

Optional. The Connect agent version to use. Defaults to the most current version.

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

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Optional. The Connect agent version to use. Defaults to the most current version.

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

Returns
TypeDescription
ByteString

The bytes for version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GenerateConnectManifestRequest other)

public GenerateConnectManifestRequest.Builder mergeFrom(GenerateConnectManifestRequest other)
Parameter
NameDescription
otherGenerateConnectManifestRequest
Returns
TypeDescription
GenerateConnectManifestRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GenerateConnectManifestRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GenerateConnectManifestRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GenerateConnectManifestRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GenerateConnectManifestRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GenerateConnectManifestRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GenerateConnectManifestRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GenerateConnectManifestRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GenerateConnectManifestRequest.Builder
Overrides

setImagePullSecretContent(ByteString value)

public GenerateConnectManifestRequest.Builder setImagePullSecretContent(ByteString value)

Optional. The image pull secret content for the registry, if not public.

bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The imagePullSecretContent to set.

Returns
TypeDescription
GenerateConnectManifestRequest.Builder

This builder for chaining.

setIsUpgrade(boolean value)

public GenerateConnectManifestRequest.Builder setIsUpgrade(boolean value)

Optional. If true, generate the resources for upgrade only. Some resources generated only for installation (e.g. secrets) will be excluded.

bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The isUpgrade to set.

Returns
TypeDescription
GenerateConnectManifestRequest.Builder

This builder for chaining.

setName(String value)

public GenerateConnectManifestRequest.Builder setName(String value)

Required. The Membership resource name the Agent will associate with, in the format projects/*/locations/*/memberships/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GenerateConnectManifestRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GenerateConnectManifestRequest.Builder setNameBytes(ByteString value)

Required. The Membership resource name the Agent will associate with, in the format projects/*/locations/*/memberships/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GenerateConnectManifestRequest.Builder

This builder for chaining.

setNamespace(String value)

public GenerateConnectManifestRequest.Builder setNamespace(String value)

Optional. Namespace for GKE Connect agent resources. Defaults to gke-connect. The Connect Agent is authorized automatically when run in the default namespace. Otherwise, explicit authorization must be granted with an additional IAM binding.

string namespace = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The namespace to set.

Returns
TypeDescription
GenerateConnectManifestRequest.Builder

This builder for chaining.

setNamespaceBytes(ByteString value)

public GenerateConnectManifestRequest.Builder setNamespaceBytes(ByteString value)

Optional. Namespace for GKE Connect agent resources. Defaults to gke-connect. The Connect Agent is authorized automatically when run in the default namespace. Otherwise, explicit authorization must be granted with an additional IAM binding.

string namespace = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for namespace to set.

Returns
TypeDescription
GenerateConnectManifestRequest.Builder

This builder for chaining.

setProxy(ByteString value)

public GenerateConnectManifestRequest.Builder setProxy(ByteString value)

Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com requires the use of a proxy. Format must be in the form http(s)://{proxy_address}, depending on the HTTP/HTTPS protocol supported by the proxy. This will direct the connect agent's outbound traffic through a HTTP(S) proxy.

bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The proxy to set.

Returns
TypeDescription
GenerateConnectManifestRequest.Builder

This builder for chaining.

setRegistry(String value)

public GenerateConnectManifestRequest.Builder setRegistry(String value)

Optional. The registry to fetch the connect agent image from. Defaults to gcr.io/gkeconnect.

string registry = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The registry to set.

Returns
TypeDescription
GenerateConnectManifestRequest.Builder

This builder for chaining.

setRegistryBytes(ByteString value)

public GenerateConnectManifestRequest.Builder setRegistryBytes(ByteString value)

Optional. The registry to fetch the connect agent image from. Defaults to gcr.io/gkeconnect.

string registry = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for registry to set.

Returns
TypeDescription
GenerateConnectManifestRequest.Builder

This builder for chaining.

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

public GenerateConnectManifestRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GenerateConnectManifestRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GenerateConnectManifestRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GenerateConnectManifestRequest.Builder
Overrides

setVersion(String value)

public GenerateConnectManifestRequest.Builder setVersion(String value)

Optional. The Connect agent version to use. Defaults to the most current version.

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

Parameter
NameDescription
valueString

The version to set.

Returns
TypeDescription
GenerateConnectManifestRequest.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public GenerateConnectManifestRequest.Builder setVersionBytes(ByteString value)

Optional. The Connect agent version to use. Defaults to the most current version.

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

Parameter
NameDescription
valueByteString

The bytes for version to set.

Returns
TypeDescription
GenerateConnectManifestRequest.Builder

This builder for chaining.