Class HttpRoute.StatefulSessionAffinityPolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<HttpRoute.StatefulSessionAffinityPolicy.Builder>
com.google.cloud.networkservices.v1.HttpRoute.StatefulSessionAffinityPolicy.Builder
- All Implemented Interfaces:
HttpRoute.StatefulSessionAffinityPolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- HttpRoute.StatefulSessionAffinityPolicy
public static final class HttpRoute.StatefulSessionAffinityPolicy.Builder
extends com.google.protobuf.GeneratedMessage.Builder<HttpRoute.StatefulSessionAffinityPolicy.Builder>
implements HttpRoute.StatefulSessionAffinityPolicyOrBuilder
The 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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.com.google.protobuf.DurationRequired.com.google.protobuf.Duration.BuilderRequired.com.google.protobuf.DurationOrBuilderRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCookieTtl(com.google.protobuf.Duration value) Required.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setCookieTtl(com.google.protobuf.Duration value) Required.setCookieTtl(com.google.protobuf.Duration.Builder builderForValue) Required.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<HttpRoute.StatefulSessionAffinityPolicy.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<HttpRoute.StatefulSessionAffinityPolicy.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<HttpRoute.StatefulSessionAffinityPolicy.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<HttpRoute.StatefulSessionAffinityPolicy.Builder>
-
mergeFrom
public HttpRoute.StatefulSessionAffinityPolicy.Builder mergeFrom(HttpRoute.StatefulSessionAffinityPolicy other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<HttpRoute.StatefulSessionAffinityPolicy.Builder>
-
mergeFrom
public HttpRoute.StatefulSessionAffinityPolicy.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<HttpRoute.StatefulSessionAffinityPolicy.Builder>- Throws:
IOException
-
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];- Specified by:
hasCookieTtlin interfaceHttpRoute.StatefulSessionAffinityPolicyOrBuilder- Returns:
- Whether the cookieTtl field is set.
-
getCookieTtl
public com.google.protobuf.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];- Specified by:
getCookieTtlin interfaceHttpRoute.StatefulSessionAffinityPolicyOrBuilder- Returns:
- The cookieTtl.
-
setCookieTtl
public HttpRoute.StatefulSessionAffinityPolicy.Builder setCookieTtl(com.google.protobuf.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]; -
setCookieTtl
public HttpRoute.StatefulSessionAffinityPolicy.Builder setCookieTtl(com.google.protobuf.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]; -
mergeCookieTtl
public HttpRoute.StatefulSessionAffinityPolicy.Builder mergeCookieTtl(com.google.protobuf.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]; -
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]; -
getCookieTtlBuilder
public com.google.protobuf.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]; -
getCookieTtlOrBuilder
public com.google.protobuf.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];- Specified by:
getCookieTtlOrBuilderin interfaceHttpRoute.StatefulSessionAffinityPolicyOrBuilder
-