Class HomepageExtensionPoint.Builder (2.1.12)

public static final class HomepageExtensionPoint.Builder extends GeneratedMessageV3.Builder<HomepageExtensionPoint.Builder> implements HomepageExtensionPointOrBuilder

Common format for declaring an add-on's home-page view.

Protobuf type google.apps.script.type.HomepageExtensionPoint

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public HomepageExtensionPoint build()
Returns
TypeDescription
HomepageExtensionPoint

buildPartial()

public HomepageExtensionPoint buildPartial()
Returns
TypeDescription
HomepageExtensionPoint

clear()

public HomepageExtensionPoint.Builder clear()
Returns
TypeDescription
HomepageExtensionPoint.Builder
Overrides

clearEnabled()

public HomepageExtensionPoint.Builder clearEnabled()

Optional. If set to false, disable the home-page view in this context. Defaults to true if unset. If an add-ons custom home-page view is disabled, an autogenerated overview card will be provided for users instead.

.google.protobuf.BoolValue enabled = 2;

Returns
TypeDescription
HomepageExtensionPoint.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRunFunction()

public HomepageExtensionPoint.Builder clearRunFunction()

Required. The endpoint to execute when this extension point is activated.

string run_function = 1;

Returns
TypeDescription
HomepageExtensionPoint.Builder

This builder for chaining.

clone()

public HomepageExtensionPoint.Builder clone()
Returns
TypeDescription
HomepageExtensionPoint.Builder
Overrides

getDefaultInstanceForType()

public HomepageExtensionPoint getDefaultInstanceForType()
Returns
TypeDescription
HomepageExtensionPoint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnabled()

public BoolValue getEnabled()

Optional. If set to false, disable the home-page view in this context. Defaults to true if unset. If an add-ons custom home-page view is disabled, an autogenerated overview card will be provided for users instead.

.google.protobuf.BoolValue enabled = 2;

Returns
TypeDescription
BoolValue

The enabled.

getEnabledBuilder()

public BoolValue.Builder getEnabledBuilder()

Optional. If set to false, disable the home-page view in this context. Defaults to true if unset. If an add-ons custom home-page view is disabled, an autogenerated overview card will be provided for users instead.

.google.protobuf.BoolValue enabled = 2;

Returns
TypeDescription
Builder

getEnabledOrBuilder()

public BoolValueOrBuilder getEnabledOrBuilder()

Optional. If set to false, disable the home-page view in this context. Defaults to true if unset. If an add-ons custom home-page view is disabled, an autogenerated overview card will be provided for users instead.

.google.protobuf.BoolValue enabled = 2;

Returns
TypeDescription
BoolValueOrBuilder

getRunFunction()

public String getRunFunction()

Required. The endpoint to execute when this extension point is activated.

string run_function = 1;

Returns
TypeDescription
String

The runFunction.

getRunFunctionBytes()

public ByteString getRunFunctionBytes()

Required. The endpoint to execute when this extension point is activated.

string run_function = 1;

Returns
TypeDescription
ByteString

The bytes for runFunction.

hasEnabled()

public boolean hasEnabled()

Optional. If set to false, disable the home-page view in this context. Defaults to true if unset. If an add-ons custom home-page view is disabled, an autogenerated overview card will be provided for users instead.

.google.protobuf.BoolValue enabled = 2;

Returns
TypeDescription
boolean

Whether the enabled field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEnabled(BoolValue value)

public HomepageExtensionPoint.Builder mergeEnabled(BoolValue value)

Optional. If set to false, disable the home-page view in this context. Defaults to true if unset. If an add-ons custom home-page view is disabled, an autogenerated overview card will be provided for users instead.

.google.protobuf.BoolValue enabled = 2;

Parameter
NameDescription
valueBoolValue
Returns
TypeDescription
HomepageExtensionPoint.Builder

mergeFrom(HomepageExtensionPoint other)

public HomepageExtensionPoint.Builder mergeFrom(HomepageExtensionPoint other)
Parameter
NameDescription
otherHomepageExtensionPoint
Returns
TypeDescription
HomepageExtensionPoint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HomepageExtensionPoint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
HomepageExtensionPoint.Builder
Overrides

setEnabled(BoolValue value)

public HomepageExtensionPoint.Builder setEnabled(BoolValue value)

Optional. If set to false, disable the home-page view in this context. Defaults to true if unset. If an add-ons custom home-page view is disabled, an autogenerated overview card will be provided for users instead.

.google.protobuf.BoolValue enabled = 2;

Parameter
NameDescription
valueBoolValue
Returns
TypeDescription
HomepageExtensionPoint.Builder

setEnabled(BoolValue.Builder builderForValue)

public HomepageExtensionPoint.Builder setEnabled(BoolValue.Builder builderForValue)

Optional. If set to false, disable the home-page view in this context. Defaults to true if unset. If an add-ons custom home-page view is disabled, an autogenerated overview card will be provided for users instead.

.google.protobuf.BoolValue enabled = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
HomepageExtensionPoint.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setRunFunction(String value)

public HomepageExtensionPoint.Builder setRunFunction(String value)

Required. The endpoint to execute when this extension point is activated.

string run_function = 1;

Parameter
NameDescription
valueString

The runFunction to set.

Returns
TypeDescription
HomepageExtensionPoint.Builder

This builder for chaining.

setRunFunctionBytes(ByteString value)

public HomepageExtensionPoint.Builder setRunFunctionBytes(ByteString value)

Required. The endpoint to execute when this extension point is activated.

string run_function = 1;

Parameter
NameDescription
valueByteString

The bytes for runFunction to set.

Returns
TypeDescription
HomepageExtensionPoint.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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