Package com.google.pubsub.v1
Class ValidateMessageRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
com.google.pubsub.v1.ValidateMessageRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,ValidateMessageRequestOrBuilder
,Cloneable
- Enclosing class:
- ValidateMessageRequest
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
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
The encoding expected for messagesclearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Message to validate against the provided `schema_spec`.Name of the schema against which to validate.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Required.Ad-hoc schema against which to validateclone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
The 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 validateAd-hoc schema against which to validateboolean
hasName()
Name of the schema against which to validate.boolean
Ad-hoc schema against which to validateprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(ValidateMessageRequest other) mergeSchema
(Schema value) Ad-hoc schema against which to validatemergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setEncoding
(Encoding value) The encoding expected for messagessetEncodingValue
(int value) The encoding expected for messagessetMessage
(com.google.protobuf.ByteString value) Message to validate against the provided `schema_spec`.Name of the schema against which to validate.setNameBytes
(com.google.protobuf.ByteString value) Name of the schema against which to validate.Required.setParentBytes
(com.google.protobuf.ByteString value) Required.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Ad-hoc schema against which to validatesetSchema
(Schema.Builder builderForValue) Ad-hoc schema against which to validatesetUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
-
setField
public ValidateMessageRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
-
clearField
public ValidateMessageRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
-
clearOneof
public ValidateMessageRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
-
setRepeatedField
public ValidateMessageRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
-
addRepeatedField
public ValidateMessageRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ValidateMessageRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
-
mergeFrom
public ValidateMessageRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ValidateMessageRequest.Builder>
- Throws:
IOException
-
getSchemaSpecCase
- Specified by:
getSchemaSpecCase
in interfaceValidateMessageRequestOrBuilder
-
clearSchemaSpec
-
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) = { ... }
- Specified by:
getParent
in interfaceValidateMessageRequestOrBuilder
- Returns:
- The parent.
-
getParentBytes
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) = { ... }
- Specified by:
getParentBytes
in interfaceValidateMessageRequestOrBuilder
- Returns:
- The bytes for parent.
-
setParent
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) = { ... }
- Parameters:
value
- The parent to set.- Returns:
- This builder for chaining.
-
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) = { ... }
- Returns:
- This builder for chaining.
-
setParentBytes
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) = { ... }
- Parameters:
value
- The bytes for parent to set.- Returns:
- This builder for chaining.
-
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) = { ... }
- Specified by:
hasName
in interfaceValidateMessageRequestOrBuilder
- Returns:
- Whether the name field is set.
-
getName
Name of the schema against which to validate. Format is `projects/{project}/schemas/{schema}`.
string name = 2 [(.google.api.resource_reference) = { ... }
- Specified by:
getName
in interfaceValidateMessageRequestOrBuilder
- Returns:
- The name.
-
getNameBytes
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) = { ... }
- Specified by:
getNameBytes
in interfaceValidateMessageRequestOrBuilder
- Returns:
- The bytes for name.
-
setName
Name of the schema against which to validate. Format is `projects/{project}/schemas/{schema}`.
string name = 2 [(.google.api.resource_reference) = { ... }
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
Name of the schema against which to validate. Format is `projects/{project}/schemas/{schema}`.
string name = 2 [(.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setNameBytes
Name of the schema against which to validate. Format is `projects/{project}/schemas/{schema}`.
string name = 2 [(.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasSchema
public boolean hasSchema()Ad-hoc schema against which to validate
.google.pubsub.v1.Schema schema = 3;
- Specified by:
hasSchema
in interfaceValidateMessageRequestOrBuilder
- Returns:
- Whether the schema field is set.
-
getSchema
Ad-hoc schema against which to validate
.google.pubsub.v1.Schema schema = 3;
- Specified by:
getSchema
in interfaceValidateMessageRequestOrBuilder
- Returns:
- The schema.
-
setSchema
Ad-hoc schema against which to validate
.google.pubsub.v1.Schema schema = 3;
-
setSchema
Ad-hoc schema against which to validate
.google.pubsub.v1.Schema schema = 3;
-
mergeSchema
Ad-hoc schema against which to validate
.google.pubsub.v1.Schema schema = 3;
-
clearSchema
Ad-hoc schema against which to validate
.google.pubsub.v1.Schema schema = 3;
-
getSchemaBuilder
Ad-hoc schema against which to validate
.google.pubsub.v1.Schema schema = 3;
-
getSchemaOrBuilder
Ad-hoc schema against which to validate
.google.pubsub.v1.Schema schema = 3;
- Specified by:
getSchemaOrBuilder
in interfaceValidateMessageRequestOrBuilder
-
getMessage
public com.google.protobuf.ByteString getMessage()Message to validate against the provided `schema_spec`.
bytes message = 4;
- Specified by:
getMessage
in interfaceValidateMessageRequestOrBuilder
- Returns:
- The message.
-
setMessage
Message to validate against the provided `schema_spec`.
bytes message = 4;
- Parameters:
value
- The message to set.- Returns:
- This builder for chaining.
-
clearMessage
Message to validate against the provided `schema_spec`.
bytes message = 4;
- Returns:
- This builder for chaining.
-
getEncodingValue
public int getEncodingValue()The encoding expected for messages
.google.pubsub.v1.Encoding encoding = 5;
- Specified by:
getEncodingValue
in interfaceValidateMessageRequestOrBuilder
- Returns:
- The enum numeric value on the wire for encoding.
-
setEncodingValue
The encoding expected for messages
.google.pubsub.v1.Encoding encoding = 5;
- Parameters:
value
- The enum numeric value on the wire for encoding to set.- Returns:
- This builder for chaining.
-
getEncoding
The encoding expected for messages
.google.pubsub.v1.Encoding encoding = 5;
- Specified by:
getEncoding
in interfaceValidateMessageRequestOrBuilder
- Returns:
- The encoding.
-
setEncoding
The encoding expected for messages
.google.pubsub.v1.Encoding encoding = 5;
- Parameters:
value
- The encoding to set.- Returns:
- This builder for chaining.
-
clearEncoding
The encoding expected for messages
.google.pubsub.v1.Encoding encoding = 5;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final ValidateMessageRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
-
mergeUnknownFields
public final ValidateMessageRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
-