Class HttpOptions.Builder (2.9.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public HttpOptions build()
Returns
TypeDescription
HttpOptions

buildPartial()

public HttpOptions buildPartial()
Returns
TypeDescription
HttpOptions

clear()

public HttpOptions.Builder clear()
Returns
TypeDescription
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
TypeDescription
HttpOptions.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public HttpOptions.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for authorizationHeader.

getDefaultInstanceForType()

public HttpOptions getDefaultInstanceForType()
Returns
TypeDescription
HttpOptions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(HttpOptions other)

public HttpOptions.Builder mergeFrom(HttpOptions other)
Parameter
NameDescription
otherHttpOptions
Returns
TypeDescription
HttpOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HttpOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueHttpAuthorizationHeader

The authorizationHeader to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
HttpOptions.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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