public static final class Schema.Builder extends GeneratedMessageV3.Builder<Schema.Builder> implements SchemaOrBuilderA schema resource.
Protobuf type google.pubsub.v1.Schema
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Schema.BuilderImplements
SchemaOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Type | Description |
| Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Schema.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| Schema.Builder |
build()
public Schema build()| Type | Description |
| Schema |
buildPartial()
public Schema buildPartial()| Type | Description |
| Schema |
clear()
public Schema.Builder clear()| Type | Description |
| Schema.Builder |
clearDefinition()
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;
| Type | Description |
| Schema.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Schema.Builder clearField(Descriptors.FieldDescriptor field)| Name | Description |
| field | FieldDescriptor |
| Type | Description |
| Schema.Builder |
clearName()
public Schema.Builder clearName() Required. Name of the schema.
Format is projects/{project}/schemas/{schema}.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
| Schema.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Schema.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Name | Description |
| oneof | OneofDescriptor |
| Type | Description |
| Schema.Builder |
clearType()
public Schema.Builder clearType()The type of the schema definition.
.google.pubsub.v1.Schema.Type type = 2;
| Type | Description |
| Schema.Builder | This builder for chaining. |
clone()
public Schema.Builder clone()| Type | Description |
| Schema.Builder |
getDefaultInstanceForType()
public Schema getDefaultInstanceForType()| Type | Description |
| Schema |
getDefinition()
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;
| Type | Description |
| String | The definition. |
getDefinitionBytes()
public 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;
| Type | Description |
| ByteString | The bytes for definition. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Type | Description |
| Descriptor |
getName()
public String getName() Required. Name of the schema.
Format is projects/{project}/schemas/{schema}.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
| String | The name. |
getNameBytes()
public ByteString getNameBytes() Required. Name of the schema.
Format is projects/{project}/schemas/{schema}.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
| ByteString | The bytes for name. |
getType()
public Schema.Type getType()The type of the schema definition.
.google.pubsub.v1.Schema.Type type = 2;
| Type | Description |
| Schema.Type | The type. |
getTypeValue()
public int getTypeValue()The type of the schema definition.
.google.pubsub.v1.Schema.Type type = 2;
| Type | Description |
| int | The enum numeric value on the wire for type. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Type | Description |
| FieldAccessorTable |
isInitialized()
public final boolean isInitialized()| Type | Description |
| boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Schema.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Name | Description |
| input | CodedInputStream |
| extensionRegistry | ExtensionRegistryLite |
| Type | Description |
| Schema.Builder |
| Type | Description |
| IOException |
mergeFrom(Message other)
public Schema.Builder mergeFrom(Message other)| Name | Description |
| other | Message |
| Type | Description |
| Schema.Builder |
mergeFrom(Schema other)
public Schema.Builder mergeFrom(Schema other)| Name | Description |
| other | Schema |
| Type | Description |
| Schema.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Schema.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| Schema.Builder |
setDefinition(String value)
public 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;
| Name | Description |
| value | StringThe definition to set. |
| Type | Description |
| Schema.Builder | This builder for chaining. |
setDefinitionBytes(ByteString value)
public Schema.Builder setDefinitionBytes(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;
| Name | Description |
| value | ByteStringThe bytes for definition to set. |
| Type | Description |
| Schema.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Schema.Builder setField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| Schema.Builder |
setName(String value)
public Schema.Builder setName(String value) Required. Name of the schema.
Format is projects/{project}/schemas/{schema}.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Name | Description |
| value | StringThe name to set. |
| Type | Description |
| Schema.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public Schema.Builder setNameBytes(ByteString value) Required. Name of the schema.
Format is projects/{project}/schemas/{schema}.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Name | Description |
| value | ByteStringThe bytes for name to set. |
| Type | Description |
| Schema.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Schema.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Name | Description |
| field | FieldDescriptor |
| index | int |
| value | Object |
| Type | Description |
| Schema.Builder |
setType(Schema.Type value)
public Schema.Builder setType(Schema.Type value)The type of the schema definition.
.google.pubsub.v1.Schema.Type type = 2;
| Name | Description |
| value | Schema.TypeThe type to set. |
| Type | Description |
| Schema.Builder | This builder for chaining. |
setTypeValue(int value)
public Schema.Builder setTypeValue(int value)The type of the schema definition.
.google.pubsub.v1.Schema.Type type = 2;
| Name | Description |
| value | intThe enum numeric value on the wire for type to set. |
| Type | Description |
| Schema.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Schema.Builder setUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| Schema.Builder |