Package org.tensorflow.metadata.v0
Class Schema
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- org.tensorflow.metadata.v0.Schema
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,SchemaOrBuilder
public final class Schema extends com.google.protobuf.GeneratedMessageV3 implements SchemaOrBuilder
Message to represent schema information. NextID: 14
Protobuf typetensorflow.metadata.v0.Schema- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSchema.BuilderMessage to represent schema information.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intANNOTATION_FIELD_NUMBERstatic intDATASET_CONSTRAINTS_FIELD_NUMBERstatic intDEFAULT_ENVIRONMENT_FIELD_NUMBERstatic intFEATURE_FIELD_NUMBERstatic intFLOAT_DOMAIN_FIELD_NUMBERstatic intINT_DOMAIN_FIELD_NUMBERstatic com.google.protobuf.Parser<Schema>PARSERDeprecated.static intSPARSE_FEATURE_FIELD_NUMBERstatic intSTRING_DOMAIN_FIELD_NUMBERstatic intTENSOR_REPRESENTATION_GROUP_FIELD_NUMBERstatic intWEIGHTED_FEATURE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsTensorRepresentationGroup(String key)TensorRepresentation groups.booleanequals(Object obj)AnnotationgetAnnotation()Additional information about the schema as a whole.AnnotationOrBuildergetAnnotationOrBuilder()Additional information about the schema as a whole.DatasetConstraintsgetDatasetConstraints()Dataset-level constraints.DatasetConstraintsOrBuildergetDatasetConstraintsOrBuilder()Dataset-level constraints.StringgetDefaultEnvironment(int index)Default environments for each feature.com.google.protobuf.ByteStringgetDefaultEnvironmentBytes(int index)Default environments for each feature.intgetDefaultEnvironmentCount()Default environments for each feature.com.google.protobuf.ProtocolStringListgetDefaultEnvironmentList()Default environments for each feature.static SchemagetDefaultInstance()SchemagetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()FeaturegetFeature(int index)Features described in this schema.intgetFeatureCount()Features described in this schema.List<Feature>getFeatureList()Features described in this schema.FeatureOrBuildergetFeatureOrBuilder(int index)Features described in this schema.List<? extends FeatureOrBuilder>getFeatureOrBuilderList()Features described in this schema.FloatDomaingetFloatDomain(int index)top level float domains that can be reused by featuresintgetFloatDomainCount()top level float domains that can be reused by featuresList<FloatDomain>getFloatDomainList()top level float domains that can be reused by featuresFloatDomainOrBuildergetFloatDomainOrBuilder(int index)top level float domains that can be reused by featuresList<? extends FloatDomainOrBuilder>getFloatDomainOrBuilderList()top level float domains that can be reused by featuresIntDomaingetIntDomain(int index)top level int domains that can be reused by featuresintgetIntDomainCount()top level int domains that can be reused by featuresList<IntDomain>getIntDomainList()top level int domains that can be reused by featuresIntDomainOrBuildergetIntDomainOrBuilder(int index)top level int domains that can be reused by featuresList<? extends IntDomainOrBuilder>getIntDomainOrBuilderList()top level int domains that can be reused by featurescom.google.protobuf.Parser<Schema>getParserForType()intgetSerializedSize()SparseFeaturegetSparseFeature(int index)Sparse features described in this schema.intgetSparseFeatureCount()Sparse features described in this schema.List<SparseFeature>getSparseFeatureList()Sparse features described in this schema.SparseFeatureOrBuildergetSparseFeatureOrBuilder(int index)Sparse features described in this schema.List<? extends SparseFeatureOrBuilder>getSparseFeatureOrBuilderList()Sparse features described in this schema.StringDomaingetStringDomain(int index)declared as top-level features in <feature>.intgetStringDomainCount()declared as top-level features in <feature>.List<StringDomain>getStringDomainList()declared as top-level features in <feature>.StringDomainOrBuildergetStringDomainOrBuilder(int index)declared as top-level features in <feature>.List<? extends StringDomainOrBuilder>getStringDomainOrBuilderList()declared as top-level features in <feature>.Map<String,TensorRepresentationGroup>getTensorRepresentationGroup()Deprecated.intgetTensorRepresentationGroupCount()TensorRepresentation groups.Map<String,TensorRepresentationGroup>getTensorRepresentationGroupMap()TensorRepresentation groups.TensorRepresentationGroupgetTensorRepresentationGroupOrDefault(String key, TensorRepresentationGroup defaultValue)TensorRepresentation groups.TensorRepresentationGroupgetTensorRepresentationGroupOrThrow(String key)TensorRepresentation groups.com.google.protobuf.UnknownFieldSetgetUnknownFields()WeightedFeaturegetWeightedFeature(int index)Weighted features described in this schema.intgetWeightedFeatureCount()Weighted features described in this schema.List<WeightedFeature>getWeightedFeatureList()Weighted features described in this schema.WeightedFeatureOrBuildergetWeightedFeatureOrBuilder(int index)Weighted features described in this schema.List<? extends WeightedFeatureOrBuilder>getWeightedFeatureOrBuilderList()Weighted features described in this schema.booleanhasAnnotation()Additional information about the schema as a whole.booleanhasDatasetConstraints()Dataset-level constraints.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static Schema.BuildernewBuilder()static Schema.BuildernewBuilder(Schema prototype)Schema.BuildernewBuilderForType()protected Schema.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static SchemaparseDelimitedFrom(InputStream input)static SchemaparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SchemaparseFrom(byte[] data)static SchemaparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SchemaparseFrom(com.google.protobuf.ByteString data)static SchemaparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SchemaparseFrom(com.google.protobuf.CodedInputStream input)static SchemaparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SchemaparseFrom(InputStream input)static SchemaparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SchemaparseFrom(ByteBuffer data)static SchemaparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Schema>parser()Schema.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
FEATURE_FIELD_NUMBER
public static final int FEATURE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SPARSE_FEATURE_FIELD_NUMBER
public static final int SPARSE_FEATURE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WEIGHTED_FEATURE_FIELD_NUMBER
public static final int WEIGHTED_FEATURE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STRING_DOMAIN_FIELD_NUMBER
public static final int STRING_DOMAIN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FLOAT_DOMAIN_FIELD_NUMBER
public static final int FLOAT_DOMAIN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INT_DOMAIN_FIELD_NUMBER
public static final int INT_DOMAIN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEFAULT_ENVIRONMENT_FIELD_NUMBER
public static final int DEFAULT_ENVIRONMENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ANNOTATION_FIELD_NUMBER
public static final int ANNOTATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DATASET_CONSTRAINTS_FIELD_NUMBER
public static final int DATASET_CONSTRAINTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TENSOR_REPRESENTATION_GROUP_FIELD_NUMBER
public static final int TENSOR_REPRESENTATION_GROUP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<Schema> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getFeatureList
public List<Feature> getFeatureList()
Features described in this schema.
repeated .tensorflow.metadata.v0.Feature feature = 1;- Specified by:
getFeatureListin interfaceSchemaOrBuilder
-
getFeatureOrBuilderList
public List<? extends FeatureOrBuilder> getFeatureOrBuilderList()
Features described in this schema.
repeated .tensorflow.metadata.v0.Feature feature = 1;- Specified by:
getFeatureOrBuilderListin interfaceSchemaOrBuilder
-
getFeatureCount
public int getFeatureCount()
Features described in this schema.
repeated .tensorflow.metadata.v0.Feature feature = 1;- Specified by:
getFeatureCountin interfaceSchemaOrBuilder
-
getFeature
public Feature getFeature(int index)
Features described in this schema.
repeated .tensorflow.metadata.v0.Feature feature = 1;- Specified by:
getFeaturein interfaceSchemaOrBuilder
-
getFeatureOrBuilder
public FeatureOrBuilder getFeatureOrBuilder(int index)
Features described in this schema.
repeated .tensorflow.metadata.v0.Feature feature = 1;- Specified by:
getFeatureOrBuilderin interfaceSchemaOrBuilder
-
getSparseFeatureList
public List<SparseFeature> getSparseFeatureList()
Sparse features described in this schema.
repeated .tensorflow.metadata.v0.SparseFeature sparse_feature = 6;- Specified by:
getSparseFeatureListin interfaceSchemaOrBuilder
-
getSparseFeatureOrBuilderList
public List<? extends SparseFeatureOrBuilder> getSparseFeatureOrBuilderList()
Sparse features described in this schema.
repeated .tensorflow.metadata.v0.SparseFeature sparse_feature = 6;- Specified by:
getSparseFeatureOrBuilderListin interfaceSchemaOrBuilder
-
getSparseFeatureCount
public int getSparseFeatureCount()
Sparse features described in this schema.
repeated .tensorflow.metadata.v0.SparseFeature sparse_feature = 6;- Specified by:
getSparseFeatureCountin interfaceSchemaOrBuilder
-
getSparseFeature
public SparseFeature getSparseFeature(int index)
Sparse features described in this schema.
repeated .tensorflow.metadata.v0.SparseFeature sparse_feature = 6;- Specified by:
getSparseFeaturein interfaceSchemaOrBuilder
-
getSparseFeatureOrBuilder
public SparseFeatureOrBuilder getSparseFeatureOrBuilder(int index)
Sparse features described in this schema.
repeated .tensorflow.metadata.v0.SparseFeature sparse_feature = 6;- Specified by:
getSparseFeatureOrBuilderin interfaceSchemaOrBuilder
-
getWeightedFeatureList
public List<WeightedFeature> getWeightedFeatureList()
Weighted features described in this schema.
repeated .tensorflow.metadata.v0.WeightedFeature weighted_feature = 12;- Specified by:
getWeightedFeatureListin interfaceSchemaOrBuilder
-
getWeightedFeatureOrBuilderList
public List<? extends WeightedFeatureOrBuilder> getWeightedFeatureOrBuilderList()
Weighted features described in this schema.
repeated .tensorflow.metadata.v0.WeightedFeature weighted_feature = 12;- Specified by:
getWeightedFeatureOrBuilderListin interfaceSchemaOrBuilder
-
getWeightedFeatureCount
public int getWeightedFeatureCount()
Weighted features described in this schema.
repeated .tensorflow.metadata.v0.WeightedFeature weighted_feature = 12;- Specified by:
getWeightedFeatureCountin interfaceSchemaOrBuilder
-
getWeightedFeature
public WeightedFeature getWeightedFeature(int index)
Weighted features described in this schema.
repeated .tensorflow.metadata.v0.WeightedFeature weighted_feature = 12;- Specified by:
getWeightedFeaturein interfaceSchemaOrBuilder
-
getWeightedFeatureOrBuilder
public WeightedFeatureOrBuilder getWeightedFeatureOrBuilder(int index)
Weighted features described in this schema.
repeated .tensorflow.metadata.v0.WeightedFeature weighted_feature = 12;- Specified by:
getWeightedFeatureOrBuilderin interfaceSchemaOrBuilder
-
getStringDomainList
public List<StringDomain> getStringDomainList()
declared as top-level features in <feature>. String domains referenced in the features.
repeated .tensorflow.metadata.v0.StringDomain string_domain = 4;- Specified by:
getStringDomainListin interfaceSchemaOrBuilder
-
getStringDomainOrBuilderList
public List<? extends StringDomainOrBuilder> getStringDomainOrBuilderList()
declared as top-level features in <feature>. String domains referenced in the features.
repeated .tensorflow.metadata.v0.StringDomain string_domain = 4;- Specified by:
getStringDomainOrBuilderListin interfaceSchemaOrBuilder
-
getStringDomainCount
public int getStringDomainCount()
declared as top-level features in <feature>. String domains referenced in the features.
repeated .tensorflow.metadata.v0.StringDomain string_domain = 4;- Specified by:
getStringDomainCountin interfaceSchemaOrBuilder
-
getStringDomain
public StringDomain getStringDomain(int index)
declared as top-level features in <feature>. String domains referenced in the features.
repeated .tensorflow.metadata.v0.StringDomain string_domain = 4;- Specified by:
getStringDomainin interfaceSchemaOrBuilder
-
getStringDomainOrBuilder
public StringDomainOrBuilder getStringDomainOrBuilder(int index)
declared as top-level features in <feature>. String domains referenced in the features.
repeated .tensorflow.metadata.v0.StringDomain string_domain = 4;- Specified by:
getStringDomainOrBuilderin interfaceSchemaOrBuilder
-
getFloatDomainList
public List<FloatDomain> getFloatDomainList()
top level float domains that can be reused by features
repeated .tensorflow.metadata.v0.FloatDomain float_domain = 9;- Specified by:
getFloatDomainListin interfaceSchemaOrBuilder
-
getFloatDomainOrBuilderList
public List<? extends FloatDomainOrBuilder> getFloatDomainOrBuilderList()
top level float domains that can be reused by features
repeated .tensorflow.metadata.v0.FloatDomain float_domain = 9;- Specified by:
getFloatDomainOrBuilderListin interfaceSchemaOrBuilder
-
getFloatDomainCount
public int getFloatDomainCount()
top level float domains that can be reused by features
repeated .tensorflow.metadata.v0.FloatDomain float_domain = 9;- Specified by:
getFloatDomainCountin interfaceSchemaOrBuilder
-
getFloatDomain
public FloatDomain getFloatDomain(int index)
top level float domains that can be reused by features
repeated .tensorflow.metadata.v0.FloatDomain float_domain = 9;- Specified by:
getFloatDomainin interfaceSchemaOrBuilder
-
getFloatDomainOrBuilder
public FloatDomainOrBuilder getFloatDomainOrBuilder(int index)
top level float domains that can be reused by features
repeated .tensorflow.metadata.v0.FloatDomain float_domain = 9;- Specified by:
getFloatDomainOrBuilderin interfaceSchemaOrBuilder
-
getIntDomainList
public List<IntDomain> getIntDomainList()
top level int domains that can be reused by features
repeated .tensorflow.metadata.v0.IntDomain int_domain = 10;- Specified by:
getIntDomainListin interfaceSchemaOrBuilder
-
getIntDomainOrBuilderList
public List<? extends IntDomainOrBuilder> getIntDomainOrBuilderList()
top level int domains that can be reused by features
repeated .tensorflow.metadata.v0.IntDomain int_domain = 10;- Specified by:
getIntDomainOrBuilderListin interfaceSchemaOrBuilder
-
getIntDomainCount
public int getIntDomainCount()
top level int domains that can be reused by features
repeated .tensorflow.metadata.v0.IntDomain int_domain = 10;- Specified by:
getIntDomainCountin interfaceSchemaOrBuilder
-
getIntDomain
public IntDomain getIntDomain(int index)
top level int domains that can be reused by features
repeated .tensorflow.metadata.v0.IntDomain int_domain = 10;- Specified by:
getIntDomainin interfaceSchemaOrBuilder
-
getIntDomainOrBuilder
public IntDomainOrBuilder getIntDomainOrBuilder(int index)
top level int domains that can be reused by features
repeated .tensorflow.metadata.v0.IntDomain int_domain = 10;- Specified by:
getIntDomainOrBuilderin interfaceSchemaOrBuilder
-
getDefaultEnvironmentList
public com.google.protobuf.ProtocolStringList getDefaultEnvironmentList()
Default environments for each feature. An environment represents both a type of location (e.g. a server or phone) and a time (e.g. right before model X is run). In the standard scenario, 99% of the features should be in the default environments TRAINING, SERVING, and the LABEL (or labels) AND WEIGHT is only available at TRAINING (not at serving). Other possible variations: 1. There may be TRAINING_MOBILE, SERVING_MOBILE, TRAINING_SERVICE, and SERVING_SERVICE. 2. If one is ensembling three models, where the predictions of the first three models are available for the ensemble model, there may be TRAINING, SERVING_INITIAL, SERVING_ENSEMBLE. See FeatureProto::not_in_environment and FeatureProto::in_environment.repeated string default_environment = 5;- Specified by:
getDefaultEnvironmentListin interfaceSchemaOrBuilder- Returns:
- A list containing the defaultEnvironment.
-
getDefaultEnvironmentCount
public int getDefaultEnvironmentCount()
Default environments for each feature. An environment represents both a type of location (e.g. a server or phone) and a time (e.g. right before model X is run). In the standard scenario, 99% of the features should be in the default environments TRAINING, SERVING, and the LABEL (or labels) AND WEIGHT is only available at TRAINING (not at serving). Other possible variations: 1. There may be TRAINING_MOBILE, SERVING_MOBILE, TRAINING_SERVICE, and SERVING_SERVICE. 2. If one is ensembling three models, where the predictions of the first three models are available for the ensemble model, there may be TRAINING, SERVING_INITIAL, SERVING_ENSEMBLE. See FeatureProto::not_in_environment and FeatureProto::in_environment.repeated string default_environment = 5;- Specified by:
getDefaultEnvironmentCountin interfaceSchemaOrBuilder- Returns:
- The count of defaultEnvironment.
-
getDefaultEnvironment
public String getDefaultEnvironment(int index)
Default environments for each feature. An environment represents both a type of location (e.g. a server or phone) and a time (e.g. right before model X is run). In the standard scenario, 99% of the features should be in the default environments TRAINING, SERVING, and the LABEL (or labels) AND WEIGHT is only available at TRAINING (not at serving). Other possible variations: 1. There may be TRAINING_MOBILE, SERVING_MOBILE, TRAINING_SERVICE, and SERVING_SERVICE. 2. If one is ensembling three models, where the predictions of the first three models are available for the ensemble model, there may be TRAINING, SERVING_INITIAL, SERVING_ENSEMBLE. See FeatureProto::not_in_environment and FeatureProto::in_environment.repeated string default_environment = 5;- Specified by:
getDefaultEnvironmentin interfaceSchemaOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The defaultEnvironment at the given index.
-
getDefaultEnvironmentBytes
public com.google.protobuf.ByteString getDefaultEnvironmentBytes(int index)
Default environments for each feature. An environment represents both a type of location (e.g. a server or phone) and a time (e.g. right before model X is run). In the standard scenario, 99% of the features should be in the default environments TRAINING, SERVING, and the LABEL (or labels) AND WEIGHT is only available at TRAINING (not at serving). Other possible variations: 1. There may be TRAINING_MOBILE, SERVING_MOBILE, TRAINING_SERVICE, and SERVING_SERVICE. 2. If one is ensembling three models, where the predictions of the first three models are available for the ensemble model, there may be TRAINING, SERVING_INITIAL, SERVING_ENSEMBLE. See FeatureProto::not_in_environment and FeatureProto::in_environment.repeated string default_environment = 5;- Specified by:
getDefaultEnvironmentBytesin interfaceSchemaOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the defaultEnvironment at the given index.
-
hasAnnotation
public boolean hasAnnotation()
Additional information about the schema as a whole. Features may also be annotated individually.
optional .tensorflow.metadata.v0.Annotation annotation = 8;- Specified by:
hasAnnotationin interfaceSchemaOrBuilder- Returns:
- Whether the annotation field is set.
-
getAnnotation
public Annotation getAnnotation()
Additional information about the schema as a whole. Features may also be annotated individually.
optional .tensorflow.metadata.v0.Annotation annotation = 8;- Specified by:
getAnnotationin interfaceSchemaOrBuilder- Returns:
- The annotation.
-
getAnnotationOrBuilder
public AnnotationOrBuilder getAnnotationOrBuilder()
Additional information about the schema as a whole. Features may also be annotated individually.
optional .tensorflow.metadata.v0.Annotation annotation = 8;- Specified by:
getAnnotationOrBuilderin interfaceSchemaOrBuilder
-
hasDatasetConstraints
public boolean hasDatasetConstraints()
Dataset-level constraints. This is currently used for specifying information about changes in num_examples.
optional .tensorflow.metadata.v0.DatasetConstraints dataset_constraints = 11;- Specified by:
hasDatasetConstraintsin interfaceSchemaOrBuilder- Returns:
- Whether the datasetConstraints field is set.
-
getDatasetConstraints
public DatasetConstraints getDatasetConstraints()
Dataset-level constraints. This is currently used for specifying information about changes in num_examples.
optional .tensorflow.metadata.v0.DatasetConstraints dataset_constraints = 11;- Specified by:
getDatasetConstraintsin interfaceSchemaOrBuilder- Returns:
- The datasetConstraints.
-
getDatasetConstraintsOrBuilder
public DatasetConstraintsOrBuilder getDatasetConstraintsOrBuilder()
Dataset-level constraints. This is currently used for specifying information about changes in num_examples.
optional .tensorflow.metadata.v0.DatasetConstraints dataset_constraints = 11;- Specified by:
getDatasetConstraintsOrBuilderin interfaceSchemaOrBuilder
-
getTensorRepresentationGroupCount
public int getTensorRepresentationGroupCount()
Description copied from interface:SchemaOrBuilderTensorRepresentation groups. The keys are the names of the groups. Key "" (empty string) denotes the "default" group, which is what should be used when a group name is not provided. See the documentation at TensorRepresentationGroup for more info. Under development. DO NOT USE.
map<string, .tensorflow.metadata.v0.TensorRepresentationGroup> tensor_representation_group = 13;- Specified by:
getTensorRepresentationGroupCountin interfaceSchemaOrBuilder
-
containsTensorRepresentationGroup
public boolean containsTensorRepresentationGroup(String key)
TensorRepresentation groups. The keys are the names of the groups. Key "" (empty string) denotes the "default" group, which is what should be used when a group name is not provided. See the documentation at TensorRepresentationGroup for more info. Under development. DO NOT USE.
map<string, .tensorflow.metadata.v0.TensorRepresentationGroup> tensor_representation_group = 13;- Specified by:
containsTensorRepresentationGroupin interfaceSchemaOrBuilder
-
getTensorRepresentationGroup
@Deprecated public Map<String,TensorRepresentationGroup> getTensorRepresentationGroup()
Deprecated.UsegetTensorRepresentationGroupMap()instead.- Specified by:
getTensorRepresentationGroupin interfaceSchemaOrBuilder
-
getTensorRepresentationGroupMap
public Map<String,TensorRepresentationGroup> getTensorRepresentationGroupMap()
TensorRepresentation groups. The keys are the names of the groups. Key "" (empty string) denotes the "default" group, which is what should be used when a group name is not provided. See the documentation at TensorRepresentationGroup for more info. Under development. DO NOT USE.
map<string, .tensorflow.metadata.v0.TensorRepresentationGroup> tensor_representation_group = 13;- Specified by:
getTensorRepresentationGroupMapin interfaceSchemaOrBuilder
-
getTensorRepresentationGroupOrDefault
public TensorRepresentationGroup getTensorRepresentationGroupOrDefault(String key, TensorRepresentationGroup defaultValue)
TensorRepresentation groups. The keys are the names of the groups. Key "" (empty string) denotes the "default" group, which is what should be used when a group name is not provided. See the documentation at TensorRepresentationGroup for more info. Under development. DO NOT USE.
map<string, .tensorflow.metadata.v0.TensorRepresentationGroup> tensor_representation_group = 13;- Specified by:
getTensorRepresentationGroupOrDefaultin interfaceSchemaOrBuilder
-
getTensorRepresentationGroupOrThrow
public TensorRepresentationGroup getTensorRepresentationGroupOrThrow(String key)
TensorRepresentation groups. The keys are the names of the groups. Key "" (empty string) denotes the "default" group, which is what should be used when a group name is not provided. See the documentation at TensorRepresentationGroup for more info. Under development. DO NOT USE.
map<string, .tensorflow.metadata.v0.TensorRepresentationGroup> tensor_representation_group = 13;- Specified by:
getTensorRepresentationGroupOrThrowin interfaceSchemaOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Schema parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Schema parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Schema parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Schema parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Schema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Schema parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Schema parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Schema parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Schema parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Schema parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Schema parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Schema parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Schema.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Schema.Builder newBuilder()
-
newBuilder
public static Schema.Builder newBuilder(Schema prototype)
-
toBuilder
public Schema.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Schema.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Schema getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Schema> parser()
-
getParserForType
public com.google.protobuf.Parser<Schema> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Schema getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-