Class Probe.HttpHeader.Builder (3.84.0)

public static final class Probe.HttpHeader.Builder extends GeneratedMessage.Builder<Probe.HttpHeader.Builder> implements Probe.HttpHeaderOrBuilder

HttpHeader describes a custom header to be used in HTTP probes

Protobuf type google.cloud.aiplatform.v1beta1.Probe.HttpHeader

Static Methods

getDescriptor()

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

Methods

build()

public Probe.HttpHeader build()
Returns
Type Description
Probe.HttpHeader

buildPartial()

public Probe.HttpHeader buildPartial()
Returns
Type Description
Probe.HttpHeader

clear()

public Probe.HttpHeader.Builder clear()
Returns
Type Description
Probe.HttpHeader.Builder
Overrides

clearName()

public Probe.HttpHeader.Builder clearName()

The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header.

string name = 1;

Returns
Type Description
Probe.HttpHeader.Builder

This builder for chaining.

clearValue()

public Probe.HttpHeader.Builder clearValue()

The header field value

string value = 2;

Returns
Type Description
Probe.HttpHeader.Builder

This builder for chaining.

getDefaultInstanceForType()

public Probe.HttpHeader getDefaultInstanceForType()
Returns
Type Description
Probe.HttpHeader

getDescriptorForType()

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

getName()

public String getName()

The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getValue()

public String getValue()

The header field value

string value = 2;

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

The header field value

string value = 2;

Returns
Type Description
ByteString

The bytes for value.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Probe.HttpHeader other)

public Probe.HttpHeader.Builder mergeFrom(Probe.HttpHeader other)
Parameter
Name Description
other Probe.HttpHeader
Returns
Type Description
Probe.HttpHeader.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Probe.HttpHeader.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Probe.HttpHeader.Builder
Overrides

setName(String value)

public Probe.HttpHeader.Builder setName(String value)

The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Probe.HttpHeader.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Probe.HttpHeader.Builder setNameBytes(ByteString value)

The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Probe.HttpHeader.Builder

This builder for chaining.

setValue(String value)

public Probe.HttpHeader.Builder setValue(String value)

The header field value

string value = 2;

Parameter
Name Description
value String

The value to set.

Returns
Type Description
Probe.HttpHeader.Builder

This builder for chaining.

setValueBytes(ByteString value)

public Probe.HttpHeader.Builder setValueBytes(ByteString value)

The header field value

string value = 2;

Parameter
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
Probe.HttpHeader.Builder

This builder for chaining.