Package com.google.pubsub.v1
Interface ValidateMessageRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ValidateMessageRequest
,ValidateMessageRequest.Builder
public interface ValidateMessageRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionThe encoding expected for messagesint
The encoding expected for messagescom.google.protobuf.ByteString
Message to validate against the provided `schema_spec`.getName()
Name of the schema against which to validate.com.google.protobuf.ByteString
Name of the schema against which to validate.Required.com.google.protobuf.ByteString
Required.Ad-hoc schema against which to validateAd-hoc schema against which to validateboolean
hasName()
Name of the schema against which to validate.boolean
Ad-hoc schema against which to validateMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getParent
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:
- The parent.
-
getParentBytes
com.google.protobuf.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:
- The bytes for parent.
-
hasName
boolean hasName()Name of the schema against which to validate. Format is `projects/{project}/schemas/{schema}`.
string name = 2 [(.google.api.resource_reference) = { ... }
- Returns:
- Whether the name field is set.
-
getName
String getName()Name of the schema against which to validate. Format is `projects/{project}/schemas/{schema}`.
string name = 2 [(.google.api.resource_reference) = { ... }
- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()Name of the schema against which to validate. Format is `projects/{project}/schemas/{schema}`.
string name = 2 [(.google.api.resource_reference) = { ... }
- Returns:
- The bytes for name.
-
hasSchema
boolean hasSchema()Ad-hoc schema against which to validate
.google.pubsub.v1.Schema schema = 3;
- Returns:
- Whether the schema field is set.
-
getSchema
Schema getSchema()Ad-hoc schema against which to validate
.google.pubsub.v1.Schema schema = 3;
- Returns:
- The schema.
-
getSchemaOrBuilder
SchemaOrBuilder getSchemaOrBuilder()Ad-hoc schema against which to validate
.google.pubsub.v1.Schema schema = 3;
-
getMessage
com.google.protobuf.ByteString getMessage()Message to validate against the provided `schema_spec`.
bytes message = 4;
- Returns:
- The message.
-
getEncodingValue
int getEncodingValue()The encoding expected for messages
.google.pubsub.v1.Encoding encoding = 5;
- Returns:
- The enum numeric value on the wire for encoding.
-
getEncoding
Encoding getEncoding()The encoding expected for messages
.google.pubsub.v1.Encoding encoding = 5;
- Returns:
- The encoding.
-
getSchemaSpecCase
ValidateMessageRequest.SchemaSpecCase getSchemaSpecCase()
-