Class ValidateMessageRequest.Builder (1.129.1)

public static final class ValidateMessageRequest.Builder extends GeneratedMessageV3.Builder<ValidateMessageRequest.Builder> implements ValidateMessageRequestOrBuilder

Request for the ValidateMessage method.

Protobuf type google.pubsub.v1.ValidateMessageRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ValidateMessageRequest build()
Returns
Type Description
ValidateMessageRequest

buildPartial()

public ValidateMessageRequest buildPartial()
Returns
Type Description
ValidateMessageRequest

clear()

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

clearEncoding()

public ValidateMessageRequest.Builder clearEncoding()

The encoding expected for messages

.google.pubsub.v1.Encoding encoding = 5;

Returns
Type Description
ValidateMessageRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMessage()

public ValidateMessageRequest.Builder clearMessage()

Message to validate against the provided schema_spec.

bytes message = 4;

Returns
Type Description
ValidateMessageRequest.Builder

This builder for chaining.

clearName()

public ValidateMessageRequest.Builder clearName()

Name of the schema against which to validate.

Format is projects/{project}/schemas/{schema}.

string name = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ValidateMessageRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public ValidateMessageRequest.Builder clearParent()

Required. The name of the project in which to validate schemas. Format is projects/{project-id}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ValidateMessageRequest.Builder

This builder for chaining.

clearSchema()

public ValidateMessageRequest.Builder clearSchema()

Ad-hoc schema against which to validate

.google.pubsub.v1.Schema schema = 3;

Returns
Type Description
ValidateMessageRequest.Builder

clearSchemaSpec()

public ValidateMessageRequest.Builder clearSchemaSpec()
Returns
Type Description
ValidateMessageRequest.Builder

clone()

public ValidateMessageRequest.Builder clone()
Returns
Type Description
ValidateMessageRequest.Builder
Overrides

getDefaultInstanceForType()

public ValidateMessageRequest getDefaultInstanceForType()
Returns
Type Description
ValidateMessageRequest

getDescriptorForType()

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

getEncoding()

public Encoding getEncoding()

The encoding expected for messages

.google.pubsub.v1.Encoding encoding = 5;

Returns
Type Description
Encoding

The encoding.

getEncodingValue()

public int getEncodingValue()

The encoding expected for messages

.google.pubsub.v1.Encoding encoding = 5;

Returns
Type Description
int

The enum numeric value on the wire for encoding.

getMessage()

public ByteString getMessage()

Message to validate against the provided schema_spec.

bytes message = 4;

Returns
Type Description
ByteString

The message.

getName()

public String getName()

Name of the schema against which to validate.

Format is projects/{project}/schemas/{schema}.

string name = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the schema against which to validate.

Format is projects/{project}/schemas/{schema}.

string name = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getParent()

public String getParent()

Required. The name of the project in which to validate schemas. Format is projects/{project-id}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The name of the project in which to validate schemas. Format is projects/{project-id}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getSchema()

public Schema getSchema()

Ad-hoc schema against which to validate

.google.pubsub.v1.Schema schema = 3;

Returns
Type Description
Schema

The schema.

getSchemaBuilder()

public Schema.Builder getSchemaBuilder()

Ad-hoc schema against which to validate

.google.pubsub.v1.Schema schema = 3;

Returns
Type Description
Schema.Builder

getSchemaOrBuilder()

public SchemaOrBuilder getSchemaOrBuilder()

Ad-hoc schema against which to validate

.google.pubsub.v1.Schema schema = 3;

Returns
Type Description
SchemaOrBuilder

getSchemaSpecCase()

public ValidateMessageRequest.SchemaSpecCase getSchemaSpecCase()
Returns
Type Description
ValidateMessageRequest.SchemaSpecCase

hasName()

public boolean hasName()

Name of the schema against which to validate.

Format is projects/{project}/schemas/{schema}.

string name = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the name field is set.

hasSchema()

public boolean hasSchema()

Ad-hoc schema against which to validate

.google.pubsub.v1.Schema schema = 3;

Returns
Type Description
boolean

Whether the schema field is set.

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 ValidateMessageRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ValidateMessageRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(ValidateMessageRequest other)

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

mergeSchema(Schema value)

public ValidateMessageRequest.Builder mergeSchema(Schema value)

Ad-hoc schema against which to validate

.google.pubsub.v1.Schema schema = 3;

Parameter
Name Description
value Schema
Returns
Type Description
ValidateMessageRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEncoding(Encoding value)

public ValidateMessageRequest.Builder setEncoding(Encoding value)

The encoding expected for messages

.google.pubsub.v1.Encoding encoding = 5;

Parameter
Name Description
value Encoding

The encoding to set.

Returns
Type Description
ValidateMessageRequest.Builder

This builder for chaining.

setEncodingValue(int value)

public ValidateMessageRequest.Builder setEncodingValue(int value)

The encoding expected for messages

.google.pubsub.v1.Encoding encoding = 5;

Parameter
Name Description
value int

The enum numeric value on the wire for encoding to set.

Returns
Type Description
ValidateMessageRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMessage(ByteString value)

public ValidateMessageRequest.Builder setMessage(ByteString value)

Message to validate against the provided schema_spec.

bytes message = 4;

Parameter
Name Description
value ByteString

The message to set.

Returns
Type Description
ValidateMessageRequest.Builder

This builder for chaining.

setName(String value)

public ValidateMessageRequest.Builder setName(String value)

Name of the schema against which to validate.

Format is projects/{project}/schemas/{schema}.

string name = 2 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ValidateMessageRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ValidateMessageRequest.Builder setNameBytes(ByteString value)

Name of the schema against which to validate.

Format is projects/{project}/schemas/{schema}.

string name = 2 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ValidateMessageRequest.Builder

This builder for chaining.

setParent(String value)

public ValidateMessageRequest.Builder setParent(String value)

Required. The name of the project in which to validate schemas. Format is projects/{project-id}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ValidateMessageRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ValidateMessageRequest.Builder setParentBytes(ByteString value)

Required. The name of the project in which to validate schemas. Format is projects/{project-id}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
ValidateMessageRequest.Builder

This builder for chaining.

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

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

setSchema(Schema value)

public ValidateMessageRequest.Builder setSchema(Schema value)

Ad-hoc schema against which to validate

.google.pubsub.v1.Schema schema = 3;

Parameter
Name Description
value Schema
Returns
Type Description
ValidateMessageRequest.Builder

setSchema(Schema.Builder builderForValue)

public ValidateMessageRequest.Builder setSchema(Schema.Builder builderForValue)

Ad-hoc schema against which to validate

.google.pubsub.v1.Schema schema = 3;

Parameter
Name Description
builderForValue Schema.Builder
Returns
Type Description
ValidateMessageRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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