public static final class GrpcRoute.StatefulSessionAffinityPolicy.Builder extends GeneratedMessage.Builder<GrpcRoute.StatefulSessionAffinityPolicy.Builder> implements GrpcRoute.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.GrpcRoute.StatefulSessionAffinityPolicy
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GrpcRoute.StatefulSessionAffinityPolicy.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public GrpcRoute.StatefulSessionAffinityPolicy build()| Returns | |
|---|---|
| Type | Description |
GrpcRoute.StatefulSessionAffinityPolicy |
|
buildPartial()
public GrpcRoute.StatefulSessionAffinityPolicy buildPartial()| Returns | |
|---|---|
| Type | Description |
GrpcRoute.StatefulSessionAffinityPolicy |
|
clear()
public GrpcRoute.StatefulSessionAffinityPolicy.Builder clear()| Returns | |
|---|---|
| Type | Description |
GrpcRoute.StatefulSessionAffinityPolicy.Builder |
|
clearCookieTtl()
public GrpcRoute.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 |
GrpcRoute.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 GrpcRoute.StatefulSessionAffinityPolicy getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GrpcRoute.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 GrpcRoute.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 |
GrpcRoute.StatefulSessionAffinityPolicy.Builder |
|
mergeFrom(GrpcRoute.StatefulSessionAffinityPolicy other)
public GrpcRoute.StatefulSessionAffinityPolicy.Builder mergeFrom(GrpcRoute.StatefulSessionAffinityPolicy other)| Parameter | |
|---|---|
| Name | Description |
other |
GrpcRoute.StatefulSessionAffinityPolicy |
| Returns | |
|---|---|
| Type | Description |
GrpcRoute.StatefulSessionAffinityPolicy.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GrpcRoute.StatefulSessionAffinityPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GrpcRoute.StatefulSessionAffinityPolicy.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GrpcRoute.StatefulSessionAffinityPolicy.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GrpcRoute.StatefulSessionAffinityPolicy.Builder |
|
setCookieTtl(Duration value)
public GrpcRoute.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 |
GrpcRoute.StatefulSessionAffinityPolicy.Builder |
|
setCookieTtl(Duration.Builder builderForValue)
public GrpcRoute.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 |
GrpcRoute.StatefulSessionAffinityPolicy.Builder |
|