All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
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.
org.tensorflow.framework.AllocatorMemoryUsed Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: step_stats.proto
package org.tensorflow.framework;
/**
* Protobuf type {@code tensorflow.AllocatorMemoryUsed}
*/
public final class AllocatorMemoryUsed extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.AllocatorMemoryUsed)
AllocatorMemoryUsedOrBuilder {
// Use AllocatorMemoryUsed.newBuilder() to construct.
private AllocatorMemoryUsed(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private AllocatorMemoryUsed() {
allocatorName_ = "";
totalBytes_ = 0L;
peakBytes_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private AllocatorMemoryUsed(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
allocatorName_ = s;
break;
}
case 16: {
totalBytes_ = input.readInt64();
break;
}
case 24: {
peakBytes_ = input.readInt64();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.StepStatsProtos.internal_static_tensorflow_AllocatorMemoryUsed_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.StepStatsProtos.internal_static_tensorflow_AllocatorMemoryUsed_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.AllocatorMemoryUsed.class, org.tensorflow.framework.AllocatorMemoryUsed.Builder.class);
}
public static final int ALLOCATOR_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object allocatorName_;
/**
* optional string allocator_name = 1;
*/
public java.lang.String getAllocatorName() {
java.lang.Object ref = allocatorName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
allocatorName_ = s;
return s;
}
}
/**
* optional string allocator_name = 1;
*/
public com.google.protobuf.ByteString
getAllocatorNameBytes() {
java.lang.Object ref = allocatorName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
allocatorName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TOTAL_BYTES_FIELD_NUMBER = 2;
private long totalBytes_;
/**
* optional int64 total_bytes = 2;
*/
public long getTotalBytes() {
return totalBytes_;
}
public static final int PEAK_BYTES_FIELD_NUMBER = 3;
private long peakBytes_;
/**
* optional int64 peak_bytes = 3;
*/
public long getPeakBytes() {
return peakBytes_;
}
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 {
if (!getAllocatorNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, allocatorName_);
}
if (totalBytes_ != 0L) {
output.writeInt64(2, totalBytes_);
}
if (peakBytes_ != 0L) {
output.writeInt64(3, peakBytes_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getAllocatorNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, allocatorName_);
}
if (totalBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, totalBytes_);
}
if (peakBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, peakBytes_);
}
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.AllocatorMemoryUsed)) {
return super.equals(obj);
}
org.tensorflow.framework.AllocatorMemoryUsed other = (org.tensorflow.framework.AllocatorMemoryUsed) obj;
boolean result = true;
result = result && getAllocatorName()
.equals(other.getAllocatorName());
result = result && (getTotalBytes()
== other.getTotalBytes());
result = result && (getPeakBytes()
== other.getPeakBytes());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + ALLOCATOR_NAME_FIELD_NUMBER;
hash = (53 * hash) + getAllocatorName().hashCode();
hash = (37 * hash) + TOTAL_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalBytes());
hash = (37 * hash) + PEAK_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPeakBytes());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.framework.AllocatorMemoryUsed parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.AllocatorMemoryUsed 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.AllocatorMemoryUsed parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.AllocatorMemoryUsed parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.AllocatorMemoryUsed parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.AllocatorMemoryUsed 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.AllocatorMemoryUsed parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.AllocatorMemoryUsed 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.AllocatorMemoryUsed parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.AllocatorMemoryUsed 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.AllocatorMemoryUsed 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;
}
/**
* Protobuf type {@code tensorflow.AllocatorMemoryUsed}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.AllocatorMemoryUsed)
org.tensorflow.framework.AllocatorMemoryUsedOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.StepStatsProtos.internal_static_tensorflow_AllocatorMemoryUsed_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.StepStatsProtos.internal_static_tensorflow_AllocatorMemoryUsed_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.AllocatorMemoryUsed.class, org.tensorflow.framework.AllocatorMemoryUsed.Builder.class);
}
// Construct using org.tensorflow.framework.AllocatorMemoryUsed.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
allocatorName_ = "";
totalBytes_ = 0L;
peakBytes_ = 0L;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.framework.StepStatsProtos.internal_static_tensorflow_AllocatorMemoryUsed_descriptor;
}
public org.tensorflow.framework.AllocatorMemoryUsed getDefaultInstanceForType() {
return org.tensorflow.framework.AllocatorMemoryUsed.getDefaultInstance();
}
public org.tensorflow.framework.AllocatorMemoryUsed build() {
org.tensorflow.framework.AllocatorMemoryUsed result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.framework.AllocatorMemoryUsed buildPartial() {
org.tensorflow.framework.AllocatorMemoryUsed result = new org.tensorflow.framework.AllocatorMemoryUsed(this);
result.allocatorName_ = allocatorName_;
result.totalBytes_ = totalBytes_;
result.peakBytes_ = peakBytes_;
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.AllocatorMemoryUsed) {
return mergeFrom((org.tensorflow.framework.AllocatorMemoryUsed)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.framework.AllocatorMemoryUsed other) {
if (other == org.tensorflow.framework.AllocatorMemoryUsed.getDefaultInstance()) return this;
if (!other.getAllocatorName().isEmpty()) {
allocatorName_ = other.allocatorName_;
onChanged();
}
if (other.getTotalBytes() != 0L) {
setTotalBytes(other.getTotalBytes());
}
if (other.getPeakBytes() != 0L) {
setPeakBytes(other.getPeakBytes());
}
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.AllocatorMemoryUsed parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.framework.AllocatorMemoryUsed) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object allocatorName_ = "";
/**
* optional string allocator_name = 1;
*/
public java.lang.String getAllocatorName() {
java.lang.Object ref = allocatorName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
allocatorName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string allocator_name = 1;
*/
public com.google.protobuf.ByteString
getAllocatorNameBytes() {
java.lang.Object ref = allocatorName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
allocatorName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string allocator_name = 1;
*/
public Builder setAllocatorName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
allocatorName_ = value;
onChanged();
return this;
}
/**
* optional string allocator_name = 1;
*/
public Builder clearAllocatorName() {
allocatorName_ = getDefaultInstance().getAllocatorName();
onChanged();
return this;
}
/**
* optional string allocator_name = 1;
*/
public Builder setAllocatorNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
allocatorName_ = value;
onChanged();
return this;
}
private long totalBytes_ ;
/**
* optional int64 total_bytes = 2;
*/
public long getTotalBytes() {
return totalBytes_;
}
/**
* optional int64 total_bytes = 2;
*/
public Builder setTotalBytes(long value) {
totalBytes_ = value;
onChanged();
return this;
}
/**
* optional int64 total_bytes = 2;
*/
public Builder clearTotalBytes() {
totalBytes_ = 0L;
onChanged();
return this;
}
private long peakBytes_ ;
/**
* optional int64 peak_bytes = 3;
*/
public long getPeakBytes() {
return peakBytes_;
}
/**
* optional int64 peak_bytes = 3;
*/
public Builder setPeakBytes(long value) {
peakBytes_ = value;
onChanged();
return this;
}
/**
* optional int64 peak_bytes = 3;
*/
public Builder clearPeakBytes() {
peakBytes_ = 0L;
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.AllocatorMemoryUsed)
}
// @@protoc_insertion_point(class_scope:tensorflow.AllocatorMemoryUsed)
private static final org.tensorflow.framework.AllocatorMemoryUsed DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.framework.AllocatorMemoryUsed();
}
public static org.tensorflow.framework.AllocatorMemoryUsed getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public AllocatorMemoryUsed parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AllocatorMemoryUsed(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.AllocatorMemoryUsed getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}