public static final class HttpRoute.StatefulSessionAffinityPolicy.Builder extends GeneratedMessage.Builder<HttpRoute.StatefulSessionAffinityPolicy.Builder> implements HttpRoute.StatefulSessionAffinityPolicyOrBuilderThe specification for cookie-based stateful session affinity where the date plane supplies a “session cookie” with the name "GSSA" which encodes a specific destination host and each request containing that cookie will be directed to that host as long as the destination host remains up and healthy.
The gRPC proxyless mesh library or sidecar proxy will manage the session cookie but the client application code is responsible for copying the cookie from each RPC in the session to the next.
Protobuf type google.cloud.networkservices.v1.HttpRoute.StatefulSessionAffinityPolicy
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > HttpRoute.StatefulSessionAffinityPolicy.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public HttpRoute.StatefulSessionAffinityPolicy build()| Returns | |
|---|---|
| Type | Description |
HttpRoute.StatefulSessionAffinityPolicy |
|
buildPartial()
public HttpRoute.StatefulSessionAffinityPolicy buildPartial()| Returns | |
|---|---|
| Type | Description |
HttpRoute.StatefulSessionAffinityPolicy |
|
clear()
public HttpRoute.StatefulSessionAffinityPolicy.Builder clear()| Returns | |
|---|---|
| Type | Description |
HttpRoute.StatefulSessionAffinityPolicy.Builder |
|
clearCookieTtl()
public HttpRoute.StatefulSessionAffinityPolicy.Builder clearCookieTtl()Required. The cookie TTL value for the Set-Cookie header generated by the data plane. The lifetime of the cookie may be set to a value from 0 to 86400 seconds (24 hours) inclusive.
Set this to 0s to use a session cookie and disable cookie expiration.
.google.protobuf.Duration cookie_ttl = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
HttpRoute.StatefulSessionAffinityPolicy.Builder |
|
getCookieTtl()
public Duration getCookieTtl()Required. The cookie TTL value for the Set-Cookie header generated by the data plane. The lifetime of the cookie may be set to a value from 0 to 86400 seconds (24 hours) inclusive.
Set this to 0s to use a session cookie and disable cookie expiration.
.google.protobuf.Duration cookie_ttl = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Duration |
The cookieTtl. |
getCookieTtlBuilder()
public Duration.Builder getCookieTtlBuilder()Required. The cookie TTL value for the Set-Cookie header generated by the data plane. The lifetime of the cookie may be set to a value from 0 to 86400 seconds (24 hours) inclusive.
Set this to 0s to use a session cookie and disable cookie expiration.
.google.protobuf.Duration cookie_ttl = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCookieTtlOrBuilder()
public DurationOrBuilder getCookieTtlOrBuilder()Required. The cookie TTL value for the Set-Cookie header generated by the data plane. The lifetime of the cookie may be set to a value from 0 to 86400 seconds (24 hours) inclusive.
Set this to 0s to use a session cookie and disable cookie expiration.
.google.protobuf.Duration cookie_ttl = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DurationOrBuilder |
|
getDefaultInstanceForType()
public HttpRoute.StatefulSessionAffinityPolicy getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
HttpRoute.StatefulSessionAffinityPolicy |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
hasCookieTtl()
public boolean hasCookieTtl()Required. The cookie TTL value for the Set-Cookie header generated by the data plane. The lifetime of the cookie may be set to a value from 0 to 86400 seconds (24 hours) inclusive.
Set this to 0s to use a session cookie and disable cookie expiration.
.google.protobuf.Duration cookie_ttl = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the cookieTtl field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCookieTtl(Duration value)
public HttpRoute.StatefulSessionAffinityPolicy.Builder mergeCookieTtl(Duration value)Required. The cookie TTL value for the Set-Cookie header generated by the data plane. The lifetime of the cookie may be set to a value from 0 to 86400 seconds (24 hours) inclusive.
Set this to 0s to use a session cookie and disable cookie expiration.
.google.protobuf.Duration cookie_ttl = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
HttpRoute.StatefulSessionAffinityPolicy.Builder |
|
mergeFrom(HttpRoute.StatefulSessionAffinityPolicy other)
public HttpRoute.StatefulSessionAffinityPolicy.Builder mergeFrom(HttpRoute.StatefulSessionAffinityPolicy other)| Parameter | |
|---|---|
| Name | Description |
other |
HttpRoute.StatefulSessionAffinityPolicy |
| Returns | |
|---|---|
| Type | Description |
HttpRoute.StatefulSessionAffinityPolicy.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public HttpRoute.StatefulSessionAffinityPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
HttpRoute.StatefulSessionAffinityPolicy.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public HttpRoute.StatefulSessionAffinityPolicy.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
HttpRoute.StatefulSessionAffinityPolicy.Builder |
|
setCookieTtl(Duration value)
public HttpRoute.StatefulSessionAffinityPolicy.Builder setCookieTtl(Duration value)Required. The cookie TTL value for the Set-Cookie header generated by the data plane. The lifetime of the cookie may be set to a value from 0 to 86400 seconds (24 hours) inclusive.
Set this to 0s to use a session cookie and disable cookie expiration.
.google.protobuf.Duration cookie_ttl = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
HttpRoute.StatefulSessionAffinityPolicy.Builder |
|
setCookieTtl(Duration.Builder builderForValue)
public HttpRoute.StatefulSessionAffinityPolicy.Builder setCookieTtl(Duration.Builder builderForValue)Required. The cookie TTL value for the Set-Cookie header generated by the data plane. The lifetime of the cookie may be set to a value from 0 to 86400 seconds (24 hours) inclusive.
Set this to 0s to use a session cookie and disable cookie expiration.
.google.protobuf.Duration cookie_ttl = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
HttpRoute.StatefulSessionAffinityPolicy.Builder |
|