public static final class PayloadOptions.Builder extends GeneratedMessageV3.Builder<PayloadOptions.Builder> implements PayloadOptionsOrBuilder
Options about what data to include in the event payload. Only supported for
Google Chat events.
Protobuf type google.apps.events.subscriptions.v1.PayloadOptions
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 PayloadOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public PayloadOptions build()
buildPartial()
public PayloadOptions buildPartial()
clear()
public PayloadOptions.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public PayloadOptions.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearFieldMask()
public PayloadOptions.Builder clearFieldMask()
Optional. If include_resource
is set to true
, the list of fields to
include in the event payload. Separate fields with a comma. For example, to
include a Google Chat message's sender and create time, enter
message.sender,message.createTime
. If omitted, the payload includes all
fields for the resource.
If you specify a field that doesn't exist for the resource, the system
ignores the field.
.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
clearIncludeResource()
public PayloadOptions.Builder clearIncludeResource()
Optional. Whether the event payload includes data about the resource that
changed. For example, for an event where a Google Chat message was created,
whether the payload contains data about the
Message
resource. If false, the event payload only includes the name of the changed
resource.
bool include_resource = 1 [(.google.api.field_behavior) = OPTIONAL];
clearOneof(Descriptors.OneofDescriptor oneof)
public PayloadOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public PayloadOptions.Builder clone()
Overrides
getDefaultInstanceForType()
public PayloadOptions getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getFieldMask()
public FieldMask getFieldMask()
Optional. If include_resource
is set to true
, the list of fields to
include in the event payload. Separate fields with a comma. For example, to
include a Google Chat message's sender and create time, enter
message.sender,message.createTime
. If omitted, the payload includes all
fields for the resource.
If you specify a field that doesn't exist for the resource, the system
ignores the field.
.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
---|
Type | Description |
FieldMask | The fieldMask.
|
getFieldMaskBuilder()
public FieldMask.Builder getFieldMaskBuilder()
Optional. If include_resource
is set to true
, the list of fields to
include in the event payload. Separate fields with a comma. For example, to
include a Google Chat message's sender and create time, enter
message.sender,message.createTime
. If omitted, the payload includes all
fields for the resource.
If you specify a field that doesn't exist for the resource, the system
ignores the field.
.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
getFieldMaskOrBuilder()
public FieldMaskOrBuilder getFieldMaskOrBuilder()
Optional. If include_resource
is set to true
, the list of fields to
include in the event payload. Separate fields with a comma. For example, to
include a Google Chat message's sender and create time, enter
message.sender,message.createTime
. If omitted, the payload includes all
fields for the resource.
If you specify a field that doesn't exist for the resource, the system
ignores the field.
.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
getIncludeResource()
public boolean getIncludeResource()
Optional. Whether the event payload includes data about the resource that
changed. For example, for an event where a Google Chat message was created,
whether the payload contains data about the
Message
resource. If false, the event payload only includes the name of the changed
resource.
bool include_resource = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
---|
Type | Description |
boolean | The includeResource.
|
hasFieldMask()
public boolean hasFieldMask()
Optional. If include_resource
is set to true
, the list of fields to
include in the event payload. Separate fields with a comma. For example, to
include a Google Chat message's sender and create time, enter
message.sender,message.createTime
. If omitted, the payload includes all
fields for the resource.
If you specify a field that doesn't exist for the resource, the system
ignores the field.
.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
---|
Type | Description |
boolean | Whether the fieldMask field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFieldMask(FieldMask value)
public PayloadOptions.Builder mergeFieldMask(FieldMask value)
Optional. If include_resource
is set to true
, the list of fields to
include in the event payload. Separate fields with a comma. For example, to
include a Google Chat message's sender and create time, enter
message.sender,message.createTime
. If omitted, the payload includes all
fields for the resource.
If you specify a field that doesn't exist for the resource, the system
ignores the field.
.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
mergeFrom(PayloadOptions other)
public PayloadOptions.Builder mergeFrom(PayloadOptions other)
public PayloadOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public PayloadOptions.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PayloadOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public PayloadOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setFieldMask(FieldMask value)
public PayloadOptions.Builder setFieldMask(FieldMask value)
Optional. If include_resource
is set to true
, the list of fields to
include in the event payload. Separate fields with a comma. For example, to
include a Google Chat message's sender and create time, enter
message.sender,message.createTime
. If omitted, the payload includes all
fields for the resource.
If you specify a field that doesn't exist for the resource, the system
ignores the field.
.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
setFieldMask(FieldMask.Builder builderForValue)
public PayloadOptions.Builder setFieldMask(FieldMask.Builder builderForValue)
Optional. If include_resource
is set to true
, the list of fields to
include in the event payload. Separate fields with a comma. For example, to
include a Google Chat message's sender and create time, enter
message.sender,message.createTime
. If omitted, the payload includes all
fields for the resource.
If you specify a field that doesn't exist for the resource, the system
ignores the field.
.google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
---|
Name | Description |
builderForValue | Builder
|
setIncludeResource(boolean value)
public PayloadOptions.Builder setIncludeResource(boolean value)
Optional. Whether the event payload includes data about the resource that
changed. For example, for an event where a Google Chat message was created,
whether the payload contains data about the
Message
resource. If false, the event payload only includes the name of the changed
resource.
bool include_resource = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
---|
Name | Description |
value | boolean
The includeResource to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PayloadOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PayloadOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides