public static final class ValidateMessageRequest.Builder extends GeneratedMessageV3.Builder<ValidateMessageRequest.Builder> implements ValidateMessageRequestOrBuilder
Request for the ValidateMessage
method.
Protobuf type google.pubsub.v1.ValidateMessageRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ValidateMessageRequest.BuilderImplements
ValidateMessageRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ValidateMessageRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ValidateMessageRequest.Builder |
build()
public ValidateMessageRequest build()
Type | Description |
ValidateMessageRequest |
buildPartial()
public ValidateMessageRequest buildPartial()
Type | Description |
ValidateMessageRequest |
clear()
public ValidateMessageRequest.Builder clear()
Type | Description |
ValidateMessageRequest.Builder |
clearEncoding()
public ValidateMessageRequest.Builder clearEncoding()
The encoding expected for messages
.google.pubsub.v1.Encoding encoding = 5;
Type | Description |
ValidateMessageRequest.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ValidateMessageRequest.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
ValidateMessageRequest.Builder |
clearMessage()
public ValidateMessageRequest.Builder clearMessage()
Message to validate against the provided schema_spec
.
bytes message = 4;
Type | Description |
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) = { ... }
Type | Description |
ValidateMessageRequest.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ValidateMessageRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
ValidateMessageRequest.Builder |
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) = { ... }
Type | Description |
ValidateMessageRequest.Builder | This builder for chaining. |
clearSchema()
public ValidateMessageRequest.Builder clearSchema()
Ad-hoc schema against which to validate
.google.pubsub.v1.Schema schema = 3;
Type | Description |
ValidateMessageRequest.Builder |
clearSchemaSpec()
public ValidateMessageRequest.Builder clearSchemaSpec()
Type | Description |
ValidateMessageRequest.Builder |
clone()
public ValidateMessageRequest.Builder clone()
Type | Description |
ValidateMessageRequest.Builder |
getDefaultInstanceForType()
public ValidateMessageRequest getDefaultInstanceForType()
Type | Description |
ValidateMessageRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEncoding()
public Encoding getEncoding()
The encoding expected for messages
.google.pubsub.v1.Encoding encoding = 5;
Type | Description |
Encoding | The encoding. |
getEncodingValue()
public int getEncodingValue()
The encoding expected for messages
.google.pubsub.v1.Encoding encoding = 5;
Type | Description |
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;
Type | Description |
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) = { ... }
Type | Description |
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) = { ... }
Type | Description |
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) = { ... }
Type | Description |
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) = { ... }
Type | Description |
ByteString | The bytes for parent. |
getSchema()
public Schema getSchema()
Ad-hoc schema against which to validate
.google.pubsub.v1.Schema schema = 3;
Type | Description |
Schema | The schema. |
getSchemaBuilder()
public Schema.Builder getSchemaBuilder()
Ad-hoc schema against which to validate
.google.pubsub.v1.Schema schema = 3;
Type | Description |
Schema.Builder |
getSchemaOrBuilder()
public SchemaOrBuilder getSchemaOrBuilder()
Ad-hoc schema against which to validate
.google.pubsub.v1.Schema schema = 3;
Type | Description |
SchemaOrBuilder |
getSchemaSpecCase()
public ValidateMessageRequest.SchemaSpecCase getSchemaSpecCase()
Type | Description |
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) = { ... }
Type | Description |
boolean | Whether the name field is set. |
hasSchema()
public boolean hasSchema()
Ad-hoc schema against which to validate
.google.pubsub.v1.Schema schema = 3;
Type | Description |
boolean | Whether the schema field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ValidateMessageRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ValidateMessageRequest.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ValidateMessageRequest.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ValidateMessageRequest.Builder |
mergeFrom(ValidateMessageRequest other)
public ValidateMessageRequest.Builder mergeFrom(ValidateMessageRequest other)
Name | Description |
other | ValidateMessageRequest |
Type | Description |
ValidateMessageRequest.Builder |
mergeSchema(Schema value)
public ValidateMessageRequest.Builder mergeSchema(Schema value)
Ad-hoc schema against which to validate
.google.pubsub.v1.Schema schema = 3;
Name | Description |
value | Schema |
Type | Description |
ValidateMessageRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ValidateMessageRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ValidateMessageRequest.Builder |
setEncoding(Encoding value)
public ValidateMessageRequest.Builder setEncoding(Encoding value)
The encoding expected for messages
.google.pubsub.v1.Encoding encoding = 5;
Name | Description |
value | Encoding The encoding to set. |
Type | Description |
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;
Name | Description |
value | int The enum numeric value on the wire for encoding to set. |
Type | Description |
ValidateMessageRequest.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ValidateMessageRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ValidateMessageRequest.Builder |
setMessage(ByteString value)
public ValidateMessageRequest.Builder setMessage(ByteString value)
Message to validate against the provided schema_spec
.
bytes message = 4;
Name | Description |
value | ByteString The message to set. |
Type | Description |
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) = { ... }
Name | Description |
value | String The name to set. |
Type | Description |
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) = { ... }
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
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) = { ... }
Name | Description |
value | String The parent to set. |
Type | Description |
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) = { ... }
Name | Description |
value | ByteString The bytes for parent to set. |
Type | Description |
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)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
ValidateMessageRequest.Builder |
setSchema(Schema value)
public ValidateMessageRequest.Builder setSchema(Schema value)
Ad-hoc schema against which to validate
.google.pubsub.v1.Schema schema = 3;
Name | Description |
value | Schema |
Type | Description |
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;
Name | Description |
builderForValue | Schema.Builder |
Type | Description |
ValidateMessageRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ValidateMessageRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ValidateMessageRequest.Builder |