Send feedback
Class HttpTarget.Header.Builder (2.52.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.52.0 keyboard_arrow_down
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.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]