Class HttpOptions.Builder (2.49.0)

public static final class HttpOptions.Builder extends GeneratedMessageV3.Builder<HttpOptions.Builder> implements HttpOptionsOrBuilder

Options for sending requests to add-on HTTP endpoints

Protobuf type google.apps.script.type.HttpOptions

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public HttpOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
HttpOptions.Builder
Overrides

build()

public HttpOptions build()
Returns
Type Description
HttpOptions

buildPartial()

public HttpOptions buildPartial()
Returns
Type Description
HttpOptions

clear()

public HttpOptions.Builder clear()
Returns
Type Description
HttpOptions.Builder
Overrides

clearAuthorizationHeader()

public HttpOptions.Builder clearAuthorizationHeader()

Configuration for the token sent in the HTTP Authorization header

.google.apps.script.type.HttpAuthorizationHeader authorization_header = 1;

Returns
Type Description
HttpOptions.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public HttpOptions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
HttpOptions.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public HttpOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
HttpOptions.Builder
Overrides

clone()

public HttpOptions.Builder clone()
Returns
Type Description
HttpOptions.Builder
Overrides

getAuthorizationHeader()

public HttpAuthorizationHeader getAuthorizationHeader()

Configuration for the token sent in the HTTP Authorization header

.google.apps.script.type.HttpAuthorizationHeader authorization_header = 1;

Returns
Type Description
HttpAuthorizationHeader

The authorizationHeader.

getAuthorizationHeaderValue()

public int getAuthorizationHeaderValue()

Configuration for the token sent in the HTTP Authorization header

.google.apps.script.type.HttpAuthorizationHeader authorization_header = 1;

Returns
Type Description
int

The enum numeric value on the wire for authorizationHeader.

getDefaultInstanceForType()

public HttpOptions getDefaultInstanceForType()
Returns
Type Description
HttpOptions

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(HttpOptions other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HttpOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
HttpOptions.Builder
Overrides

setAuthorizationHeader(HttpAuthorizationHeader value)

public HttpOptions.Builder setAuthorizationHeader(HttpAuthorizationHeader value)

Configuration for the token sent in the HTTP Authorization header

.google.apps.script.type.HttpAuthorizationHeader authorization_header = 1;

Parameter
Name Description
value HttpAuthorizationHeader

The authorizationHeader to set.

Returns
Type Description
HttpOptions.Builder

This builder for chaining.

setAuthorizationHeaderValue(int value)

public HttpOptions.Builder setAuthorizationHeaderValue(int value)

Configuration for the token sent in the HTTP Authorization header

.google.apps.script.type.HttpAuthorizationHeader authorization_header = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for authorizationHeader to set.

Returns
Type Description
HttpOptions.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public HttpOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
HttpOptions.Builder
Overrides

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

public HttpOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
HttpOptions.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final HttpOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
HttpOptions.Builder
Overrides