Class CompiledProtoSchema.Builder (1.157.0)

public static final class CompiledProtoSchema.Builder extends GeneratedMessage.Builder<CompiledProtoSchema.Builder> implements CompiledProtoSchemaOrBuilder

Configuration specific to compiled Protocol Buffer schemas.

Protobuf type google.pubsub.v1.CompiledProtoSchema

Static Methods

getDescriptor()

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

Methods

build()

public CompiledProtoSchema build()
Returns
Type Description
CompiledProtoSchema

buildPartial()

public CompiledProtoSchema buildPartial()
Returns
Type Description
CompiledProtoSchema

clear()

public CompiledProtoSchema.Builder clear()
Returns
Type Description
CompiledProtoSchema.Builder
Overrides

clearCompiledBytes()

public CompiledProtoSchema.Builder clearCompiledBytes()

Required. The compiled FileDescriptorSet binary.

bytes compiled_bytes = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CompiledProtoSchema.Builder

This builder for chaining.

clearRootMessage()

public CompiledProtoSchema.Builder clearRootMessage()

Required. The name of the root message type in the schema.

string root_message = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CompiledProtoSchema.Builder

This builder for chaining.

getCompiledBytes()

public ByteString getCompiledBytes()

Required. The compiled FileDescriptorSet binary.

bytes compiled_bytes = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The compiledBytes.

getDefaultInstanceForType()

public CompiledProtoSchema getDefaultInstanceForType()
Returns
Type Description
CompiledProtoSchema

getDescriptorForType()

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

getRootMessage()

public String getRootMessage()

Required. The name of the root message type in the schema.

string root_message = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The rootMessage.

getRootMessageBytes()

public ByteString getRootMessageBytes()

Required. The name of the root message type in the schema.

string root_message = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for rootMessage.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(CompiledProtoSchema other)

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

setCompiledBytes(ByteString value)

public CompiledProtoSchema.Builder setCompiledBytes(ByteString value)

Required. The compiled FileDescriptorSet binary.

bytes compiled_bytes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The compiledBytes to set.

Returns
Type Description
CompiledProtoSchema.Builder

This builder for chaining.

setRootMessage(String value)

public CompiledProtoSchema.Builder setRootMessage(String value)

Required. The name of the root message type in the schema.

string root_message = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The rootMessage to set.

Returns
Type Description
CompiledProtoSchema.Builder

This builder for chaining.

setRootMessageBytes(ByteString value)

public CompiledProtoSchema.Builder setRootMessageBytes(ByteString value)

Required. The name of the root message type in the schema.

string root_message = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for rootMessage to set.

Returns
Type Description
CompiledProtoSchema.Builder

This builder for chaining.