Send feedback
Class Subscription.DriveOptions.Builder (0.31.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Subscription . DriveOptions . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public Subscription . DriveOptions build ()
buildPartial()
public Subscription . DriveOptions buildPartial ()
clear()
public Subscription . DriveOptions . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Subscription . DriveOptions . Builder clearField ( Descriptors . FieldDescriptor field )
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public Subscription . DriveOptions . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clone()
public Subscription . DriveOptions . Builder clone ()
Overrides
getDefaultInstanceForType()
public Subscription . DriveOptions getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(Subscription.DriveOptions other)
public Subscription . DriveOptions . Builder mergeFrom ( Subscription . DriveOptions other )
public Subscription . DriveOptions . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public Subscription . DriveOptions . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Subscription . DriveOptions . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Subscription . DriveOptions . Builder setField ( Descriptors . FieldDescriptor field , Object value )
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.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Subscription . DriveOptions . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Subscription . DriveOptions . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-02 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-02 UTC."],[],[]]