Class PushConfig.NoWrapper.Builder (1.126.6)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PushConfig.NoWrapper.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PushConfig.NoWrapper.Builder
Overrides

build()

public PushConfig.NoWrapper build()
Returns
TypeDescription
PushConfig.NoWrapper

buildPartial()

public PushConfig.NoWrapper buildPartial()
Returns
TypeDescription
PushConfig.NoWrapper

clear()

public PushConfig.NoWrapper.Builder clear()
Returns
TypeDescription
PushConfig.NoWrapper.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public PushConfig.NoWrapper.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PushConfig.NoWrapper.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PushConfig.NoWrapper.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
PushConfig.NoWrapper.Builder

This builder for chaining.

clone()

public PushConfig.NoWrapper.Builder clone()
Returns
TypeDescription
PushConfig.NoWrapper.Builder
Overrides

getDefaultInstanceForType()

public PushConfig.NoWrapper getDefaultInstanceForType()
Returns
TypeDescription
PushConfig.NoWrapper

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
boolean

The writeMetadata.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PushConfig.NoWrapper.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PushConfig.NoWrapper.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PushConfig.NoWrapper.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PushConfig.NoWrapper.Builder
Overrides

mergeFrom(PushConfig.NoWrapper other)

public PushConfig.NoWrapper.Builder mergeFrom(PushConfig.NoWrapper other)
Parameter
NameDescription
otherPushConfig.NoWrapper
Returns
TypeDescription
PushConfig.NoWrapper.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PushConfig.NoWrapper.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PushConfig.NoWrapper.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public PushConfig.NoWrapper.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PushConfig.NoWrapper.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PushConfig.NoWrapper.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The writeMetadata to set.

Returns
TypeDescription
PushConfig.NoWrapper.Builder

This builder for chaining.