Class Pipeline.MessagePayloadFormat.Builder (1.55.0)

public static final class Pipeline.MessagePayloadFormat.Builder extends GeneratedMessageV3.Builder<Pipeline.MessagePayloadFormat.Builder> implements Pipeline.MessagePayloadFormatOrBuilder

Represents the format of message data.

Protobuf type google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Pipeline.MessagePayloadFormat build()
Returns
Type Description
Pipeline.MessagePayloadFormat

buildPartial()

public Pipeline.MessagePayloadFormat buildPartial()
Returns
Type Description
Pipeline.MessagePayloadFormat

clear()

public Pipeline.MessagePayloadFormat.Builder clear()
Returns
Type Description
Pipeline.MessagePayloadFormat.Builder
Overrides

clearAvro()

public Pipeline.MessagePayloadFormat.Builder clearAvro()

Optional. Avro format.

.google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.AvroFormat avro = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Pipeline.MessagePayloadFormat.Builder

clearField(Descriptors.FieldDescriptor field)

public Pipeline.MessagePayloadFormat.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Pipeline.MessagePayloadFormat.Builder
Overrides

clearJson()

public Pipeline.MessagePayloadFormat.Builder clearJson()

Optional. JSON format.

.google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.JsonFormat json = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Pipeline.MessagePayloadFormat.Builder

clearKind()

public Pipeline.MessagePayloadFormat.Builder clearKind()
Returns
Type Description
Pipeline.MessagePayloadFormat.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Pipeline.MessagePayloadFormat.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Pipeline.MessagePayloadFormat.Builder
Overrides

clearProtobuf()

public Pipeline.MessagePayloadFormat.Builder clearProtobuf()

Optional. Protobuf format.

.google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.ProtobufFormat protobuf = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Pipeline.MessagePayloadFormat.Builder

clone()

public Pipeline.MessagePayloadFormat.Builder clone()
Returns
Type Description
Pipeline.MessagePayloadFormat.Builder
Overrides

getAvro()

public Pipeline.MessagePayloadFormat.AvroFormat getAvro()

Optional. Avro format.

.google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.AvroFormat avro = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Pipeline.MessagePayloadFormat.AvroFormat

The avro.

getAvroBuilder()

public Pipeline.MessagePayloadFormat.AvroFormat.Builder getAvroBuilder()

Optional. Avro format.

.google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.AvroFormat avro = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Pipeline.MessagePayloadFormat.AvroFormat.Builder

getAvroOrBuilder()

public Pipeline.MessagePayloadFormat.AvroFormatOrBuilder getAvroOrBuilder()

Optional. Avro format.

.google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.AvroFormat avro = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Pipeline.MessagePayloadFormat.AvroFormatOrBuilder

getDefaultInstanceForType()

public Pipeline.MessagePayloadFormat getDefaultInstanceForType()
Returns
Type Description
Pipeline.MessagePayloadFormat

getDescriptorForType()

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

getJson()

public Pipeline.MessagePayloadFormat.JsonFormat getJson()

Optional. JSON format.

.google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.JsonFormat json = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Pipeline.MessagePayloadFormat.JsonFormat

The json.

getJsonBuilder()

public Pipeline.MessagePayloadFormat.JsonFormat.Builder getJsonBuilder()

Optional. JSON format.

.google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.JsonFormat json = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Pipeline.MessagePayloadFormat.JsonFormat.Builder

getJsonOrBuilder()

public Pipeline.MessagePayloadFormat.JsonFormatOrBuilder getJsonOrBuilder()

Optional. JSON format.

.google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.JsonFormat json = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Pipeline.MessagePayloadFormat.JsonFormatOrBuilder

getKindCase()

public Pipeline.MessagePayloadFormat.KindCase getKindCase()
Returns
Type Description
Pipeline.MessagePayloadFormat.KindCase

getProtobuf()

public Pipeline.MessagePayloadFormat.ProtobufFormat getProtobuf()

Optional. Protobuf format.

.google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.ProtobufFormat protobuf = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Pipeline.MessagePayloadFormat.ProtobufFormat

The protobuf.

getProtobufBuilder()

public Pipeline.MessagePayloadFormat.ProtobufFormat.Builder getProtobufBuilder()

Optional. Protobuf format.

.google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.ProtobufFormat protobuf = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Pipeline.MessagePayloadFormat.ProtobufFormat.Builder

getProtobufOrBuilder()

public Pipeline.MessagePayloadFormat.ProtobufFormatOrBuilder getProtobufOrBuilder()

Optional. Protobuf format.

.google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.ProtobufFormat protobuf = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Pipeline.MessagePayloadFormat.ProtobufFormatOrBuilder

hasAvro()

public boolean hasAvro()

Optional. Avro format.

.google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.AvroFormat avro = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the avro field is set.

hasJson()

public boolean hasJson()

Optional. JSON format.

.google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.JsonFormat json = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the json field is set.

hasProtobuf()

public boolean hasProtobuf()

Optional. Protobuf format.

.google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.ProtobufFormat protobuf = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the protobuf field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAvro(Pipeline.MessagePayloadFormat.AvroFormat value)

public Pipeline.MessagePayloadFormat.Builder mergeAvro(Pipeline.MessagePayloadFormat.AvroFormat value)

Optional. Avro format.

.google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.AvroFormat avro = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Pipeline.MessagePayloadFormat.AvroFormat
Returns
Type Description
Pipeline.MessagePayloadFormat.Builder

mergeFrom(Pipeline.MessagePayloadFormat other)

public Pipeline.MessagePayloadFormat.Builder mergeFrom(Pipeline.MessagePayloadFormat other)
Parameter
Name Description
other Pipeline.MessagePayloadFormat
Returns
Type Description
Pipeline.MessagePayloadFormat.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Pipeline.MessagePayloadFormat.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Pipeline.MessagePayloadFormat.Builder
Overrides

mergeJson(Pipeline.MessagePayloadFormat.JsonFormat value)

public Pipeline.MessagePayloadFormat.Builder mergeJson(Pipeline.MessagePayloadFormat.JsonFormat value)

Optional. JSON format.

.google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.JsonFormat json = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Pipeline.MessagePayloadFormat.JsonFormat
Returns
Type Description
Pipeline.MessagePayloadFormat.Builder

mergeProtobuf(Pipeline.MessagePayloadFormat.ProtobufFormat value)

public Pipeline.MessagePayloadFormat.Builder mergeProtobuf(Pipeline.MessagePayloadFormat.ProtobufFormat value)

Optional. Protobuf format.

.google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.ProtobufFormat protobuf = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Pipeline.MessagePayloadFormat.ProtobufFormat
Returns
Type Description
Pipeline.MessagePayloadFormat.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Pipeline.MessagePayloadFormat.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Pipeline.MessagePayloadFormat.Builder
Overrides

setAvro(Pipeline.MessagePayloadFormat.AvroFormat value)

public Pipeline.MessagePayloadFormat.Builder setAvro(Pipeline.MessagePayloadFormat.AvroFormat value)

Optional. Avro format.

.google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.AvroFormat avro = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Pipeline.MessagePayloadFormat.AvroFormat
Returns
Type Description
Pipeline.MessagePayloadFormat.Builder

setAvro(Pipeline.MessagePayloadFormat.AvroFormat.Builder builderForValue)

public Pipeline.MessagePayloadFormat.Builder setAvro(Pipeline.MessagePayloadFormat.AvroFormat.Builder builderForValue)

Optional. Avro format.

.google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.AvroFormat avro = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Pipeline.MessagePayloadFormat.AvroFormat.Builder
Returns
Type Description
Pipeline.MessagePayloadFormat.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setJson(Pipeline.MessagePayloadFormat.JsonFormat value)

public Pipeline.MessagePayloadFormat.Builder setJson(Pipeline.MessagePayloadFormat.JsonFormat value)

Optional. JSON format.

.google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.JsonFormat json = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Pipeline.MessagePayloadFormat.JsonFormat
Returns
Type Description
Pipeline.MessagePayloadFormat.Builder

setJson(Pipeline.MessagePayloadFormat.JsonFormat.Builder builderForValue)

public Pipeline.MessagePayloadFormat.Builder setJson(Pipeline.MessagePayloadFormat.JsonFormat.Builder builderForValue)

Optional. JSON format.

.google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.JsonFormat json = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Pipeline.MessagePayloadFormat.JsonFormat.Builder
Returns
Type Description
Pipeline.MessagePayloadFormat.Builder

setProtobuf(Pipeline.MessagePayloadFormat.ProtobufFormat value)

public Pipeline.MessagePayloadFormat.Builder setProtobuf(Pipeline.MessagePayloadFormat.ProtobufFormat value)

Optional. Protobuf format.

.google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.ProtobufFormat protobuf = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Pipeline.MessagePayloadFormat.ProtobufFormat
Returns
Type Description
Pipeline.MessagePayloadFormat.Builder

setProtobuf(Pipeline.MessagePayloadFormat.ProtobufFormat.Builder builderForValue)

public Pipeline.MessagePayloadFormat.Builder setProtobuf(Pipeline.MessagePayloadFormat.ProtobufFormat.Builder builderForValue)

Optional. Protobuf format.

.google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.ProtobufFormat protobuf = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Pipeline.MessagePayloadFormat.ProtobufFormat.Builder
Returns
Type Description
Pipeline.MessagePayloadFormat.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final Pipeline.MessagePayloadFormat.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Pipeline.MessagePayloadFormat.Builder
Overrides