Class ConsistentHashLoadBalancerSettingsHttpCookie.Builder (1.37.0)

public static final class ConsistentHashLoadBalancerSettingsHttpCookie.Builder extends GeneratedMessageV3.Builder<ConsistentHashLoadBalancerSettingsHttpCookie.Builder> implements ConsistentHashLoadBalancerSettingsHttpCookieOrBuilder

The information about the HTTP Cookie on which the hash function is based for load balancing policies that use a consistent hash.

Protobuf type google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ConsistentHashLoadBalancerSettingsHttpCookie build()
Returns
TypeDescription
ConsistentHashLoadBalancerSettingsHttpCookie

buildPartial()

public ConsistentHashLoadBalancerSettingsHttpCookie buildPartial()
Returns
TypeDescription
ConsistentHashLoadBalancerSettingsHttpCookie

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public ConsistentHashLoadBalancerSettingsHttpCookie.Builder clearName()

Name of the cookie.

optional string name = 3373707;

Returns
TypeDescription
ConsistentHashLoadBalancerSettingsHttpCookie.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPath()

public ConsistentHashLoadBalancerSettingsHttpCookie.Builder clearPath()

Path to set for the cookie.

optional string path = 3433509;

Returns
TypeDescription
ConsistentHashLoadBalancerSettingsHttpCookie.Builder

This builder for chaining.

clearTtl()

public ConsistentHashLoadBalancerSettingsHttpCookie.Builder clearTtl()

Lifetime of the cookie.

optional .google.cloud.compute.v1.Duration ttl = 115180;

Returns
TypeDescription
ConsistentHashLoadBalancerSettingsHttpCookie.Builder

clone()

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

getDefaultInstanceForType()

public ConsistentHashLoadBalancerSettingsHttpCookie getDefaultInstanceForType()
Returns
TypeDescription
ConsistentHashLoadBalancerSettingsHttpCookie

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Name of the cookie.

optional string name = 3373707;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the cookie.

optional string name = 3373707;

Returns
TypeDescription
ByteString

The bytes for name.

getPath()

public String getPath()

Path to set for the cookie.

optional string path = 3433509;

Returns
TypeDescription
String

The path.

getPathBytes()

public ByteString getPathBytes()

Path to set for the cookie.

optional string path = 3433509;

Returns
TypeDescription
ByteString

The bytes for path.

getTtl()

public Duration getTtl()

Lifetime of the cookie.

optional .google.cloud.compute.v1.Duration ttl = 115180;

Returns
TypeDescription
Duration

The ttl.

getTtlBuilder()

public Duration.Builder getTtlBuilder()

Lifetime of the cookie.

optional .google.cloud.compute.v1.Duration ttl = 115180;

Returns
TypeDescription
Duration.Builder

getTtlOrBuilder()

public DurationOrBuilder getTtlOrBuilder()

Lifetime of the cookie.

optional .google.cloud.compute.v1.Duration ttl = 115180;

Returns
TypeDescription
DurationOrBuilder

hasName()

public boolean hasName()

Name of the cookie.

optional string name = 3373707;

Returns
TypeDescription
boolean

Whether the name field is set.

hasPath()

public boolean hasPath()

Path to set for the cookie.

optional string path = 3433509;

Returns
TypeDescription
boolean

Whether the path field is set.

hasTtl()

public boolean hasTtl()

Lifetime of the cookie.

optional .google.cloud.compute.v1.Duration ttl = 115180;

Returns
TypeDescription
boolean

Whether the ttl field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ConsistentHashLoadBalancerSettingsHttpCookie other)

public ConsistentHashLoadBalancerSettingsHttpCookie.Builder mergeFrom(ConsistentHashLoadBalancerSettingsHttpCookie other)
Parameter
NameDescription
otherConsistentHashLoadBalancerSettingsHttpCookie
Returns
TypeDescription
ConsistentHashLoadBalancerSettingsHttpCookie.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTtl(Duration value)

public ConsistentHashLoadBalancerSettingsHttpCookie.Builder mergeTtl(Duration value)

Lifetime of the cookie.

optional .google.cloud.compute.v1.Duration ttl = 115180;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
ConsistentHashLoadBalancerSettingsHttpCookie.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public ConsistentHashLoadBalancerSettingsHttpCookie.Builder setName(String value)

Name of the cookie.

optional string name = 3373707;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ConsistentHashLoadBalancerSettingsHttpCookie.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ConsistentHashLoadBalancerSettingsHttpCookie.Builder setNameBytes(ByteString value)

Name of the cookie.

optional string name = 3373707;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ConsistentHashLoadBalancerSettingsHttpCookie.Builder

This builder for chaining.

setPath(String value)

public ConsistentHashLoadBalancerSettingsHttpCookie.Builder setPath(String value)

Path to set for the cookie.

optional string path = 3433509;

Parameter
NameDescription
valueString

The path to set.

Returns
TypeDescription
ConsistentHashLoadBalancerSettingsHttpCookie.Builder

This builder for chaining.

setPathBytes(ByteString value)

public ConsistentHashLoadBalancerSettingsHttpCookie.Builder setPathBytes(ByteString value)

Path to set for the cookie.

optional string path = 3433509;

Parameter
NameDescription
valueByteString

The bytes for path to set.

Returns
TypeDescription
ConsistentHashLoadBalancerSettingsHttpCookie.Builder

This builder for chaining.

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

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

setTtl(Duration value)

public ConsistentHashLoadBalancerSettingsHttpCookie.Builder setTtl(Duration value)

Lifetime of the cookie.

optional .google.cloud.compute.v1.Duration ttl = 115180;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
ConsistentHashLoadBalancerSettingsHttpCookie.Builder

setTtl(Duration.Builder builderForValue)

public ConsistentHashLoadBalancerSettingsHttpCookie.Builder setTtl(Duration.Builder builderForValue)

Lifetime of the cookie.

optional .google.cloud.compute.v1.Duration ttl = 115180;

Parameter
NameDescription
builderForValueDuration.Builder
Returns
TypeDescription
ConsistentHashLoadBalancerSettingsHttpCookie.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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