public static final class HttpTarget.Header.Builder extends GeneratedMessageV3.Builder<HttpTarget.Header.Builder> implements HttpTarget.HeaderOrBuilder
Defines a header message. A header can have a key and a value.
Protobuf type google.cloud.tasks.v2beta3.HttpTarget.Header
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public HttpTarget.Header.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public HttpTarget.Header build()
public HttpTarget.Header buildPartial()
public HttpTarget.Header.Builder clear()
Overrides
public HttpTarget.Header.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public HttpTarget.Header.Builder clearKey()
The Key of the header.
string key = 1;
public HttpTarget.Header.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public HttpTarget.Header.Builder clearValue()
The Value of the header.
string value = 2;
public HttpTarget.Header.Builder clone()
Overrides
public HttpTarget.Header getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
The Key of the header.
string key = 1;
Returns |
Type |
Description |
String |
The key.
|
public ByteString getKeyBytes()
The Key of the header.
string key = 1;
Returns |
Type |
Description |
ByteString |
The bytes for key.
|
The Value of the header.
string value = 2;
Returns |
Type |
Description |
String |
The value.
|
public ByteString getValueBytes()
The Value of the header.
string value = 2;
Returns |
Type |
Description |
ByteString |
The bytes for value.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public HttpTarget.Header.Builder mergeFrom(HttpTarget.Header other)
public HttpTarget.Header.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public HttpTarget.Header.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final HttpTarget.Header.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public HttpTarget.Header.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public HttpTarget.Header.Builder setKey(String value)
The Key of the header.
string key = 1;
Parameter |
Name |
Description |
value |
String
The key to set.
|
public HttpTarget.Header.Builder setKeyBytes(ByteString value)
The Key of the header.
string key = 1;
Parameter |
Name |
Description |
value |
ByteString
The bytes for key to set.
|
public HttpTarget.Header.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final HttpTarget.Header.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
public HttpTarget.Header.Builder setValue(String value)
The Value of the header.
string value = 2;
Parameter |
Name |
Description |
value |
String
The value to set.
|
public HttpTarget.Header.Builder setValueBytes(ByteString value)
The Value of the header.
string value = 2;
Parameter |
Name |
Description |
value |
ByteString
The bytes for value to set.
|