Interface ValidateMessageRequestOrBuilder (1.130.0)

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
Type Description
Encoding

The encoding.

getEncodingValue()

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

Message to validate against the provided schema_spec.

bytes message = 4;

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for parent.

getSchema()

public abstract Schema getSchema()

Ad-hoc schema against which to validate

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

Returns
Type Description
Schema

The schema.

getSchemaOrBuilder()

public abstract SchemaOrBuilder getSchemaOrBuilder()

Ad-hoc schema against which to validate

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

Returns
Type Description
SchemaOrBuilder

getSchemaSpecCase()

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

Whether the schema field is set.