Class HttpOptions (2.9.0)

public final class HttpOptions extends GeneratedMessageV3 implements HttpOptionsOrBuilder

Options for sending requests to add-on HTTP endpoints

Protobuf type google.apps.script.type.HttpOptions

Static Fields

AUTHORIZATION_HEADER_FIELD_NUMBER

public static final int AUTHORIZATION_HEADER_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static HttpOptions getDefaultInstance()
Returns
TypeDescription
HttpOptions

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static HttpOptions.Builder newBuilder()
Returns
TypeDescription
HttpOptions.Builder

newBuilder(HttpOptions prototype)

public static HttpOptions.Builder newBuilder(HttpOptions prototype)
Parameter
NameDescription
prototypeHttpOptions
Returns
TypeDescription
HttpOptions.Builder

parseDelimitedFrom(InputStream input)

public static HttpOptions parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
HttpOptions
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpOptions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HttpOptions
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static HttpOptions parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
HttpOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static HttpOptions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HttpOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static HttpOptions parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
HttpOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static HttpOptions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HttpOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static HttpOptions parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
HttpOptions
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpOptions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HttpOptions
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static HttpOptions parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
HttpOptions
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpOptions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HttpOptions
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static HttpOptions parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
HttpOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static HttpOptions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HttpOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<HttpOptions> parser()
Returns
TypeDescription
Parser<HttpOptions>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

getParserForType()

public Parser<HttpOptions> getParserForType()
Returns
TypeDescription
Parser<HttpOptions>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public HttpOptions.Builder newBuilderForType()
Returns
TypeDescription
HttpOptions.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected HttpOptions.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
HttpOptions.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public HttpOptions.Builder toBuilder()
Returns
TypeDescription
HttpOptions.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException