Class DriveExtensionPoint.Builder (2.3.4)

public static final class DriveExtensionPoint.Builder extends GeneratedMessageV3.Builder<DriveExtensionPoint.Builder> implements DriveExtensionPointOrBuilder

A generic extension point with common features, e.g. something that simply needs a corresponding run function to work.

Protobuf type google.apps.script.type.drive.DriveExtensionPoint

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DriveExtensionPoint build()
Returns
TypeDescription
DriveExtensionPoint

buildPartial()

public DriveExtensionPoint buildPartial()
Returns
TypeDescription
DriveExtensionPoint

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRunFunction()

public DriveExtensionPoint.Builder clearRunFunction()

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

string run_function = 1;

Returns
TypeDescription
DriveExtensionPoint.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public DriveExtensionPoint getDefaultInstanceForType()
Returns
TypeDescription
DriveExtensionPoint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DriveExtensionPoint other)

public DriveExtensionPoint.Builder mergeFrom(DriveExtensionPoint other)
Parameter
NameDescription
otherDriveExtensionPoint
Returns
TypeDescription
DriveExtensionPoint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setRunFunction(String value)

public DriveExtensionPoint.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
DriveExtensionPoint.Builder

This builder for chaining.

setRunFunctionBytes(ByteString value)

public DriveExtensionPoint.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
DriveExtensionPoint.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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