public static final class Schema.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder> implements SchemaOrBuilder
A schema resource.Protobuf type
google.pubsub.v1.Schema| Modifier and Type | Method and Description |
|---|---|
Schema.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Schema |
build() |
Schema |
buildPartial() |
Schema.Builder |
clear() |
Schema.Builder |
clearDefinition()
The definition of the schema.
|
Schema.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Schema.Builder |
clearName()
Required.
|
Schema.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Schema.Builder |
clearType()
The type of the schema definition.
|
Schema.Builder |
clone() |
Schema |
getDefaultInstanceForType() |
String |
getDefinition()
The definition of the schema.
|
com.google.protobuf.ByteString |
getDefinitionBytes()
The definition of the schema.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
Schema.Type |
getType()
The type of the schema definition.
|
int |
getTypeValue()
The type of the schema definition.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Schema.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Schema.Builder |
mergeFrom(com.google.protobuf.Message other) |
Schema.Builder |
mergeFrom(Schema other) |
Schema.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Schema.Builder |
setDefinition(String value)
The definition of the schema.
|
Schema.Builder |
setDefinitionBytes(com.google.protobuf.ByteString value)
The definition of the schema.
|
Schema.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Schema.Builder |
setName(String value)
Required.
|
Schema.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Required.
|
Schema.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Schema.Builder |
setType(Schema.Type value)
The type of the schema definition.
|
Schema.Builder |
setTypeValue(int value)
The type of the schema definition.
|
Schema.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>public Schema.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>public Schema getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Schema build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Schema buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Schema.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>public Schema.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>public Schema.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>public Schema.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>public Schema.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>public Schema.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>public Schema.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Schema.Builder>public Schema.Builder mergeFrom(Schema other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>public Schema.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Schema.Builder>IOExceptionpublic String getName()
Required. Name of the schema.
Format is `projects/{project}/schemas/{schema}`.
string name = 1 [(.google.api.field_behavior) = REQUIRED];getName in interface SchemaOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Required. Name of the schema.
Format is `projects/{project}/schemas/{schema}`.
string name = 1 [(.google.api.field_behavior) = REQUIRED];getNameBytes in interface SchemaOrBuilderpublic Schema.Builder setName(String value)
Required. Name of the schema.
Format is `projects/{project}/schemas/{schema}`.
string name = 1 [(.google.api.field_behavior) = REQUIRED];value - The name to set.public Schema.Builder clearName()
Required. Name of the schema.
Format is `projects/{project}/schemas/{schema}`.
string name = 1 [(.google.api.field_behavior) = REQUIRED];public Schema.Builder setNameBytes(com.google.protobuf.ByteString value)
Required. Name of the schema.
Format is `projects/{project}/schemas/{schema}`.
string name = 1 [(.google.api.field_behavior) = REQUIRED];value - The bytes for name to set.public int getTypeValue()
The type of the schema definition.
.google.pubsub.v1.Schema.Type type = 2;getTypeValue in interface SchemaOrBuilderpublic Schema.Builder setTypeValue(int value)
The type of the schema definition.
.google.pubsub.v1.Schema.Type type = 2;value - The enum numeric value on the wire for type to set.public Schema.Type getType()
The type of the schema definition.
.google.pubsub.v1.Schema.Type type = 2;getType in interface SchemaOrBuilderpublic Schema.Builder setType(Schema.Type value)
The type of the schema definition.
.google.pubsub.v1.Schema.Type type = 2;value - The type to set.public Schema.Builder clearType()
The type of the schema definition.
.google.pubsub.v1.Schema.Type type = 2;public String getDefinition()
The definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in `type`.
string definition = 3;getDefinition in interface SchemaOrBuilderpublic com.google.protobuf.ByteString getDefinitionBytes()
The definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in `type`.
string definition = 3;getDefinitionBytes in interface SchemaOrBuilderpublic Schema.Builder setDefinition(String value)
The definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in `type`.
string definition = 3;value - The definition to set.public Schema.Builder clearDefinition()
The definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in `type`.
string definition = 3;public Schema.Builder setDefinitionBytes(com.google.protobuf.ByteString value)
The definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in `type`.
string definition = 3;value - The bytes for definition to set.public final Schema.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>public final Schema.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>Copyright © 2022 Google LLC. All rights reserved.