public static final class SchemaSettings.Builder extends GeneratedMessageV3.Builder<SchemaSettings.Builder> implements SchemaSettingsOrBuilder
Settings for validating messages published against a schema.
Protobuf type google.pubsub.v1.SchemaSettings
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SchemaSettings.BuilderImplements
SchemaSettingsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SchemaSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
SchemaSettings.Builder |
build()
public SchemaSettings build()
Type | Description |
SchemaSettings |
buildPartial()
public SchemaSettings buildPartial()
Type | Description |
SchemaSettings |
clear()
public SchemaSettings.Builder clear()
Type | Description |
SchemaSettings.Builder |
clearEncoding()
public SchemaSettings.Builder clearEncoding()
The encoding of messages validated against schema
.
.google.pubsub.v1.Encoding encoding = 2;
Type | Description |
SchemaSettings.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public SchemaSettings.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
SchemaSettings.Builder |
clearFirstRevisionId()
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;
Type | Description |
SchemaSettings.Builder | This builder for chaining. |
clearLastRevisionId()
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;
Type | Description |
SchemaSettings.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public SchemaSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
SchemaSettings.Builder |
clearSchema()
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) = { ... }
Type | Description |
SchemaSettings.Builder | This builder for chaining. |
clone()
public SchemaSettings.Builder clone()
Type | Description |
SchemaSettings.Builder |
getDefaultInstanceForType()
public SchemaSettings getDefaultInstanceForType()
Type | Description |
SchemaSettings |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEncoding()
public Encoding getEncoding()
The encoding of messages validated against schema
.
.google.pubsub.v1.Encoding encoding = 2;
Type | Description |
Encoding | The encoding. |
getEncodingValue()
public int getEncodingValue()
The encoding of messages validated against schema
.
.google.pubsub.v1.Encoding encoding = 2;
Type | Description |
int | The enum numeric value on the wire for encoding. |
getFirstRevisionId()
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;
Type | Description |
String | The firstRevisionId. |
getFirstRevisionIdBytes()
public 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;
Type | Description |
ByteString | The bytes for firstRevisionId. |
getLastRevisionId()
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;
Type | Description |
String | The lastRevisionId. |
getLastRevisionIdBytes()
public 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;
Type | Description |
ByteString | The bytes for lastRevisionId. |
getSchema()
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) = { ... }
Type | Description |
String | The schema. |
getSchemaBytes()
public 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) = { ... }
Type | Description |
ByteString | The bytes for schema. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SchemaSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
SchemaSettings.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public SchemaSettings.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
SchemaSettings.Builder |
mergeFrom(SchemaSettings other)
public SchemaSettings.Builder mergeFrom(SchemaSettings other)
Name | Description |
other | SchemaSettings |
Type | Description |
SchemaSettings.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SchemaSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
SchemaSettings.Builder |
setEncoding(Encoding value)
public SchemaSettings.Builder setEncoding(Encoding value)
The encoding of messages validated against schema
.
.google.pubsub.v1.Encoding encoding = 2;
Name | Description |
value | Encoding The encoding to set. |
Type | Description |
SchemaSettings.Builder | This builder for chaining. |
setEncodingValue(int value)
public SchemaSettings.Builder setEncodingValue(int value)
The encoding of messages validated against schema
.
.google.pubsub.v1.Encoding encoding = 2;
Name | Description |
value | int The enum numeric value on the wire for encoding to set. |
Type | Description |
SchemaSettings.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public SchemaSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
SchemaSettings.Builder |
setFirstRevisionId(String value)
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;
Name | Description |
value | String The firstRevisionId to set. |
Type | Description |
SchemaSettings.Builder | This builder for chaining. |
setFirstRevisionIdBytes(ByteString value)
public SchemaSettings.Builder setFirstRevisionIdBytes(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;
Name | Description |
value | ByteString The bytes for firstRevisionId to set. |
Type | Description |
SchemaSettings.Builder | This builder for chaining. |
setLastRevisionId(String value)
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;
Name | Description |
value | String The lastRevisionId to set. |
Type | Description |
SchemaSettings.Builder | This builder for chaining. |
setLastRevisionIdBytes(ByteString value)
public SchemaSettings.Builder setLastRevisionIdBytes(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;
Name | Description |
value | ByteString The bytes for lastRevisionId to set. |
Type | Description |
SchemaSettings.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SchemaSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
SchemaSettings.Builder |
setSchema(String value)
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) = { ... }
Name | Description |
value | String The schema to set. |
Type | Description |
SchemaSettings.Builder | This builder for chaining. |
setSchemaBytes(ByteString value)
public SchemaSettings.Builder setSchemaBytes(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) = { ... }
Name | Description |
value | ByteString The bytes for schema to set. |
Type | Description |
SchemaSettings.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final SchemaSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
SchemaSettings.Builder |