Class PushConfig.NoWrapper.Builder (1.132.0)

public static final class PushConfig.NoWrapper.Builder extends GeneratedMessageV3.Builder<PushConfig.NoWrapper.Builder> implements PushConfig.NoWrapperOrBuilder

Sets the data field as the HTTP body for delivery.

Protobuf type google.pubsub.v1.PushConfig.NoWrapper

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PushConfig.NoWrapper build()
Returns
Type Description
PushConfig.NoWrapper

buildPartial()

public PushConfig.NoWrapper buildPartial()
Returns
Type Description
PushConfig.NoWrapper

clear()

public PushConfig.NoWrapper.Builder clear()
Returns
Type Description
PushConfig.NoWrapper.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public PushConfig.NoWrapper.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PushConfig.NoWrapper.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PushConfig.NoWrapper.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PushConfig.NoWrapper.Builder
Overrides

clearWriteMetadata()

public PushConfig.NoWrapper.Builder clearWriteMetadata()

Optional. When true, writes the Pub/Sub message metadata to x-goog-pubsub-<KEY>:<VAL> headers of the HTTP request. Writes the Pub/Sub message attributes to <KEY>:<VAL> headers of the HTTP request.

bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PushConfig.NoWrapper.Builder

This builder for chaining.

clone()

public PushConfig.NoWrapper.Builder clone()
Returns
Type Description
PushConfig.NoWrapper.Builder
Overrides

getDefaultInstanceForType()

public PushConfig.NoWrapper getDefaultInstanceForType()
Returns
Type Description
PushConfig.NoWrapper

getDescriptorForType()

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

getWriteMetadata()

public boolean getWriteMetadata()

Optional. When true, writes the Pub/Sub message metadata to x-goog-pubsub-<KEY>:<VAL> headers of the HTTP request. Writes the Pub/Sub message attributes to <KEY>:<VAL> headers of the HTTP request.

bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The writeMetadata.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public PushConfig.NoWrapper.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PushConfig.NoWrapper.Builder
Overrides

mergeFrom(PushConfig.NoWrapper other)

public PushConfig.NoWrapper.Builder mergeFrom(PushConfig.NoWrapper other)
Parameter
Name Description
other PushConfig.NoWrapper
Returns
Type Description
PushConfig.NoWrapper.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PushConfig.NoWrapper.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PushConfig.NoWrapper.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final PushConfig.NoWrapper.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PushConfig.NoWrapper.Builder
Overrides

setWriteMetadata(boolean value)

public PushConfig.NoWrapper.Builder setWriteMetadata(boolean value)

Optional. When true, writes the Pub/Sub message metadata to x-goog-pubsub-<KEY>:<VAL> headers of the HTTP request. Writes the Pub/Sub message attributes to <KEY>:<VAL> headers of the HTTP request.

bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The writeMetadata to set.

Returns
Type Description
PushConfig.NoWrapper.Builder

This builder for chaining.