public static final class SchemaSettings.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SchemaSettings.Builder> implements SchemaSettingsOrBuilder
Settings for validating messages published against a schema.Protobuf type
google.pubsub.v1.SchemaSettings
Modifier and Type | Method and Description |
---|---|
SchemaSettings.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SchemaSettings |
build() |
SchemaSettings |
buildPartial() |
SchemaSettings.Builder |
clear() |
SchemaSettings.Builder |
clearEncoding()
The encoding of messages validated against `schema`.
|
SchemaSettings.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SchemaSettings.Builder |
clearFirstRevisionId()
The minimum (inclusive) revision allowed for validating messages.
|
SchemaSettings.Builder |
clearLastRevisionId()
The maximum (inclusive) revision allowed for validating messages.
|
SchemaSettings.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SchemaSettings.Builder |
clearSchema()
Required.
|
SchemaSettings.Builder |
clone() |
SchemaSettings |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Encoding |
getEncoding()
The encoding of messages validated against `schema`.
|
int |
getEncodingValue()
The encoding of messages validated against `schema`.
|
String |
getFirstRevisionId()
The minimum (inclusive) revision allowed for validating messages.
|
com.google.protobuf.ByteString |
getFirstRevisionIdBytes()
The minimum (inclusive) revision allowed for validating messages.
|
String |
getLastRevisionId()
The maximum (inclusive) revision allowed for validating messages.
|
com.google.protobuf.ByteString |
getLastRevisionIdBytes()
The maximum (inclusive) revision allowed for validating messages.
|
String |
getSchema()
Required.
|
com.google.protobuf.ByteString |
getSchemaBytes()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SchemaSettings.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SchemaSettings.Builder |
mergeFrom(com.google.protobuf.Message other) |
SchemaSettings.Builder |
mergeFrom(SchemaSettings other) |
SchemaSettings.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SchemaSettings.Builder |
setEncoding(Encoding value)
The encoding of messages validated against `schema`.
|
SchemaSettings.Builder |
setEncodingValue(int value)
The encoding of messages validated against `schema`.
|
SchemaSettings.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SchemaSettings.Builder |
setFirstRevisionId(String value)
The minimum (inclusive) revision allowed for validating messages.
|
SchemaSettings.Builder |
setFirstRevisionIdBytes(com.google.protobuf.ByteString value)
The minimum (inclusive) revision allowed for validating messages.
|
SchemaSettings.Builder |
setLastRevisionId(String value)
The maximum (inclusive) revision allowed for validating messages.
|
SchemaSettings.Builder |
setLastRevisionIdBytes(com.google.protobuf.ByteString value)
The maximum (inclusive) revision allowed for validating messages.
|
SchemaSettings.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SchemaSettings.Builder |
setSchema(String value)
Required.
|
SchemaSettings.Builder |
setSchemaBytes(com.google.protobuf.ByteString value)
Required.
|
SchemaSettings.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<SchemaSettings.Builder>
public SchemaSettings.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<SchemaSettings.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<SchemaSettings.Builder>
public SchemaSettings getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public SchemaSettings build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public SchemaSettings buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public SchemaSettings.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<SchemaSettings.Builder>
public SchemaSettings.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<SchemaSettings.Builder>
public SchemaSettings.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<SchemaSettings.Builder>
public SchemaSettings.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<SchemaSettings.Builder>
public SchemaSettings.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<SchemaSettings.Builder>
public SchemaSettings.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<SchemaSettings.Builder>
public SchemaSettings.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<SchemaSettings.Builder>
public SchemaSettings.Builder mergeFrom(SchemaSettings other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<SchemaSettings.Builder>
public SchemaSettings.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<SchemaSettings.Builder>
IOException
public String getSchema()
Required. The name of the schema that messages published should be validated against. Format is `projects/{project}/schemas/{schema}`. The value of this field will be `_deleted-schema_` if the schema has been deleted.
string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getSchema
in interface SchemaSettingsOrBuilder
public com.google.protobuf.ByteString getSchemaBytes()
Required. The name of the schema that messages published should be validated against. Format is `projects/{project}/schemas/{schema}`. The value of this field will be `_deleted-schema_` if the schema has been deleted.
string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getSchemaBytes
in interface SchemaSettingsOrBuilder
public SchemaSettings.Builder setSchema(String value)
Required. The name of the schema that messages published should be validated against. Format is `projects/{project}/schemas/{schema}`. The value of this field will be `_deleted-schema_` if the schema has been deleted.
string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value
- The schema to set.public SchemaSettings.Builder clearSchema()
Required. The name of the schema that messages published should be validated against. Format is `projects/{project}/schemas/{schema}`. The value of this field will be `_deleted-schema_` if the schema has been deleted.
string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public SchemaSettings.Builder setSchemaBytes(com.google.protobuf.ByteString value)
Required. The name of the schema that messages published should be validated against. Format is `projects/{project}/schemas/{schema}`. The value of this field will be `_deleted-schema_` if the schema has been deleted.
string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value
- The bytes for schema to set.public int getEncodingValue()
The encoding of messages validated against `schema`.
.google.pubsub.v1.Encoding encoding = 2;
getEncodingValue
in interface SchemaSettingsOrBuilder
public SchemaSettings.Builder setEncodingValue(int value)
The encoding of messages validated against `schema`.
.google.pubsub.v1.Encoding encoding = 2;
value
- The enum numeric value on the wire for encoding to set.public Encoding getEncoding()
The encoding of messages validated against `schema`.
.google.pubsub.v1.Encoding encoding = 2;
getEncoding
in interface SchemaSettingsOrBuilder
public SchemaSettings.Builder setEncoding(Encoding value)
The encoding of messages validated against `schema`.
.google.pubsub.v1.Encoding encoding = 2;
value
- The encoding to set.public SchemaSettings.Builder clearEncoding()
The encoding of messages validated against `schema`.
.google.pubsub.v1.Encoding encoding = 2;
public String getFirstRevisionId()
The minimum (inclusive) revision allowed for validating messages. If empty or not present, allow any revision to be validated against last_revision or any revision created before.
string first_revision_id = 3;
getFirstRevisionId
in interface SchemaSettingsOrBuilder
public com.google.protobuf.ByteString getFirstRevisionIdBytes()
The minimum (inclusive) revision allowed for validating messages. If empty or not present, allow any revision to be validated against last_revision or any revision created before.
string first_revision_id = 3;
getFirstRevisionIdBytes
in interface SchemaSettingsOrBuilder
public SchemaSettings.Builder setFirstRevisionId(String value)
The minimum (inclusive) revision allowed for validating messages. If empty or not present, allow any revision to be validated against last_revision or any revision created before.
string first_revision_id = 3;
value
- The firstRevisionId to set.public SchemaSettings.Builder clearFirstRevisionId()
The minimum (inclusive) revision allowed for validating messages. If empty or not present, allow any revision to be validated against last_revision or any revision created before.
string first_revision_id = 3;
public SchemaSettings.Builder setFirstRevisionIdBytes(com.google.protobuf.ByteString value)
The minimum (inclusive) revision allowed for validating messages. If empty or not present, allow any revision to be validated against last_revision or any revision created before.
string first_revision_id = 3;
value
- The bytes for firstRevisionId to set.public String getLastRevisionId()
The maximum (inclusive) revision allowed for validating messages. If empty or not present, allow any revision to be validated against first_revision or any revision created after.
string last_revision_id = 4;
getLastRevisionId
in interface SchemaSettingsOrBuilder
public com.google.protobuf.ByteString getLastRevisionIdBytes()
The maximum (inclusive) revision allowed for validating messages. If empty or not present, allow any revision to be validated against first_revision or any revision created after.
string last_revision_id = 4;
getLastRevisionIdBytes
in interface SchemaSettingsOrBuilder
public SchemaSettings.Builder setLastRevisionId(String value)
The maximum (inclusive) revision allowed for validating messages. If empty or not present, allow any revision to be validated against first_revision or any revision created after.
string last_revision_id = 4;
value
- The lastRevisionId to set.public SchemaSettings.Builder clearLastRevisionId()
The maximum (inclusive) revision allowed for validating messages. If empty or not present, allow any revision to be validated against first_revision or any revision created after.
string last_revision_id = 4;
public SchemaSettings.Builder setLastRevisionIdBytes(com.google.protobuf.ByteString value)
The maximum (inclusive) revision allowed for validating messages. If empty or not present, allow any revision to be validated against first_revision or any revision created after.
string last_revision_id = 4;
value
- The bytes for lastRevisionId to set.public final SchemaSettings.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<SchemaSettings.Builder>
public final SchemaSettings.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<SchemaSettings.Builder>
Copyright © 2023 Google LLC. All rights reserved.