Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
*
* optional int64 start = 1;
*/
public Builder clearStart() {
start_ = 0L;
onChanged();
return this;
}
/**
* optional int64 length = 2;
*/
public long getLength() {
if (hasLengthCase_ == 2) {
return (java.lang.Long) hasLength_;
}
return 0L;
}
/**
* optional int64 length = 2;
*/
public Builder setLength(long value) {
hasLengthCase_ = 2;
hasLength_ = value;
onChanged();
return this;
}
/**
* optional int64 length = 2;
*/
public Builder clearLength() {
if (hasLengthCase_ == 2) {
hasLengthCase_ = 0;
hasLength_ = null;
onChanged();
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:tensorflow.TensorSliceProto.Extent)
}
// @@protoc_insertion_point(class_scope:tensorflow.TensorSliceProto.Extent)
private static final org.tensorflow.framework.TensorSliceProto.Extent DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.framework.TensorSliceProto.Extent();
}
public static org.tensorflow.framework.TensorSliceProto.Extent getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Extent parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Extent(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tensorflow.framework.TensorSliceProto.Extent getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int EXTENT_FIELD_NUMBER = 1;
private java.util.List extent_;
/**
*
* Extent of the slice in all tensor dimensions.
* Must have one entry for each of the dimension of the tensor that this
* slice belongs to. The order of sizes is the same as the order of
* dimensions in the TensorShape.
*
* Extent of the slice in all tensor dimensions.
* Must have one entry for each of the dimension of the tensor that this
* slice belongs to. The order of sizes is the same as the order of
* dimensions in the TensorShape.
*
* Extent of the slice in all tensor dimensions.
* Must have one entry for each of the dimension of the tensor that this
* slice belongs to. The order of sizes is the same as the order of
* dimensions in the TensorShape.
*
*
* repeated .tensorflow.TensorSliceProto.Extent extent = 1;
*/
public int getExtentCount() {
return extent_.size();
}
/**
*
* Extent of the slice in all tensor dimensions.
* Must have one entry for each of the dimension of the tensor that this
* slice belongs to. The order of sizes is the same as the order of
* dimensions in the TensorShape.
*
* Extent of the slice in all tensor dimensions.
* Must have one entry for each of the dimension of the tensor that this
* slice belongs to. The order of sizes is the same as the order of
* dimensions in the TensorShape.
*
*
* repeated .tensorflow.TensorSliceProto.Extent extent = 1;
*/
public org.tensorflow.framework.TensorSliceProto.ExtentOrBuilder getExtentOrBuilder(
int index) {
return extent_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < extent_.size(); i++) {
output.writeMessage(1, extent_.get(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < extent_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, extent_.get(i));
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tensorflow.framework.TensorSliceProto)) {
return super.equals(obj);
}
org.tensorflow.framework.TensorSliceProto other = (org.tensorflow.framework.TensorSliceProto) obj;
boolean result = true;
result = result && getExtentList()
.equals(other.getExtentList());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (getExtentCount() > 0) {
hash = (37 * hash) + EXTENT_FIELD_NUMBER;
hash = (53 * hash) + getExtentList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.framework.TensorSliceProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.TensorSliceProto 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.framework.TensorSliceProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.TensorSliceProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.TensorSliceProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.TensorSliceProto 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.framework.TensorSliceProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.TensorSliceProto 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.framework.TensorSliceProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.TensorSliceProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.framework.TensorSliceProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* Can only be interpreted if you know the corresponding TensorShape.
*
*
* Protobuf type {@code tensorflow.TensorSliceProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.TensorSliceProto)
org.tensorflow.framework.TensorSliceProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.TensorSliceProtos.internal_static_tensorflow_TensorSliceProto_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.TensorSliceProtos.internal_static_tensorflow_TensorSliceProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.TensorSliceProto.class, org.tensorflow.framework.TensorSliceProto.Builder.class);
}
// Construct using org.tensorflow.framework.TensorSliceProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getExtentFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (extentBuilder_ == null) {
extent_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
extentBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.framework.TensorSliceProtos.internal_static_tensorflow_TensorSliceProto_descriptor;
}
public org.tensorflow.framework.TensorSliceProto getDefaultInstanceForType() {
return org.tensorflow.framework.TensorSliceProto.getDefaultInstance();
}
public org.tensorflow.framework.TensorSliceProto build() {
org.tensorflow.framework.TensorSliceProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.framework.TensorSliceProto buildPartial() {
org.tensorflow.framework.TensorSliceProto result = new org.tensorflow.framework.TensorSliceProto(this);
int from_bitField0_ = bitField0_;
if (extentBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
extent_ = java.util.Collections.unmodifiableList(extent_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.extent_ = extent_;
} else {
result.extent_ = extentBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tensorflow.framework.TensorSliceProto) {
return mergeFrom((org.tensorflow.framework.TensorSliceProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.framework.TensorSliceProto other) {
if (other == org.tensorflow.framework.TensorSliceProto.getDefaultInstance()) return this;
if (extentBuilder_ == null) {
if (!other.extent_.isEmpty()) {
if (extent_.isEmpty()) {
extent_ = other.extent_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureExtentIsMutable();
extent_.addAll(other.extent_);
}
onChanged();
}
} else {
if (!other.extent_.isEmpty()) {
if (extentBuilder_.isEmpty()) {
extentBuilder_.dispose();
extentBuilder_ = null;
extent_ = other.extent_;
bitField0_ = (bitField0_ & ~0x00000001);
extentBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getExtentFieldBuilder() : null;
} else {
extentBuilder_.addAllMessages(other.extent_);
}
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.framework.TensorSliceProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.framework.TensorSliceProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List extent_ =
java.util.Collections.emptyList();
private void ensureExtentIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
extent_ = new java.util.ArrayList(extent_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.framework.TensorSliceProto.Extent, org.tensorflow.framework.TensorSliceProto.Extent.Builder, org.tensorflow.framework.TensorSliceProto.ExtentOrBuilder> extentBuilder_;
/**
*
* Extent of the slice in all tensor dimensions.
* Must have one entry for each of the dimension of the tensor that this
* slice belongs to. The order of sizes is the same as the order of
* dimensions in the TensorShape.
*
* Extent of the slice in all tensor dimensions.
* Must have one entry for each of the dimension of the tensor that this
* slice belongs to. The order of sizes is the same as the order of
* dimensions in the TensorShape.
*
*
* repeated .tensorflow.TensorSliceProto.Extent extent = 1;
*/
public int getExtentCount() {
if (extentBuilder_ == null) {
return extent_.size();
} else {
return extentBuilder_.getCount();
}
}
/**
*
* Extent of the slice in all tensor dimensions.
* Must have one entry for each of the dimension of the tensor that this
* slice belongs to. The order of sizes is the same as the order of
* dimensions in the TensorShape.
*
* Extent of the slice in all tensor dimensions.
* Must have one entry for each of the dimension of the tensor that this
* slice belongs to. The order of sizes is the same as the order of
* dimensions in the TensorShape.
*
*
* repeated .tensorflow.TensorSliceProto.Extent extent = 1;
*/
public Builder setExtent(
int index, org.tensorflow.framework.TensorSliceProto.Extent value) {
if (extentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExtentIsMutable();
extent_.set(index, value);
onChanged();
} else {
extentBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Extent of the slice in all tensor dimensions.
* Must have one entry for each of the dimension of the tensor that this
* slice belongs to. The order of sizes is the same as the order of
* dimensions in the TensorShape.
*
* Extent of the slice in all tensor dimensions.
* Must have one entry for each of the dimension of the tensor that this
* slice belongs to. The order of sizes is the same as the order of
* dimensions in the TensorShape.
*
*
* repeated .tensorflow.TensorSliceProto.Extent extent = 1;
*/
public Builder addExtent(org.tensorflow.framework.TensorSliceProto.Extent value) {
if (extentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExtentIsMutable();
extent_.add(value);
onChanged();
} else {
extentBuilder_.addMessage(value);
}
return this;
}
/**
*
* Extent of the slice in all tensor dimensions.
* Must have one entry for each of the dimension of the tensor that this
* slice belongs to. The order of sizes is the same as the order of
* dimensions in the TensorShape.
*
*
* repeated .tensorflow.TensorSliceProto.Extent extent = 1;
*/
public Builder addExtent(
int index, org.tensorflow.framework.TensorSliceProto.Extent value) {
if (extentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExtentIsMutable();
extent_.add(index, value);
onChanged();
} else {
extentBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Extent of the slice in all tensor dimensions.
* Must have one entry for each of the dimension of the tensor that this
* slice belongs to. The order of sizes is the same as the order of
* dimensions in the TensorShape.
*
* Extent of the slice in all tensor dimensions.
* Must have one entry for each of the dimension of the tensor that this
* slice belongs to. The order of sizes is the same as the order of
* dimensions in the TensorShape.
*
* Extent of the slice in all tensor dimensions.
* Must have one entry for each of the dimension of the tensor that this
* slice belongs to. The order of sizes is the same as the order of
* dimensions in the TensorShape.
*
* Extent of the slice in all tensor dimensions.
* Must have one entry for each of the dimension of the tensor that this
* slice belongs to. The order of sizes is the same as the order of
* dimensions in the TensorShape.
*
* Extent of the slice in all tensor dimensions.
* Must have one entry for each of the dimension of the tensor that this
* slice belongs to. The order of sizes is the same as the order of
* dimensions in the TensorShape.
*
* Extent of the slice in all tensor dimensions.
* Must have one entry for each of the dimension of the tensor that this
* slice belongs to. The order of sizes is the same as the order of
* dimensions in the TensorShape.
*
*
* repeated .tensorflow.TensorSliceProto.Extent extent = 1;
*/
public org.tensorflow.framework.TensorSliceProto.Extent.Builder getExtentBuilder(
int index) {
return getExtentFieldBuilder().getBuilder(index);
}
/**
*
* Extent of the slice in all tensor dimensions.
* Must have one entry for each of the dimension of the tensor that this
* slice belongs to. The order of sizes is the same as the order of
* dimensions in the TensorShape.
*
*
* repeated .tensorflow.TensorSliceProto.Extent extent = 1;
*/
public org.tensorflow.framework.TensorSliceProto.ExtentOrBuilder getExtentOrBuilder(
int index) {
if (extentBuilder_ == null) {
return extent_.get(index); } else {
return extentBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Extent of the slice in all tensor dimensions.
* Must have one entry for each of the dimension of the tensor that this
* slice belongs to. The order of sizes is the same as the order of
* dimensions in the TensorShape.
*
* Extent of the slice in all tensor dimensions.
* Must have one entry for each of the dimension of the tensor that this
* slice belongs to. The order of sizes is the same as the order of
* dimensions in the TensorShape.
*
* Extent of the slice in all tensor dimensions.
* Must have one entry for each of the dimension of the tensor that this
* slice belongs to. The order of sizes is the same as the order of
* dimensions in the TensorShape.
*
* Extent of the slice in all tensor dimensions.
* Must have one entry for each of the dimension of the tensor that this
* slice belongs to. The order of sizes is the same as the order of
* dimensions in the TensorShape.
*
*
* repeated .tensorflow.TensorSliceProto.Extent extent = 1;
*/
public java.util.List
getExtentBuilderList() {
return getExtentFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.framework.TensorSliceProto.Extent, org.tensorflow.framework.TensorSliceProto.Extent.Builder, org.tensorflow.framework.TensorSliceProto.ExtentOrBuilder>
getExtentFieldBuilder() {
if (extentBuilder_ == null) {
extentBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.framework.TensorSliceProto.Extent, org.tensorflow.framework.TensorSliceProto.Extent.Builder, org.tensorflow.framework.TensorSliceProto.ExtentOrBuilder>(
extent_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
extent_ = null;
}
return extentBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:tensorflow.TensorSliceProto)
}
// @@protoc_insertion_point(class_scope:tensorflow.TensorSliceProto)
private static final org.tensorflow.framework.TensorSliceProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.framework.TensorSliceProto();
}
public static org.tensorflow.framework.TensorSliceProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public TensorSliceProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TensorSliceProto(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tensorflow.framework.TensorSliceProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}