public static final class ValidateMessageRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder> implements ValidateMessageRequestOrBuilder
Request for the `ValidateMessage` method.Protobuf type
google.pubsub.v1.ValidateMessageRequest
Modifier and Type | Method and Description |
---|---|
ValidateMessageRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ValidateMessageRequest |
build() |
ValidateMessageRequest |
buildPartial() |
ValidateMessageRequest.Builder |
clear() |
ValidateMessageRequest.Builder |
clearEncoding()
The encoding expected for messages
|
ValidateMessageRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ValidateMessageRequest.Builder |
clearMessage()
Message to validate against the provided `schema_spec`.
|
ValidateMessageRequest.Builder |
clearName()
Name of the schema against which to validate.
|
ValidateMessageRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ValidateMessageRequest.Builder |
clearParent()
Required.
|
ValidateMessageRequest.Builder |
clearSchema()
Ad-hoc schema against which to validate
|
ValidateMessageRequest.Builder |
clearSchemaSpec() |
ValidateMessageRequest.Builder |
clone() |
ValidateMessageRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Encoding |
getEncoding()
The encoding expected for messages
|
int |
getEncodingValue()
The encoding expected for messages
|
com.google.protobuf.ByteString |
getMessage()
Message to validate against the provided `schema_spec`.
|
String |
getName()
Name of the schema against which to validate.
|
com.google.protobuf.ByteString |
getNameBytes()
Name of the schema against which to validate.
|
String |
getParent()
Required.
|
com.google.protobuf.ByteString |
getParentBytes()
Required.
|
Schema |
getSchema()
Ad-hoc schema against which to validate
|
Schema.Builder |
getSchemaBuilder()
Ad-hoc schema against which to validate
|
SchemaOrBuilder |
getSchemaOrBuilder()
Ad-hoc schema against which to validate
|
ValidateMessageRequest.SchemaSpecCase |
getSchemaSpecCase() |
boolean |
hasName()
Name of the schema against which to validate.
|
boolean |
hasSchema()
Ad-hoc schema against which to validate
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ValidateMessageRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ValidateMessageRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
ValidateMessageRequest.Builder |
mergeFrom(ValidateMessageRequest other) |
ValidateMessageRequest.Builder |
mergeSchema(Schema value)
Ad-hoc schema against which to validate
|
ValidateMessageRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ValidateMessageRequest.Builder |
setEncoding(Encoding value)
The encoding expected for messages
|
ValidateMessageRequest.Builder |
setEncodingValue(int value)
The encoding expected for messages
|
ValidateMessageRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ValidateMessageRequest.Builder |
setMessage(com.google.protobuf.ByteString value)
Message to validate against the provided `schema_spec`.
|
ValidateMessageRequest.Builder |
setName(String value)
Name of the schema against which to validate.
|
ValidateMessageRequest.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Name of the schema against which to validate.
|
ValidateMessageRequest.Builder |
setParent(String value)
Required.
|
ValidateMessageRequest.Builder |
setParentBytes(com.google.protobuf.ByteString value)
Required.
|
ValidateMessageRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ValidateMessageRequest.Builder |
setSchema(Schema.Builder builderForValue)
Ad-hoc schema against which to validate
|
ValidateMessageRequest.Builder |
setSchema(Schema value)
Ad-hoc schema against which to validate
|
ValidateMessageRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
public ValidateMessageRequest.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
public ValidateMessageRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public ValidateMessageRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public ValidateMessageRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public ValidateMessageRequest.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
public ValidateMessageRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
public ValidateMessageRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
public ValidateMessageRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
public ValidateMessageRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
public ValidateMessageRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
public ValidateMessageRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ValidateMessageRequest.Builder>
public ValidateMessageRequest.Builder mergeFrom(ValidateMessageRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
public ValidateMessageRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ValidateMessageRequest.Builder>
IOException
public ValidateMessageRequest.SchemaSpecCase getSchemaSpecCase()
getSchemaSpecCase
in interface ValidateMessageRequestOrBuilder
public ValidateMessageRequest.Builder clearSchemaSpec()
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) = { ... }
getParent
in interface ValidateMessageRequestOrBuilder
public 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) = { ... }
getParentBytes
in interface ValidateMessageRequestOrBuilder
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) = { ... }
value
- The parent to set.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) = { ... }
public ValidateMessageRequest.Builder setParentBytes(com.google.protobuf.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) = { ... }
value
- The bytes for parent to set.public boolean hasName()
Name of the schema against which to validate. Format is `projects/{project}/schemas/{schema}`.
string name = 2 [(.google.api.resource_reference) = { ... }
hasName
in interface ValidateMessageRequestOrBuilder
public String getName()
Name of the schema against which to validate. Format is `projects/{project}/schemas/{schema}`.
string name = 2 [(.google.api.resource_reference) = { ... }
getName
in interface ValidateMessageRequestOrBuilder
public 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) = { ... }
getNameBytes
in interface ValidateMessageRequestOrBuilder
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) = { ... }
value
- The name to set.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) = { ... }
public ValidateMessageRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
Name of the schema against which to validate. Format is `projects/{project}/schemas/{schema}`.
string name = 2 [(.google.api.resource_reference) = { ... }
value
- The bytes for name to set.public boolean hasSchema()
Ad-hoc schema against which to validate
.google.pubsub.v1.Schema schema = 3;
hasSchema
in interface ValidateMessageRequestOrBuilder
public Schema getSchema()
Ad-hoc schema against which to validate
.google.pubsub.v1.Schema schema = 3;
getSchema
in interface ValidateMessageRequestOrBuilder
public ValidateMessageRequest.Builder setSchema(Schema value)
Ad-hoc schema against which to validate
.google.pubsub.v1.Schema schema = 3;
public ValidateMessageRequest.Builder setSchema(Schema.Builder builderForValue)
Ad-hoc schema against which to validate
.google.pubsub.v1.Schema schema = 3;
public ValidateMessageRequest.Builder mergeSchema(Schema value)
Ad-hoc schema against which to validate
.google.pubsub.v1.Schema schema = 3;
public ValidateMessageRequest.Builder clearSchema()
Ad-hoc schema against which to validate
.google.pubsub.v1.Schema schema = 3;
public Schema.Builder getSchemaBuilder()
Ad-hoc schema against which to validate
.google.pubsub.v1.Schema schema = 3;
public SchemaOrBuilder getSchemaOrBuilder()
Ad-hoc schema against which to validate
.google.pubsub.v1.Schema schema = 3;
getSchemaOrBuilder
in interface ValidateMessageRequestOrBuilder
public com.google.protobuf.ByteString getMessage()
Message to validate against the provided `schema_spec`.
bytes message = 4;
getMessage
in interface ValidateMessageRequestOrBuilder
public ValidateMessageRequest.Builder setMessage(com.google.protobuf.ByteString value)
Message to validate against the provided `schema_spec`.
bytes message = 4;
value
- The message to set.public ValidateMessageRequest.Builder clearMessage()
Message to validate against the provided `schema_spec`.
bytes message = 4;
public int getEncodingValue()
The encoding expected for messages
.google.pubsub.v1.Encoding encoding = 5;
getEncodingValue
in interface ValidateMessageRequestOrBuilder
public ValidateMessageRequest.Builder setEncodingValue(int value)
The encoding expected for messages
.google.pubsub.v1.Encoding encoding = 5;
value
- The enum numeric value on the wire for encoding to set.public Encoding getEncoding()
The encoding expected for messages
.google.pubsub.v1.Encoding encoding = 5;
getEncoding
in interface ValidateMessageRequestOrBuilder
public ValidateMessageRequest.Builder setEncoding(Encoding value)
The encoding expected for messages
.google.pubsub.v1.Encoding encoding = 5;
value
- The encoding to set.public ValidateMessageRequest.Builder clearEncoding()
The encoding expected for messages
.google.pubsub.v1.Encoding encoding = 5;
public final ValidateMessageRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
public final ValidateMessageRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
Copyright © 2023 Google LLC. All rights reserved.