Package com.google.pubsub.v1
Class Schema.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
- com.google.pubsub.v1.Schema.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,SchemaOrBuilder,Cloneable
- Enclosing class:
- Schema
public static final class Schema.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder> implements SchemaOrBuilder
A schema resource.
Protobuf typegoogle.pubsub.v1.Schema
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Schema.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Schemabuild()SchemabuildPartial()Schema.Builderclear()Schema.BuilderclearDefinition()The definition of the schema.Schema.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Schema.BuilderclearName()Required.Schema.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Schema.BuilderclearRevisionCreateTime()Output only.Schema.BuilderclearRevisionId()Output only.Schema.BuilderclearType()The type of the schema definition.Schema.Builderclone()SchemagetDefaultInstanceForType()StringgetDefinition()The definition of the schema.com.google.protobuf.ByteStringgetDefinitionBytes()The definition of the schema.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetName()Required.com.google.protobuf.ByteStringgetNameBytes()Required.com.google.protobuf.TimestampgetRevisionCreateTime()Output only.com.google.protobuf.Timestamp.BuildergetRevisionCreateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetRevisionCreateTimeOrBuilder()Output only.StringgetRevisionId()Output only.com.google.protobuf.ByteStringgetRevisionIdBytes()Output only.Schema.TypegetType()The type of the schema definition.intgetTypeValue()The type of the schema definition.booleanhasRevisionCreateTime()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Schema.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Schema.BuildermergeFrom(com.google.protobuf.Message other)Schema.BuildermergeFrom(Schema other)Schema.BuildermergeRevisionCreateTime(com.google.protobuf.Timestamp value)Output only.Schema.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Schema.BuildersetDefinition(String value)The definition of the schema.Schema.BuildersetDefinitionBytes(com.google.protobuf.ByteString value)The definition of the schema.Schema.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Schema.BuildersetName(String value)Required.Schema.BuildersetNameBytes(com.google.protobuf.ByteString value)Required.Schema.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Schema.BuildersetRevisionCreateTime(com.google.protobuf.Timestamp value)Output only.Schema.BuildersetRevisionCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.Schema.BuildersetRevisionId(String value)Output only.Schema.BuildersetRevisionIdBytes(com.google.protobuf.ByteString value)Output only.Schema.BuildersetType(Schema.Type value)The type of the schema definition.Schema.BuildersetTypeValue(int value)The type of the schema definition.Schema.BuildersetUnknownFields(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, internalGetMutableMapField, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
clear
public Schema.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
getDefaultInstanceForType
public Schema getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Schema build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Schema buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Schema.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
setField
public Schema.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
clearField
public Schema.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
clearOneof
public Schema.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
setRepeatedField
public Schema.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
addRepeatedField
public Schema.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
mergeFrom
public Schema.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Schema.Builder>
-
mergeFrom
public Schema.Builder mergeFrom(Schema other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
mergeFrom
public Schema.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Schema.Builder>- Throws:
IOException
-
getName
public String getName()
Required. Name of the schema. Format is `projects/{project}/schemas/{schema}`.string name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNamein interfaceSchemaOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Required. Name of the schema. Format is `projects/{project}/schemas/{schema}`.string name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNameBytesin interfaceSchemaOrBuilder- Returns:
- The bytes for name.
-
setName
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];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Schema.Builder clearName()
Required. Name of the schema. Format is `projects/{project}/schemas/{schema}`.string name = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setNameBytes
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];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()
The type of the schema definition.
.google.pubsub.v1.Schema.Type type = 2;- Specified by:
getTypeValuein interfaceSchemaOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
public Schema.Builder setTypeValue(int value)
The type of the schema definition.
.google.pubsub.v1.Schema.Type type = 2;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
public Schema.Type getType()
The type of the schema definition.
.google.pubsub.v1.Schema.Type type = 2;- Specified by:
getTypein interfaceSchemaOrBuilder- Returns:
- The type.
-
setType
public Schema.Builder setType(Schema.Type value)
The type of the schema definition.
.google.pubsub.v1.Schema.Type type = 2;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
public Schema.Builder clearType()
The type of the schema definition.
.google.pubsub.v1.Schema.Type type = 2;- Returns:
- This builder for chaining.
-
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;- Specified by:
getDefinitionin interfaceSchemaOrBuilder- Returns:
- The definition.
-
getDefinitionBytes
public 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;- Specified by:
getDefinitionBytesin interfaceSchemaOrBuilder- Returns:
- The bytes for definition.
-
setDefinition
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;- Parameters:
value- The definition to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setDefinitionBytes
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;- Parameters:
value- The bytes for definition to set.- Returns:
- This builder for chaining.
-
getRevisionId
public String getRevisionId()
Output only. Immutable. The revision ID of the schema.
string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRevisionIdin interfaceSchemaOrBuilder- Returns:
- The revisionId.
-
getRevisionIdBytes
public com.google.protobuf.ByteString getRevisionIdBytes()
Output only. Immutable. The revision ID of the schema.
string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRevisionIdBytesin interfaceSchemaOrBuilder- Returns:
- The bytes for revisionId.
-
setRevisionId
public Schema.Builder setRevisionId(String value)
Output only. Immutable. The revision ID of the schema.
string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The revisionId to set.- Returns:
- This builder for chaining.
-
clearRevisionId
public Schema.Builder clearRevisionId()
Output only. Immutable. The revision ID of the schema.
string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setRevisionIdBytes
public Schema.Builder setRevisionIdBytes(com.google.protobuf.ByteString value)
Output only. Immutable. The revision ID of the schema.
string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for revisionId to set.- Returns:
- This builder for chaining.
-
hasRevisionCreateTime
public boolean hasRevisionCreateTime()
Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasRevisionCreateTimein interfaceSchemaOrBuilder- Returns:
- Whether the revisionCreateTime field is set.
-
getRevisionCreateTime
public com.google.protobuf.Timestamp getRevisionCreateTime()
Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRevisionCreateTimein interfaceSchemaOrBuilder- Returns:
- The revisionCreateTime.
-
setRevisionCreateTime
public Schema.Builder setRevisionCreateTime(com.google.protobuf.Timestamp value)
Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setRevisionCreateTime
public Schema.Builder setRevisionCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeRevisionCreateTime
public Schema.Builder mergeRevisionCreateTime(com.google.protobuf.Timestamp value)
Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearRevisionCreateTime
public Schema.Builder clearRevisionCreateTime()
Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getRevisionCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getRevisionCreateTimeBuilder()
Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getRevisionCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder()
Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRevisionCreateTimeOrBuilderin interfaceSchemaOrBuilder
-
setUnknownFields
public final Schema.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
mergeUnknownFields
public final Schema.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
-