Class KubernetesConfig.GatewayServiceMesh.Builder (1.49.0)

public static final class KubernetesConfig.GatewayServiceMesh.Builder extends GeneratedMessageV3.Builder<KubernetesConfig.GatewayServiceMesh.Builder> implements KubernetesConfig.GatewayServiceMeshOrBuilder

Information about the Kubernetes Gateway API service mesh configuration.

Protobuf type google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public KubernetesConfig.GatewayServiceMesh.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder
Overrides

build()

public KubernetesConfig.GatewayServiceMesh build()
Returns
Type Description
KubernetesConfig.GatewayServiceMesh

buildPartial()

public KubernetesConfig.GatewayServiceMesh buildPartial()
Returns
Type Description
KubernetesConfig.GatewayServiceMesh

clear()

public KubernetesConfig.GatewayServiceMesh.Builder clear()
Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder
Overrides

clearDeployment()

public KubernetesConfig.GatewayServiceMesh.Builder clearDeployment()

Required. Name of the Kubernetes Deployment whose traffic is managed by the specified HTTPRoute and Service.

string deployment = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public KubernetesConfig.GatewayServiceMesh.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder
Overrides

clearHttpRoute()

public KubernetesConfig.GatewayServiceMesh.Builder clearHttpRoute()

Required. Name of the Gateway API HTTPRoute.

string http_route = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public KubernetesConfig.GatewayServiceMesh.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder
Overrides

clearPodSelectorLabel()

public KubernetesConfig.GatewayServiceMesh.Builder clearPodSelectorLabel()

Optional. The label to use when selecting Pods for the Deployment and Service resources. This label must already be present in both resources.

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

Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder

This builder for chaining.

clearRouteUpdateWaitTime()

public KubernetesConfig.GatewayServiceMesh.Builder clearRouteUpdateWaitTime()

Optional. The time to wait for route updates to propagate. The maximum configurable time is 3 hours, in seconds format. If unspecified, there is no wait time.

.google.protobuf.Duration route_update_wait_time = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder

clearService()

public KubernetesConfig.GatewayServiceMesh.Builder clearService()

Required. Name of the Kubernetes Service.

string service = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder

This builder for chaining.

clearStableCutbackDuration()

public KubernetesConfig.GatewayServiceMesh.Builder clearStableCutbackDuration()

Optional. The amount of time to migrate traffic back from the canary Service to the original Service during the stable phase deployment. If specified, must be between 15s and 3600s. If unspecified, there is no cutback time.

.google.protobuf.Duration stable_cutback_duration = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder

clone()

public KubernetesConfig.GatewayServiceMesh.Builder clone()
Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder
Overrides

getDefaultInstanceForType()

public KubernetesConfig.GatewayServiceMesh getDefaultInstanceForType()
Returns
Type Description
KubernetesConfig.GatewayServiceMesh

getDeployment()

public String getDeployment()

Required. Name of the Kubernetes Deployment whose traffic is managed by the specified HTTPRoute and Service.

string deployment = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The deployment.

getDeploymentBytes()

public ByteString getDeploymentBytes()

Required. Name of the Kubernetes Deployment whose traffic is managed by the specified HTTPRoute and Service.

string deployment = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for deployment.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getHttpRoute()

public String getHttpRoute()

Required. Name of the Gateway API HTTPRoute.

string http_route = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The httpRoute.

getHttpRouteBytes()

public ByteString getHttpRouteBytes()

Required. Name of the Gateway API HTTPRoute.

string http_route = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for httpRoute.

getPodSelectorLabel()

public String getPodSelectorLabel()

Optional. The label to use when selecting Pods for the Deployment and Service resources. This label must already be present in both resources.

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

Returns
Type Description
String

The podSelectorLabel.

getPodSelectorLabelBytes()

public ByteString getPodSelectorLabelBytes()

Optional. The label to use when selecting Pods for the Deployment and Service resources. This label must already be present in both resources.

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

Returns
Type Description
ByteString

The bytes for podSelectorLabel.

getRouteUpdateWaitTime()

public Duration getRouteUpdateWaitTime()

Optional. The time to wait for route updates to propagate. The maximum configurable time is 3 hours, in seconds format. If unspecified, there is no wait time.

.google.protobuf.Duration route_update_wait_time = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Duration

The routeUpdateWaitTime.

getRouteUpdateWaitTimeBuilder()

public Duration.Builder getRouteUpdateWaitTimeBuilder()

Optional. The time to wait for route updates to propagate. The maximum configurable time is 3 hours, in seconds format. If unspecified, there is no wait time.

.google.protobuf.Duration route_update_wait_time = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getRouteUpdateWaitTimeOrBuilder()

public DurationOrBuilder getRouteUpdateWaitTimeOrBuilder()

Optional. The time to wait for route updates to propagate. The maximum configurable time is 3 hours, in seconds format. If unspecified, there is no wait time.

.google.protobuf.Duration route_update_wait_time = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DurationOrBuilder

getService()

public String getService()

Required. Name of the Kubernetes Service.

string service = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The service.

getServiceBytes()

public ByteString getServiceBytes()

Required. Name of the Kubernetes Service.

string service = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for service.

getStableCutbackDuration()

public Duration getStableCutbackDuration()

Optional. The amount of time to migrate traffic back from the canary Service to the original Service during the stable phase deployment. If specified, must be between 15s and 3600s. If unspecified, there is no cutback time.

.google.protobuf.Duration stable_cutback_duration = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Duration

The stableCutbackDuration.

getStableCutbackDurationBuilder()

public Duration.Builder getStableCutbackDurationBuilder()

Optional. The amount of time to migrate traffic back from the canary Service to the original Service during the stable phase deployment. If specified, must be between 15s and 3600s. If unspecified, there is no cutback time.

.google.protobuf.Duration stable_cutback_duration = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getStableCutbackDurationOrBuilder()

public DurationOrBuilder getStableCutbackDurationOrBuilder()

Optional. The amount of time to migrate traffic back from the canary Service to the original Service during the stable phase deployment. If specified, must be between 15s and 3600s. If unspecified, there is no cutback time.

.google.protobuf.Duration stable_cutback_duration = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DurationOrBuilder

hasRouteUpdateWaitTime()

public boolean hasRouteUpdateWaitTime()

Optional. The time to wait for route updates to propagate. The maximum configurable time is 3 hours, in seconds format. If unspecified, there is no wait time.

.google.protobuf.Duration route_update_wait_time = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the routeUpdateWaitTime field is set.

hasStableCutbackDuration()

public boolean hasStableCutbackDuration()

Optional. The amount of time to migrate traffic back from the canary Service to the original Service during the stable phase deployment. If specified, must be between 15s and 3600s. If unspecified, there is no cutback time.

.google.protobuf.Duration stable_cutback_duration = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the stableCutbackDuration field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(KubernetesConfig.GatewayServiceMesh other)

public KubernetesConfig.GatewayServiceMesh.Builder mergeFrom(KubernetesConfig.GatewayServiceMesh other)
Parameter
Name Description
other KubernetesConfig.GatewayServiceMesh
Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public KubernetesConfig.GatewayServiceMesh.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public KubernetesConfig.GatewayServiceMesh.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder
Overrides

mergeRouteUpdateWaitTime(Duration value)

public KubernetesConfig.GatewayServiceMesh.Builder mergeRouteUpdateWaitTime(Duration value)

Optional. The time to wait for route updates to propagate. The maximum configurable time is 3 hours, in seconds format. If unspecified, there is no wait time.

.google.protobuf.Duration route_update_wait_time = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Duration
Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder

mergeStableCutbackDuration(Duration value)

public KubernetesConfig.GatewayServiceMesh.Builder mergeStableCutbackDuration(Duration value)

Optional. The amount of time to migrate traffic back from the canary Service to the original Service during the stable phase deployment. If specified, must be between 15s and 3600s. If unspecified, there is no cutback time.

.google.protobuf.Duration stable_cutback_duration = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Duration
Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final KubernetesConfig.GatewayServiceMesh.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder
Overrides

setDeployment(String value)

public KubernetesConfig.GatewayServiceMesh.Builder setDeployment(String value)

Required. Name of the Kubernetes Deployment whose traffic is managed by the specified HTTPRoute and Service.

string deployment = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The deployment to set.

Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder

This builder for chaining.

setDeploymentBytes(ByteString value)

public KubernetesConfig.GatewayServiceMesh.Builder setDeploymentBytes(ByteString value)

Required. Name of the Kubernetes Deployment whose traffic is managed by the specified HTTPRoute and Service.

string deployment = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for deployment to set.

Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public KubernetesConfig.GatewayServiceMesh.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder
Overrides

setHttpRoute(String value)

public KubernetesConfig.GatewayServiceMesh.Builder setHttpRoute(String value)

Required. Name of the Gateway API HTTPRoute.

string http_route = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The httpRoute to set.

Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder

This builder for chaining.

setHttpRouteBytes(ByteString value)

public KubernetesConfig.GatewayServiceMesh.Builder setHttpRouteBytes(ByteString value)

Required. Name of the Gateway API HTTPRoute.

string http_route = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for httpRoute to set.

Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder

This builder for chaining.

setPodSelectorLabel(String value)

public KubernetesConfig.GatewayServiceMesh.Builder setPodSelectorLabel(String value)

Optional. The label to use when selecting Pods for the Deployment and Service resources. This label must already be present in both resources.

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

Parameter
Name Description
value String

The podSelectorLabel to set.

Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder

This builder for chaining.

setPodSelectorLabelBytes(ByteString value)

public KubernetesConfig.GatewayServiceMesh.Builder setPodSelectorLabelBytes(ByteString value)

Optional. The label to use when selecting Pods for the Deployment and Service resources. This label must already be present in both resources.

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

Parameter
Name Description
value ByteString

The bytes for podSelectorLabel to set.

Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder

This builder for chaining.

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

public KubernetesConfig.GatewayServiceMesh.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder
Overrides

setRouteUpdateWaitTime(Duration value)

public KubernetesConfig.GatewayServiceMesh.Builder setRouteUpdateWaitTime(Duration value)

Optional. The time to wait for route updates to propagate. The maximum configurable time is 3 hours, in seconds format. If unspecified, there is no wait time.

.google.protobuf.Duration route_update_wait_time = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Duration
Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder

setRouteUpdateWaitTime(Duration.Builder builderForValue)

public KubernetesConfig.GatewayServiceMesh.Builder setRouteUpdateWaitTime(Duration.Builder builderForValue)

Optional. The time to wait for route updates to propagate. The maximum configurable time is 3 hours, in seconds format. If unspecified, there is no wait time.

.google.protobuf.Duration route_update_wait_time = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder

setService(String value)

public KubernetesConfig.GatewayServiceMesh.Builder setService(String value)

Required. Name of the Kubernetes Service.

string service = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The service to set.

Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder

This builder for chaining.

setServiceBytes(ByteString value)

public KubernetesConfig.GatewayServiceMesh.Builder setServiceBytes(ByteString value)

Required. Name of the Kubernetes Service.

string service = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for service to set.

Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder

This builder for chaining.

setStableCutbackDuration(Duration value)

public KubernetesConfig.GatewayServiceMesh.Builder setStableCutbackDuration(Duration value)

Optional. The amount of time to migrate traffic back from the canary Service to the original Service during the stable phase deployment. If specified, must be between 15s and 3600s. If unspecified, there is no cutback time.

.google.protobuf.Duration stable_cutback_duration = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Duration
Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder

setStableCutbackDuration(Duration.Builder builderForValue)

public KubernetesConfig.GatewayServiceMesh.Builder setStableCutbackDuration(Duration.Builder builderForValue)

Optional. The amount of time to migrate traffic back from the canary Service to the original Service during the stable phase deployment. If specified, must be between 15s and 3600s. If unspecified, there is no cutback time.

.google.protobuf.Duration stable_cutback_duration = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final KubernetesConfig.GatewayServiceMesh.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
KubernetesConfig.GatewayServiceMesh.Builder
Overrides