Class ValidateMessageRequest.Builder (1.118.0)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ValidateMessageRequest build()
Returns
TypeDescription
ValidateMessageRequest

buildPartial()

public ValidateMessageRequest buildPartial()
Returns
TypeDescription
ValidateMessageRequest

clear()

public ValidateMessageRequest.Builder clear()
Returns
TypeDescription
ValidateMessageRequest.Builder
Overrides

clearEncoding()

public ValidateMessageRequest.Builder clearEncoding()

The encoding expected for messages

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

Returns
TypeDescription
ValidateMessageRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMessage()

public ValidateMessageRequest.Builder clearMessage()

Message to validate against the provided schema_spec.

bytes message = 4;

Returns
TypeDescription
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
TypeDescription
ValidateMessageRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSchemaSpec()

public ValidateMessageRequest.Builder clearSchemaSpec()
Returns
TypeDescription
ValidateMessageRequest.Builder

clone()

public ValidateMessageRequest.Builder clone()
Returns
TypeDescription
ValidateMessageRequest.Builder
Overrides

getDefaultInstanceForType()

public ValidateMessageRequest getDefaultInstanceForType()
Returns
TypeDescription
ValidateMessageRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEncoding()

public Encoding getEncoding()

The encoding expected for messages

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

Returns
TypeDescription
Encoding

The encoding.

getEncodingValue()

public int getEncodingValue()

The encoding expected for messages

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parent.

getSchema()

public Schema getSchema()

Ad-hoc schema against which to validate

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

Returns
TypeDescription
Schema

The schema.

getSchemaBuilder()

public Schema.Builder getSchemaBuilder()

Ad-hoc schema against which to validate

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

Returns
TypeDescription
Schema.Builder

getSchemaOrBuilder()

public SchemaOrBuilder getSchemaOrBuilder()

Ad-hoc schema against which to validate

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

Returns
TypeDescription
SchemaOrBuilder

getSchemaSpecCase()

public ValidateMessageRequest.SchemaSpecCase getSchemaSpecCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the schema field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ValidateMessageRequest other)

public ValidateMessageRequest.Builder mergeFrom(ValidateMessageRequest other)
Parameter
NameDescription
otherValidateMessageRequest
Returns
TypeDescription
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
NameDescription
valueSchema
Returns
TypeDescription
ValidateMessageRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEncoding(Encoding value)

public ValidateMessageRequest.Builder setEncoding(Encoding value)

The encoding expected for messages

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

Parameter
NameDescription
valueEncoding

The encoding to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
ValidateMessageRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ValidateMessageRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ValidateMessageRequest.Builder
Overrides

setMessage(ByteString value)

public ValidateMessageRequest.Builder setMessage(ByteString value)

Message to validate against the provided schema_spec.

bytes message = 4;

Parameter
NameDescription
valueByteString

The message to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSchema
Returns
TypeDescription
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
NameDescription
builderForValueSchema.Builder
Returns
TypeDescription
ValidateMessageRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ValidateMessageRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ValidateMessageRequest.Builder
Overrides