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.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
clearRevisionCreateTime()
Output only.Schema.Builder
clearRevisionId()
Output only.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.com.google.protobuf.Timestamp
getRevisionCreateTime()
Output only.com.google.protobuf.Timestamp.Builder
getRevisionCreateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getRevisionCreateTimeOrBuilder()
Output only.String
getRevisionId()
Output only.com.google.protobuf.ByteString
getRevisionIdBytes()
Output only.Schema.Type
getType()
The type of the schema definition.int
getTypeValue()
The type of the schema definition.boolean
hasRevisionCreateTime()
Output only.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
mergeRevisionCreateTime(com.google.protobuf.Timestamp value)
Output only.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
setRevisionCreateTime(com.google.protobuf.Timestamp value)
Output only.Schema.Builder
setRevisionCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.Schema.Builder
setRevisionId(String value)
Output only.Schema.Builder
setRevisionIdBytes(com.google.protobuf.ByteString value)
Output only.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)
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
clear
public Schema.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
getDefaultInstanceForType
public Schema getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Schema build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Schema buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Schema.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
setField
public Schema.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
clearField
public Schema.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
clearOneof
public Schema.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
setRepeatedField
public Schema.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
addRepeatedField
public Schema.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
mergeFrom
public Schema.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Schema.Builder>
-
mergeFrom
public Schema.Builder mergeFrom(Schema other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getName
in 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:
getNameBytes
in 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:
getTypeValue
in 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:
getType
in 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:
getDefinition
in 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:
getDefinitionBytes
in 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:
getRevisionId
in 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:
getRevisionIdBytes
in 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:
hasRevisionCreateTime
in 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:
getRevisionCreateTime
in 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:
getRevisionCreateTimeOrBuilder
in interfaceSchemaOrBuilder
-
setUnknownFields
public final Schema.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
mergeUnknownFields
public final Schema.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>
-
-