org.tensorflow.metadata.v0.SequenceLengthConstraints Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow_metadata/proto/v0/schema.proto
// Protobuf Java Version: 3.25.4
package org.tensorflow.metadata.v0;
/**
*
* Encodes constraints on sequence lengths.
*
*
* Protobuf type {@code tensorflow.metadata.v0.SequenceLengthConstraints}
*/
public final class SequenceLengthConstraints extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.metadata.v0.SequenceLengthConstraints)
SequenceLengthConstraintsOrBuilder {
private static final long serialVersionUID = 0L;
// Use SequenceLengthConstraints.newBuilder() to construct.
private SequenceLengthConstraints(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SequenceLengthConstraints() {
excludedIntValue_ = emptyLongList();
excludedStringValue_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SequenceLengthConstraints();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.metadata.v0.SchemaOuterClass.internal_static_tensorflow_metadata_v0_SequenceLengthConstraints_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.metadata.v0.SchemaOuterClass.internal_static_tensorflow_metadata_v0_SequenceLengthConstraints_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.metadata.v0.SequenceLengthConstraints.class, org.tensorflow.metadata.v0.SequenceLengthConstraints.Builder.class);
}
private int bitField0_;
public static final int EXCLUDED_INT_VALUE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList excludedIntValue_ =
emptyLongList();
/**
*
* Token values (int and string) that are excluded when calculating sequence
* length.
*
*
* repeated int64 excluded_int_value = 1;
* @return A list containing the excludedIntValue.
*/
@java.lang.Override
public java.util.List
getExcludedIntValueList() {
return excludedIntValue_;
}
/**
*
* Token values (int and string) that are excluded when calculating sequence
* length.
*
*
* repeated int64 excluded_int_value = 1;
* @return The count of excludedIntValue.
*/
public int getExcludedIntValueCount() {
return excludedIntValue_.size();
}
/**
*
* Token values (int and string) that are excluded when calculating sequence
* length.
*
*
* repeated int64 excluded_int_value = 1;
* @param index The index of the element to return.
* @return The excludedIntValue at the given index.
*/
public long getExcludedIntValue(int index) {
return excludedIntValue_.getLong(index);
}
public static final int EXCLUDED_STRING_VALUE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList excludedStringValue_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string excluded_string_value = 2;
* @return A list containing the excludedStringValue.
*/
public com.google.protobuf.ProtocolStringList
getExcludedStringValueList() {
return excludedStringValue_;
}
/**
* repeated string excluded_string_value = 2;
* @return The count of excludedStringValue.
*/
public int getExcludedStringValueCount() {
return excludedStringValue_.size();
}
/**
* repeated string excluded_string_value = 2;
* @param index The index of the element to return.
* @return The excludedStringValue at the given index.
*/
public java.lang.String getExcludedStringValue(int index) {
return excludedStringValue_.get(index);
}
/**
* repeated string excluded_string_value = 2;
* @param index The index of the value to return.
* @return The bytes of the excludedStringValue at the given index.
*/
public com.google.protobuf.ByteString
getExcludedStringValueBytes(int index) {
return excludedStringValue_.getByteString(index);
}
public static final int MIN_SEQUENCE_LENGTH_FIELD_NUMBER = 3;
private long minSequenceLength_ = 0L;
/**
*
* Min / max sequence length.
*
*
* optional int64 min_sequence_length = 3;
* @return Whether the minSequenceLength field is set.
*/
@java.lang.Override
public boolean hasMinSequenceLength() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Min / max sequence length.
*
*
* optional int64 min_sequence_length = 3;
* @return The minSequenceLength.
*/
@java.lang.Override
public long getMinSequenceLength() {
return minSequenceLength_;
}
public static final int MAX_SEQUENCE_LENGTH_FIELD_NUMBER = 4;
private long maxSequenceLength_ = 0L;
/**
* optional int64 max_sequence_length = 4;
* @return Whether the maxSequenceLength field is set.
*/
@java.lang.Override
public boolean hasMaxSequenceLength() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int64 max_sequence_length = 4;
* @return The maxSequenceLength.
*/
@java.lang.Override
public long getMaxSequenceLength() {
return maxSequenceLength_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < excludedIntValue_.size(); i++) {
output.writeInt64(1, excludedIntValue_.getLong(i));
}
for (int i = 0; i < excludedStringValue_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, excludedStringValue_.getRaw(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(3, minSequenceLength_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(4, maxSequenceLength_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < excludedIntValue_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(excludedIntValue_.getLong(i));
}
size += dataSize;
size += 1 * getExcludedIntValueList().size();
}
{
int dataSize = 0;
for (int i = 0; i < excludedStringValue_.size(); i++) {
dataSize += computeStringSizeNoTag(excludedStringValue_.getRaw(i));
}
size += dataSize;
size += 1 * getExcludedStringValueList().size();
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, minSequenceLength_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, maxSequenceLength_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tensorflow.metadata.v0.SequenceLengthConstraints)) {
return super.equals(obj);
}
org.tensorflow.metadata.v0.SequenceLengthConstraints other = (org.tensorflow.metadata.v0.SequenceLengthConstraints) obj;
if (!getExcludedIntValueList()
.equals(other.getExcludedIntValueList())) return false;
if (!getExcludedStringValueList()
.equals(other.getExcludedStringValueList())) return false;
if (hasMinSequenceLength() != other.hasMinSequenceLength()) return false;
if (hasMinSequenceLength()) {
if (getMinSequenceLength()
!= other.getMinSequenceLength()) return false;
}
if (hasMaxSequenceLength() != other.hasMaxSequenceLength()) return false;
if (hasMaxSequenceLength()) {
if (getMaxSequenceLength()
!= other.getMaxSequenceLength()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getExcludedIntValueCount() > 0) {
hash = (37 * hash) + EXCLUDED_INT_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getExcludedIntValueList().hashCode();
}
if (getExcludedStringValueCount() > 0) {
hash = (37 * hash) + EXCLUDED_STRING_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getExcludedStringValueList().hashCode();
}
if (hasMinSequenceLength()) {
hash = (37 * hash) + MIN_SEQUENCE_LENGTH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMinSequenceLength());
}
if (hasMaxSequenceLength()) {
hash = (37 * hash) + MAX_SEQUENCE_LENGTH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMaxSequenceLength());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.metadata.v0.SequenceLengthConstraints parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.SequenceLengthConstraints parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.metadata.v0.SequenceLengthConstraints parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.SequenceLengthConstraints parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.metadata.v0.SequenceLengthConstraints parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.metadata.v0.SequenceLengthConstraints parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.metadata.v0.SequenceLengthConstraints parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.SequenceLengthConstraints parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.metadata.v0.SequenceLengthConstraints parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.SequenceLengthConstraints parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.metadata.v0.SequenceLengthConstraints parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.metadata.v0.SequenceLengthConstraints parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.metadata.v0.SequenceLengthConstraints prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Encodes constraints on sequence lengths.
*
*
* Protobuf type {@code tensorflow.metadata.v0.SequenceLengthConstraints}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.metadata.v0.SequenceLengthConstraints)
org.tensorflow.metadata.v0.SequenceLengthConstraintsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.metadata.v0.SchemaOuterClass.internal_static_tensorflow_metadata_v0_SequenceLengthConstraints_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.metadata.v0.SchemaOuterClass.internal_static_tensorflow_metadata_v0_SequenceLengthConstraints_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.metadata.v0.SequenceLengthConstraints.class, org.tensorflow.metadata.v0.SequenceLengthConstraints.Builder.class);
}
// Construct using org.tensorflow.metadata.v0.SequenceLengthConstraints.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
excludedIntValue_ = emptyLongList();
excludedStringValue_ =
com.google.protobuf.LazyStringArrayList.emptyList();
minSequenceLength_ = 0L;
maxSequenceLength_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.metadata.v0.SchemaOuterClass.internal_static_tensorflow_metadata_v0_SequenceLengthConstraints_descriptor;
}
@java.lang.Override
public org.tensorflow.metadata.v0.SequenceLengthConstraints getDefaultInstanceForType() {
return org.tensorflow.metadata.v0.SequenceLengthConstraints.getDefaultInstance();
}
@java.lang.Override
public org.tensorflow.metadata.v0.SequenceLengthConstraints build() {
org.tensorflow.metadata.v0.SequenceLengthConstraints result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tensorflow.metadata.v0.SequenceLengthConstraints buildPartial() {
org.tensorflow.metadata.v0.SequenceLengthConstraints result = new org.tensorflow.metadata.v0.SequenceLengthConstraints(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.tensorflow.metadata.v0.SequenceLengthConstraints result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
excludedIntValue_.makeImmutable();
result.excludedIntValue_ = excludedIntValue_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
excludedStringValue_.makeImmutable();
result.excludedStringValue_ = excludedStringValue_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.minSequenceLength_ = minSequenceLength_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.maxSequenceLength_ = maxSequenceLength_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tensorflow.metadata.v0.SequenceLengthConstraints) {
return mergeFrom((org.tensorflow.metadata.v0.SequenceLengthConstraints)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.metadata.v0.SequenceLengthConstraints other) {
if (other == org.tensorflow.metadata.v0.SequenceLengthConstraints.getDefaultInstance()) return this;
if (!other.excludedIntValue_.isEmpty()) {
if (excludedIntValue_.isEmpty()) {
excludedIntValue_ = other.excludedIntValue_;
excludedIntValue_.makeImmutable();
bitField0_ |= 0x00000001;
} else {
ensureExcludedIntValueIsMutable();
excludedIntValue_.addAll(other.excludedIntValue_);
}
onChanged();
}
if (!other.excludedStringValue_.isEmpty()) {
if (excludedStringValue_.isEmpty()) {
excludedStringValue_ = other.excludedStringValue_;
bitField0_ |= 0x00000002;
} else {
ensureExcludedStringValueIsMutable();
excludedStringValue_.addAll(other.excludedStringValue_);
}
onChanged();
}
if (other.hasMinSequenceLength()) {
setMinSequenceLength(other.getMinSequenceLength());
}
if (other.hasMaxSequenceLength()) {
setMaxSequenceLength(other.getMaxSequenceLength());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
long v = input.readInt64();
ensureExcludedIntValueIsMutable();
excludedIntValue_.addLong(v);
break;
} // case 8
case 10: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureExcludedIntValueIsMutable();
while (input.getBytesUntilLimit() > 0) {
excludedIntValue_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
} // case 10
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureExcludedStringValueIsMutable();
excludedStringValue_.add(bs);
break;
} // case 18
case 24: {
minSequenceLength_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
maxSequenceLength_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.Internal.LongList excludedIntValue_ = emptyLongList();
private void ensureExcludedIntValueIsMutable() {
if (!excludedIntValue_.isModifiable()) {
excludedIntValue_ = makeMutableCopy(excludedIntValue_);
}
bitField0_ |= 0x00000001;
}
/**
*
* Token values (int and string) that are excluded when calculating sequence
* length.
*
*
* repeated int64 excluded_int_value = 1;
* @return A list containing the excludedIntValue.
*/
public java.util.List
getExcludedIntValueList() {
excludedIntValue_.makeImmutable();
return excludedIntValue_;
}
/**
*
* Token values (int and string) that are excluded when calculating sequence
* length.
*
*
* repeated int64 excluded_int_value = 1;
* @return The count of excludedIntValue.
*/
public int getExcludedIntValueCount() {
return excludedIntValue_.size();
}
/**
*
* Token values (int and string) that are excluded when calculating sequence
* length.
*
*
* repeated int64 excluded_int_value = 1;
* @param index The index of the element to return.
* @return The excludedIntValue at the given index.
*/
public long getExcludedIntValue(int index) {
return excludedIntValue_.getLong(index);
}
/**
*
* Token values (int and string) that are excluded when calculating sequence
* length.
*
*
* repeated int64 excluded_int_value = 1;
* @param index The index to set the value at.
* @param value The excludedIntValue to set.
* @return This builder for chaining.
*/
public Builder setExcludedIntValue(
int index, long value) {
ensureExcludedIntValueIsMutable();
excludedIntValue_.setLong(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Token values (int and string) that are excluded when calculating sequence
* length.
*
*
* repeated int64 excluded_int_value = 1;
* @param value The excludedIntValue to add.
* @return This builder for chaining.
*/
public Builder addExcludedIntValue(long value) {
ensureExcludedIntValueIsMutable();
excludedIntValue_.addLong(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Token values (int and string) that are excluded when calculating sequence
* length.
*
*
* repeated int64 excluded_int_value = 1;
* @param values The excludedIntValue to add.
* @return This builder for chaining.
*/
public Builder addAllExcludedIntValue(
java.lang.Iterable extends java.lang.Long> values) {
ensureExcludedIntValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, excludedIntValue_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Token values (int and string) that are excluded when calculating sequence
* length.
*
*
* repeated int64 excluded_int_value = 1;
* @return This builder for chaining.
*/
public Builder clearExcludedIntValue() {
excludedIntValue_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList excludedStringValue_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureExcludedStringValueIsMutable() {
if (!excludedStringValue_.isModifiable()) {
excludedStringValue_ = new com.google.protobuf.LazyStringArrayList(excludedStringValue_);
}
bitField0_ |= 0x00000002;
}
/**
* repeated string excluded_string_value = 2;
* @return A list containing the excludedStringValue.
*/
public com.google.protobuf.ProtocolStringList
getExcludedStringValueList() {
excludedStringValue_.makeImmutable();
return excludedStringValue_;
}
/**
* repeated string excluded_string_value = 2;
* @return The count of excludedStringValue.
*/
public int getExcludedStringValueCount() {
return excludedStringValue_.size();
}
/**
* repeated string excluded_string_value = 2;
* @param index The index of the element to return.
* @return The excludedStringValue at the given index.
*/
public java.lang.String getExcludedStringValue(int index) {
return excludedStringValue_.get(index);
}
/**
* repeated string excluded_string_value = 2;
* @param index The index of the value to return.
* @return The bytes of the excludedStringValue at the given index.
*/
public com.google.protobuf.ByteString
getExcludedStringValueBytes(int index) {
return excludedStringValue_.getByteString(index);
}
/**
* repeated string excluded_string_value = 2;
* @param index The index to set the value at.
* @param value The excludedStringValue to set.
* @return This builder for chaining.
*/
public Builder setExcludedStringValue(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureExcludedStringValueIsMutable();
excludedStringValue_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated string excluded_string_value = 2;
* @param value The excludedStringValue to add.
* @return This builder for chaining.
*/
public Builder addExcludedStringValue(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureExcludedStringValueIsMutable();
excludedStringValue_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated string excluded_string_value = 2;
* @param values The excludedStringValue to add.
* @return This builder for chaining.
*/
public Builder addAllExcludedStringValue(
java.lang.Iterable values) {
ensureExcludedStringValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, excludedStringValue_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated string excluded_string_value = 2;
* @return This builder for chaining.
*/
public Builder clearExcludedStringValue() {
excludedStringValue_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);;
onChanged();
return this;
}
/**
* repeated string excluded_string_value = 2;
* @param value The bytes of the excludedStringValue to add.
* @return This builder for chaining.
*/
public Builder addExcludedStringValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureExcludedStringValueIsMutable();
excludedStringValue_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private long minSequenceLength_ ;
/**
*
* Min / max sequence length.
*
*
* optional int64 min_sequence_length = 3;
* @return Whether the minSequenceLength field is set.
*/
@java.lang.Override
public boolean hasMinSequenceLength() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Min / max sequence length.
*
*
* optional int64 min_sequence_length = 3;
* @return The minSequenceLength.
*/
@java.lang.Override
public long getMinSequenceLength() {
return minSequenceLength_;
}
/**
*
* Min / max sequence length.
*
*
* optional int64 min_sequence_length = 3;
* @param value The minSequenceLength to set.
* @return This builder for chaining.
*/
public Builder setMinSequenceLength(long value) {
minSequenceLength_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Min / max sequence length.
*
*
* optional int64 min_sequence_length = 3;
* @return This builder for chaining.
*/
public Builder clearMinSequenceLength() {
bitField0_ = (bitField0_ & ~0x00000004);
minSequenceLength_ = 0L;
onChanged();
return this;
}
private long maxSequenceLength_ ;
/**
* optional int64 max_sequence_length = 4;
* @return Whether the maxSequenceLength field is set.
*/
@java.lang.Override
public boolean hasMaxSequenceLength() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional int64 max_sequence_length = 4;
* @return The maxSequenceLength.
*/
@java.lang.Override
public long getMaxSequenceLength() {
return maxSequenceLength_;
}
/**
* optional int64 max_sequence_length = 4;
* @param value The maxSequenceLength to set.
* @return This builder for chaining.
*/
public Builder setMaxSequenceLength(long value) {
maxSequenceLength_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional int64 max_sequence_length = 4;
* @return This builder for chaining.
*/
public Builder clearMaxSequenceLength() {
bitField0_ = (bitField0_ & ~0x00000008);
maxSequenceLength_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.metadata.v0.SequenceLengthConstraints)
}
// @@protoc_insertion_point(class_scope:tensorflow.metadata.v0.SequenceLengthConstraints)
private static final org.tensorflow.metadata.v0.SequenceLengthConstraints DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.metadata.v0.SequenceLengthConstraints();
}
public static org.tensorflow.metadata.v0.SequenceLengthConstraints getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SequenceLengthConstraints parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tensorflow.metadata.v0.SequenceLengthConstraints getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy