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 type
google.pubsub.v1.Schema-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The definition of the schema.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Required.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Output only.Output only.The type of the schema definition.clone()The definition of the schema.com.google.protobuf.ByteStringThe definition of the schema.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Output only.com.google.protobuf.ByteStringOutput only.getType()The type of the schema definition.intThe type of the schema definition.booleanOutput only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeRevisionCreateTime(com.google.protobuf.Timestamp value) Output only.final Schema.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setDefinition(String value) The definition of the schema.setDefinitionBytes(com.google.protobuf.ByteString value) The definition of the schema.Required.setNameBytes(com.google.protobuf.ByteString value) Required.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRevisionCreateTime(com.google.protobuf.Timestamp value) Output only.setRevisionCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setRevisionId(String value) Output only.setRevisionIdBytes(com.google.protobuf.ByteString value) Output only.setType(Schema.Type value) The type of the schema definition.setTypeValue(int value) The type of the schema definition.final 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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
- 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
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
clearOneof
- 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
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Schema.Builder>
-
mergeFrom
-
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
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
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
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
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
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
The type of the schema definition.
.google.pubsub.v1.Schema.Type type = 2;- Specified by:
getTypein interfaceSchemaOrBuilder- Returns:
- The type.
-
setType
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
The type of the schema definition.
.google.pubsub.v1.Schema.Type type = 2;- Returns:
- This builder for chaining.
-
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
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
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
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
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
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
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
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
Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setRevisionCreateTime
Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeRevisionCreateTime
Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-