Class Subscription.DriveOptions.Builder (0.31.0)

public static final class Subscription.DriveOptions.Builder extends GeneratedMessageV3.Builder<Subscription.DriveOptions.Builder> implements Subscription.DriveOptionsOrBuilder

Additional supported options for serving Drive events.

Protobuf type google.apps.events.subscriptions.v1beta.Subscription.DriveOptions

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Subscription.DriveOptions build()
Returns
Type Description
Subscription.DriveOptions

buildPartial()

public Subscription.DriveOptions buildPartial()
Returns
Type Description
Subscription.DriveOptions

clear()

public Subscription.DriveOptions.Builder clear()
Returns
Type Description
Subscription.DriveOptions.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearIncludeDescendants()

public Subscription.DriveOptions.Builder clearIncludeDescendants()

Optional. Immutable. Whether to include all the descendant Drive files in the list of events. If false, the subscription will be created for the single file/drive that is specified as the target_resource.

This flag can be used when the target_resource is either a Drive or a Drive file that has mimeType set to application/vnd.google-apps.folder.

bool include_descendants = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Subscription.DriveOptions.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Subscription.DriveOptions.Builder clone()
Returns
Type Description
Subscription.DriveOptions.Builder
Overrides

getDefaultInstanceForType()

public Subscription.DriveOptions getDefaultInstanceForType()
Returns
Type Description
Subscription.DriveOptions

getDescriptorForType()

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

getIncludeDescendants()

public boolean getIncludeDescendants()

Optional. Immutable. Whether to include all the descendant Drive files in the list of events. If false, the subscription will be created for the single file/drive that is specified as the target_resource.

This flag can be used when the target_resource is either a Drive or a Drive file that has mimeType set to application/vnd.google-apps.folder.

bool include_descendants = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

The includeDescendants.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Subscription.DriveOptions other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setIncludeDescendants(boolean value)

public Subscription.DriveOptions.Builder setIncludeDescendants(boolean value)

Optional. Immutable. Whether to include all the descendant Drive files in the list of events. If false, the subscription will be created for the single file/drive that is specified as the target_resource.

This flag can be used when the target_resource is either a Drive or a Drive file that has mimeType set to application/vnd.google-apps.folder.

bool include_descendants = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value boolean

The includeDescendants to set.

Returns
Type Description
Subscription.DriveOptions.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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