Class Subscription.DriveOptions.Builder (0.47.0)

public static final class Subscription.DriveOptions.Builder extends GeneratedMessage.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

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

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.

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 GeneratedMessage.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

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.