Interface ValidateMessageRequestOrBuilder (1.120.24)

public interface ValidateMessageRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEncoding()

public abstract Encoding getEncoding()

The encoding expected for messages

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

Returns
TypeDescription
Encoding

The encoding.

getEncodingValue()

public abstract 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 abstract ByteString getMessage()

Message to validate against the provided schema_spec.

bytes message = 4;

Returns
TypeDescription
ByteString

The message.

getName()

public abstract 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 abstract 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 abstract 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 abstract 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 abstract Schema getSchema()

Ad-hoc schema against which to validate

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

Returns
TypeDescription
Schema

The schema.

getSchemaOrBuilder()

public abstract SchemaOrBuilder getSchemaOrBuilder()

Ad-hoc schema against which to validate

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

Returns
TypeDescription
SchemaOrBuilder

getSchemaSpecCase()

public abstract ValidateMessageRequest.SchemaSpecCase getSchemaSpecCase()
Returns
TypeDescription
ValidateMessageRequest.SchemaSpecCase

hasName()

public abstract 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 abstract boolean hasSchema()

Ad-hoc schema against which to validate

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

Returns
TypeDescription
boolean

Whether the schema field is set.