All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tensorflow.DebugService Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tensorflow/core/debug/debug_service.proto

package tensorflow;

public final class DebugService {
  private DebugService() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface EventReplyOrBuilder extends
      // @@protoc_insertion_point(interface_extends:tensorflow.EventReply)
      com.google.protobuf.MessageOrBuilder {

    /**
     * repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1;
     */
    java.util.List 
        getDebugOpStateChangesList();
    /**
     * repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1;
     */
    tensorflow.DebugService.EventReply.DebugOpStateChange getDebugOpStateChanges(int index);
    /**
     * repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1;
     */
    int getDebugOpStateChangesCount();
    /**
     * repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1;
     */
    java.util.List 
        getDebugOpStateChangesOrBuilderList();
    /**
     * repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1;
     */
    tensorflow.DebugService.EventReply.DebugOpStateChangeOrBuilder getDebugOpStateChangesOrBuilder(
        int index);

    /**
     * 
     * New tensor value to override the current tensor value with.
     * 
* * .tensorflow.TensorProto tensor = 2; */ boolean hasTensor(); /** *
     * New tensor value to override the current tensor value with.
     * 
* * .tensorflow.TensorProto tensor = 2; */ org.tensorflow.framework.TensorProto getTensor(); /** *
     * New tensor value to override the current tensor value with.
     * 
* * .tensorflow.TensorProto tensor = 2; */ org.tensorflow.framework.TensorProtoOrBuilder getTensorOrBuilder(); } /** *
   * Reply message from EventListener to the client, i.e., to the source of the
   * Event protocol buffers, e.g., debug ops inserted by a debugged runtime to a
   * TensorFlow graph being executed.
   * 
* * Protobuf type {@code tensorflow.EventReply} */ public static final class EventReply extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.EventReply) EventReplyOrBuilder { private static final long serialVersionUID = 0L; // Use EventReply.newBuilder() to construct. private EventReply(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EventReply() { debugOpStateChanges_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EventReply( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { debugOpStateChanges_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } debugOpStateChanges_.add( input.readMessage(tensorflow.DebugService.EventReply.DebugOpStateChange.parser(), extensionRegistry)); break; } case 18: { org.tensorflow.framework.TensorProto.Builder subBuilder = null; if (tensor_ != null) { subBuilder = tensor_.toBuilder(); } tensor_ = input.readMessage(org.tensorflow.framework.TensorProto.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tensor_); tensor_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } 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 { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { debugOpStateChanges_ = java.util.Collections.unmodifiableList(debugOpStateChanges_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.DebugService.internal_static_tensorflow_EventReply_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.DebugService.internal_static_tensorflow_EventReply_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.DebugService.EventReply.class, tensorflow.DebugService.EventReply.Builder.class); } public interface DebugOpStateChangeOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.EventReply.DebugOpStateChange) com.google.protobuf.MessageOrBuilder { /** * .tensorflow.EventReply.DebugOpStateChange.State state = 1; */ int getStateValue(); /** * .tensorflow.EventReply.DebugOpStateChange.State state = 1; */ tensorflow.DebugService.EventReply.DebugOpStateChange.State getState(); /** * string node_name = 2; */ java.lang.String getNodeName(); /** * string node_name = 2; */ com.google.protobuf.ByteString getNodeNameBytes(); /** * int32 output_slot = 3; */ int getOutputSlot(); /** * string debug_op = 4; */ java.lang.String getDebugOp(); /** * string debug_op = 4; */ com.google.protobuf.ByteString getDebugOpBytes(); } /** * Protobuf type {@code tensorflow.EventReply.DebugOpStateChange} */ public static final class DebugOpStateChange extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.EventReply.DebugOpStateChange) DebugOpStateChangeOrBuilder { private static final long serialVersionUID = 0L; // Use DebugOpStateChange.newBuilder() to construct. private DebugOpStateChange(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DebugOpStateChange() { state_ = 0; nodeName_ = ""; outputSlot_ = 0; debugOp_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DebugOpStateChange( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); state_ = rawValue; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); nodeName_ = s; break; } case 24: { outputSlot_ = input.readInt32(); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); debugOp_ = s; break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.DebugService.internal_static_tensorflow_EventReply_DebugOpStateChange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.DebugService.internal_static_tensorflow_EventReply_DebugOpStateChange_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.DebugService.EventReply.DebugOpStateChange.class, tensorflow.DebugService.EventReply.DebugOpStateChange.Builder.class); } /** * Protobuf enum {@code tensorflow.EventReply.DebugOpStateChange.State} */ public enum State implements com.google.protobuf.ProtocolMessageEnum { /** * STATE_UNSPECIFIED = 0; */ STATE_UNSPECIFIED(0), /** * DISABLED = 1; */ DISABLED(1), /** * READ_ONLY = 2; */ READ_ONLY(2), /** * READ_WRITE = 3; */ READ_WRITE(3), UNRECOGNIZED(-1), ; /** * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** * DISABLED = 1; */ public static final int DISABLED_VALUE = 1; /** * READ_ONLY = 2; */ public static final int READ_ONLY_VALUE = 2; /** * READ_WRITE = 3; */ public static final int READ_WRITE_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static State valueOf(int value) { return forNumber(value); } public static State forNumber(int value) { switch (value) { case 0: return STATE_UNSPECIFIED; case 1: return DISABLED; case 2: return READ_ONLY; case 3: return READ_WRITE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< State> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public State findValueByNumber(int number) { return State.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return tensorflow.DebugService.EventReply.DebugOpStateChange.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); public static State valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private State(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:tensorflow.EventReply.DebugOpStateChange.State) } public static final int STATE_FIELD_NUMBER = 1; private int state_; /** * .tensorflow.EventReply.DebugOpStateChange.State state = 1; */ public int getStateValue() { return state_; } /** * .tensorflow.EventReply.DebugOpStateChange.State state = 1; */ public tensorflow.DebugService.EventReply.DebugOpStateChange.State getState() { @SuppressWarnings("deprecation") tensorflow.DebugService.EventReply.DebugOpStateChange.State result = tensorflow.DebugService.EventReply.DebugOpStateChange.State.valueOf(state_); return result == null ? tensorflow.DebugService.EventReply.DebugOpStateChange.State.UNRECOGNIZED : result; } public static final int NODE_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object nodeName_; /** * string node_name = 2; */ public java.lang.String getNodeName() { java.lang.Object ref = nodeName_; 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(); nodeName_ = s; return s; } } /** * string node_name = 2; */ public com.google.protobuf.ByteString getNodeNameBytes() { java.lang.Object ref = nodeName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nodeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OUTPUT_SLOT_FIELD_NUMBER = 3; private int outputSlot_; /** * int32 output_slot = 3; */ public int getOutputSlot() { return outputSlot_; } public static final int DEBUG_OP_FIELD_NUMBER = 4; private volatile java.lang.Object debugOp_; /** * string debug_op = 4; */ public java.lang.String getDebugOp() { java.lang.Object ref = debugOp_; 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(); debugOp_ = s; return s; } } /** * string debug_op = 4; */ public com.google.protobuf.ByteString getDebugOpBytes() { java.lang.Object ref = debugOp_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); debugOp_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 { if (state_ != tensorflow.DebugService.EventReply.DebugOpStateChange.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } if (!getNodeNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nodeName_); } if (outputSlot_ != 0) { output.writeInt32(3, outputSlot_); } if (!getDebugOpBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, debugOp_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (state_ != tensorflow.DebugService.EventReply.DebugOpStateChange.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, state_); } if (!getNodeNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nodeName_); } if (outputSlot_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, outputSlot_); } if (!getDebugOpBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, debugOp_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tensorflow.DebugService.EventReply.DebugOpStateChange)) { return super.equals(obj); } tensorflow.DebugService.EventReply.DebugOpStateChange other = (tensorflow.DebugService.EventReply.DebugOpStateChange) obj; boolean result = true; result = result && state_ == other.state_; result = result && getNodeName() .equals(other.getNodeName()); result = result && (getOutputSlot() == other.getOutputSlot()); result = result && getDebugOp() .equals(other.getDebugOp()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + NODE_NAME_FIELD_NUMBER; hash = (53 * hash) + getNodeName().hashCode(); hash = (37 * hash) + OUTPUT_SLOT_FIELD_NUMBER; hash = (53 * hash) + getOutputSlot(); hash = (37 * hash) + DEBUG_OP_FIELD_NUMBER; hash = (53 * hash) + getDebugOp().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tensorflow.DebugService.EventReply.DebugOpStateChange parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.DebugService.EventReply.DebugOpStateChange parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.DebugService.EventReply.DebugOpStateChange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.DebugService.EventReply.DebugOpStateChange parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.DebugService.EventReply.DebugOpStateChange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.DebugService.EventReply.DebugOpStateChange parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.DebugService.EventReply.DebugOpStateChange parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.DebugService.EventReply.DebugOpStateChange 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 tensorflow.DebugService.EventReply.DebugOpStateChange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tensorflow.DebugService.EventReply.DebugOpStateChange 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 tensorflow.DebugService.EventReply.DebugOpStateChange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.DebugService.EventReply.DebugOpStateChange 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(tensorflow.DebugService.EventReply.DebugOpStateChange 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; } /** * Protobuf type {@code tensorflow.EventReply.DebugOpStateChange} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.EventReply.DebugOpStateChange) tensorflow.DebugService.EventReply.DebugOpStateChangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.DebugService.internal_static_tensorflow_EventReply_DebugOpStateChange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.DebugService.internal_static_tensorflow_EventReply_DebugOpStateChange_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.DebugService.EventReply.DebugOpStateChange.class, tensorflow.DebugService.EventReply.DebugOpStateChange.Builder.class); } // Construct using tensorflow.DebugService.EventReply.DebugOpStateChange.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); state_ = 0; nodeName_ = ""; outputSlot_ = 0; debugOp_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.DebugService.internal_static_tensorflow_EventReply_DebugOpStateChange_descriptor; } @java.lang.Override public tensorflow.DebugService.EventReply.DebugOpStateChange getDefaultInstanceForType() { return tensorflow.DebugService.EventReply.DebugOpStateChange.getDefaultInstance(); } @java.lang.Override public tensorflow.DebugService.EventReply.DebugOpStateChange build() { tensorflow.DebugService.EventReply.DebugOpStateChange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tensorflow.DebugService.EventReply.DebugOpStateChange buildPartial() { tensorflow.DebugService.EventReply.DebugOpStateChange result = new tensorflow.DebugService.EventReply.DebugOpStateChange(this); result.state_ = state_; result.nodeName_ = nodeName_; result.outputSlot_ = outputSlot_; result.debugOp_ = debugOp_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tensorflow.DebugService.EventReply.DebugOpStateChange) { return mergeFrom((tensorflow.DebugService.EventReply.DebugOpStateChange)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tensorflow.DebugService.EventReply.DebugOpStateChange other) { if (other == tensorflow.DebugService.EventReply.DebugOpStateChange.getDefaultInstance()) return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } if (!other.getNodeName().isEmpty()) { nodeName_ = other.nodeName_; onChanged(); } if (other.getOutputSlot() != 0) { setOutputSlot(other.getOutputSlot()); } if (!other.getDebugOp().isEmpty()) { debugOp_ = other.debugOp_; onChanged(); } this.mergeUnknownFields(other.unknownFields); 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 { tensorflow.DebugService.EventReply.DebugOpStateChange parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tensorflow.DebugService.EventReply.DebugOpStateChange) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int state_ = 0; /** * .tensorflow.EventReply.DebugOpStateChange.State state = 1; */ public int getStateValue() { return state_; } /** * .tensorflow.EventReply.DebugOpStateChange.State state = 1; */ public Builder setStateValue(int value) { state_ = value; onChanged(); return this; } /** * .tensorflow.EventReply.DebugOpStateChange.State state = 1; */ public tensorflow.DebugService.EventReply.DebugOpStateChange.State getState() { @SuppressWarnings("deprecation") tensorflow.DebugService.EventReply.DebugOpStateChange.State result = tensorflow.DebugService.EventReply.DebugOpStateChange.State.valueOf(state_); return result == null ? tensorflow.DebugService.EventReply.DebugOpStateChange.State.UNRECOGNIZED : result; } /** * .tensorflow.EventReply.DebugOpStateChange.State state = 1; */ public Builder setState(tensorflow.DebugService.EventReply.DebugOpStateChange.State value) { if (value == null) { throw new NullPointerException(); } state_ = value.getNumber(); onChanged(); return this; } /** * .tensorflow.EventReply.DebugOpStateChange.State state = 1; */ public Builder clearState() { state_ = 0; onChanged(); return this; } private java.lang.Object nodeName_ = ""; /** * string node_name = 2; */ public java.lang.String getNodeName() { java.lang.Object ref = nodeName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string node_name = 2; */ public com.google.protobuf.ByteString getNodeNameBytes() { java.lang.Object ref = nodeName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nodeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string node_name = 2; */ public Builder setNodeName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nodeName_ = value; onChanged(); return this; } /** * string node_name = 2; */ public Builder clearNodeName() { nodeName_ = getDefaultInstance().getNodeName(); onChanged(); return this; } /** * string node_name = 2; */ public Builder setNodeNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nodeName_ = value; onChanged(); return this; } private int outputSlot_ ; /** * int32 output_slot = 3; */ public int getOutputSlot() { return outputSlot_; } /** * int32 output_slot = 3; */ public Builder setOutputSlot(int value) { outputSlot_ = value; onChanged(); return this; } /** * int32 output_slot = 3; */ public Builder clearOutputSlot() { outputSlot_ = 0; onChanged(); return this; } private java.lang.Object debugOp_ = ""; /** * string debug_op = 4; */ public java.lang.String getDebugOp() { java.lang.Object ref = debugOp_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); debugOp_ = s; return s; } else { return (java.lang.String) ref; } } /** * string debug_op = 4; */ public com.google.protobuf.ByteString getDebugOpBytes() { java.lang.Object ref = debugOp_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); debugOp_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string debug_op = 4; */ public Builder setDebugOp( java.lang.String value) { if (value == null) { throw new NullPointerException(); } debugOp_ = value; onChanged(); return this; } /** * string debug_op = 4; */ public Builder clearDebugOp() { debugOp_ = getDefaultInstance().getDebugOp(); onChanged(); return this; } /** * string debug_op = 4; */ public Builder setDebugOpBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); debugOp_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.EventReply.DebugOpStateChange) } // @@protoc_insertion_point(class_scope:tensorflow.EventReply.DebugOpStateChange) private static final tensorflow.DebugService.EventReply.DebugOpStateChange DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tensorflow.DebugService.EventReply.DebugOpStateChange(); } public static tensorflow.DebugService.EventReply.DebugOpStateChange getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DebugOpStateChange parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DebugOpStateChange(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tensorflow.DebugService.EventReply.DebugOpStateChange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int DEBUG_OP_STATE_CHANGES_FIELD_NUMBER = 1; private java.util.List debugOpStateChanges_; /** * repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1; */ public java.util.List getDebugOpStateChangesList() { return debugOpStateChanges_; } /** * repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1; */ public java.util.List getDebugOpStateChangesOrBuilderList() { return debugOpStateChanges_; } /** * repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1; */ public int getDebugOpStateChangesCount() { return debugOpStateChanges_.size(); } /** * repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1; */ public tensorflow.DebugService.EventReply.DebugOpStateChange getDebugOpStateChanges(int index) { return debugOpStateChanges_.get(index); } /** * repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1; */ public tensorflow.DebugService.EventReply.DebugOpStateChangeOrBuilder getDebugOpStateChangesOrBuilder( int index) { return debugOpStateChanges_.get(index); } public static final int TENSOR_FIELD_NUMBER = 2; private org.tensorflow.framework.TensorProto tensor_; /** *
     * New tensor value to override the current tensor value with.
     * 
* * .tensorflow.TensorProto tensor = 2; */ public boolean hasTensor() { return tensor_ != null; } /** *
     * New tensor value to override the current tensor value with.
     * 
* * .tensorflow.TensorProto tensor = 2; */ public org.tensorflow.framework.TensorProto getTensor() { return tensor_ == null ? org.tensorflow.framework.TensorProto.getDefaultInstance() : tensor_; } /** *
     * New tensor value to override the current tensor value with.
     * 
* * .tensorflow.TensorProto tensor = 2; */ public org.tensorflow.framework.TensorProtoOrBuilder getTensorOrBuilder() { return getTensor(); } 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 < debugOpStateChanges_.size(); i++) { output.writeMessage(1, debugOpStateChanges_.get(i)); } if (tensor_ != null) { output.writeMessage(2, getTensor()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < debugOpStateChanges_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, debugOpStateChanges_.get(i)); } if (tensor_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTensor()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tensorflow.DebugService.EventReply)) { return super.equals(obj); } tensorflow.DebugService.EventReply other = (tensorflow.DebugService.EventReply) obj; boolean result = true; result = result && getDebugOpStateChangesList() .equals(other.getDebugOpStateChangesList()); result = result && (hasTensor() == other.hasTensor()); if (hasTensor()) { result = result && getTensor() .equals(other.getTensor()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getDebugOpStateChangesCount() > 0) { hash = (37 * hash) + DEBUG_OP_STATE_CHANGES_FIELD_NUMBER; hash = (53 * hash) + getDebugOpStateChangesList().hashCode(); } if (hasTensor()) { hash = (37 * hash) + TENSOR_FIELD_NUMBER; hash = (53 * hash) + getTensor().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tensorflow.DebugService.EventReply parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.DebugService.EventReply parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.DebugService.EventReply parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.DebugService.EventReply parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.DebugService.EventReply parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.DebugService.EventReply parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.DebugService.EventReply parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.DebugService.EventReply 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 tensorflow.DebugService.EventReply parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tensorflow.DebugService.EventReply 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 tensorflow.DebugService.EventReply parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.DebugService.EventReply 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(tensorflow.DebugService.EventReply 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; } /** *
     * Reply message from EventListener to the client, i.e., to the source of the
     * Event protocol buffers, e.g., debug ops inserted by a debugged runtime to a
     * TensorFlow graph being executed.
     * 
* * Protobuf type {@code tensorflow.EventReply} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.EventReply) tensorflow.DebugService.EventReplyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.DebugService.internal_static_tensorflow_EventReply_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.DebugService.internal_static_tensorflow_EventReply_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.DebugService.EventReply.class, tensorflow.DebugService.EventReply.Builder.class); } // Construct using tensorflow.DebugService.EventReply.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDebugOpStateChangesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (debugOpStateChangesBuilder_ == null) { debugOpStateChanges_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { debugOpStateChangesBuilder_.clear(); } if (tensorBuilder_ == null) { tensor_ = null; } else { tensor_ = null; tensorBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.DebugService.internal_static_tensorflow_EventReply_descriptor; } @java.lang.Override public tensorflow.DebugService.EventReply getDefaultInstanceForType() { return tensorflow.DebugService.EventReply.getDefaultInstance(); } @java.lang.Override public tensorflow.DebugService.EventReply build() { tensorflow.DebugService.EventReply result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tensorflow.DebugService.EventReply buildPartial() { tensorflow.DebugService.EventReply result = new tensorflow.DebugService.EventReply(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (debugOpStateChangesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { debugOpStateChanges_ = java.util.Collections.unmodifiableList(debugOpStateChanges_); bitField0_ = (bitField0_ & ~0x00000001); } result.debugOpStateChanges_ = debugOpStateChanges_; } else { result.debugOpStateChanges_ = debugOpStateChangesBuilder_.build(); } if (tensorBuilder_ == null) { result.tensor_ = tensor_; } else { result.tensor_ = tensorBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tensorflow.DebugService.EventReply) { return mergeFrom((tensorflow.DebugService.EventReply)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tensorflow.DebugService.EventReply other) { if (other == tensorflow.DebugService.EventReply.getDefaultInstance()) return this; if (debugOpStateChangesBuilder_ == null) { if (!other.debugOpStateChanges_.isEmpty()) { if (debugOpStateChanges_.isEmpty()) { debugOpStateChanges_ = other.debugOpStateChanges_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDebugOpStateChangesIsMutable(); debugOpStateChanges_.addAll(other.debugOpStateChanges_); } onChanged(); } } else { if (!other.debugOpStateChanges_.isEmpty()) { if (debugOpStateChangesBuilder_.isEmpty()) { debugOpStateChangesBuilder_.dispose(); debugOpStateChangesBuilder_ = null; debugOpStateChanges_ = other.debugOpStateChanges_; bitField0_ = (bitField0_ & ~0x00000001); debugOpStateChangesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDebugOpStateChangesFieldBuilder() : null; } else { debugOpStateChangesBuilder_.addAllMessages(other.debugOpStateChanges_); } } } if (other.hasTensor()) { mergeTensor(other.getTensor()); } this.mergeUnknownFields(other.unknownFields); 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 { tensorflow.DebugService.EventReply parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tensorflow.DebugService.EventReply) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List debugOpStateChanges_ = java.util.Collections.emptyList(); private void ensureDebugOpStateChangesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { debugOpStateChanges_ = new java.util.ArrayList(debugOpStateChanges_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< tensorflow.DebugService.EventReply.DebugOpStateChange, tensorflow.DebugService.EventReply.DebugOpStateChange.Builder, tensorflow.DebugService.EventReply.DebugOpStateChangeOrBuilder> debugOpStateChangesBuilder_; /** * repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1; */ public java.util.List getDebugOpStateChangesList() { if (debugOpStateChangesBuilder_ == null) { return java.util.Collections.unmodifiableList(debugOpStateChanges_); } else { return debugOpStateChangesBuilder_.getMessageList(); } } /** * repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1; */ public int getDebugOpStateChangesCount() { if (debugOpStateChangesBuilder_ == null) { return debugOpStateChanges_.size(); } else { return debugOpStateChangesBuilder_.getCount(); } } /** * repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1; */ public tensorflow.DebugService.EventReply.DebugOpStateChange getDebugOpStateChanges(int index) { if (debugOpStateChangesBuilder_ == null) { return debugOpStateChanges_.get(index); } else { return debugOpStateChangesBuilder_.getMessage(index); } } /** * repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1; */ public Builder setDebugOpStateChanges( int index, tensorflow.DebugService.EventReply.DebugOpStateChange value) { if (debugOpStateChangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDebugOpStateChangesIsMutable(); debugOpStateChanges_.set(index, value); onChanged(); } else { debugOpStateChangesBuilder_.setMessage(index, value); } return this; } /** * repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1; */ public Builder setDebugOpStateChanges( int index, tensorflow.DebugService.EventReply.DebugOpStateChange.Builder builderForValue) { if (debugOpStateChangesBuilder_ == null) { ensureDebugOpStateChangesIsMutable(); debugOpStateChanges_.set(index, builderForValue.build()); onChanged(); } else { debugOpStateChangesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1; */ public Builder addDebugOpStateChanges(tensorflow.DebugService.EventReply.DebugOpStateChange value) { if (debugOpStateChangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDebugOpStateChangesIsMutable(); debugOpStateChanges_.add(value); onChanged(); } else { debugOpStateChangesBuilder_.addMessage(value); } return this; } /** * repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1; */ public Builder addDebugOpStateChanges( int index, tensorflow.DebugService.EventReply.DebugOpStateChange value) { if (debugOpStateChangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDebugOpStateChangesIsMutable(); debugOpStateChanges_.add(index, value); onChanged(); } else { debugOpStateChangesBuilder_.addMessage(index, value); } return this; } /** * repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1; */ public Builder addDebugOpStateChanges( tensorflow.DebugService.EventReply.DebugOpStateChange.Builder builderForValue) { if (debugOpStateChangesBuilder_ == null) { ensureDebugOpStateChangesIsMutable(); debugOpStateChanges_.add(builderForValue.build()); onChanged(); } else { debugOpStateChangesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1; */ public Builder addDebugOpStateChanges( int index, tensorflow.DebugService.EventReply.DebugOpStateChange.Builder builderForValue) { if (debugOpStateChangesBuilder_ == null) { ensureDebugOpStateChangesIsMutable(); debugOpStateChanges_.add(index, builderForValue.build()); onChanged(); } else { debugOpStateChangesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1; */ public Builder addAllDebugOpStateChanges( java.lang.Iterable values) { if (debugOpStateChangesBuilder_ == null) { ensureDebugOpStateChangesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, debugOpStateChanges_); onChanged(); } else { debugOpStateChangesBuilder_.addAllMessages(values); } return this; } /** * repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1; */ public Builder clearDebugOpStateChanges() { if (debugOpStateChangesBuilder_ == null) { debugOpStateChanges_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { debugOpStateChangesBuilder_.clear(); } return this; } /** * repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1; */ public Builder removeDebugOpStateChanges(int index) { if (debugOpStateChangesBuilder_ == null) { ensureDebugOpStateChangesIsMutable(); debugOpStateChanges_.remove(index); onChanged(); } else { debugOpStateChangesBuilder_.remove(index); } return this; } /** * repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1; */ public tensorflow.DebugService.EventReply.DebugOpStateChange.Builder getDebugOpStateChangesBuilder( int index) { return getDebugOpStateChangesFieldBuilder().getBuilder(index); } /** * repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1; */ public tensorflow.DebugService.EventReply.DebugOpStateChangeOrBuilder getDebugOpStateChangesOrBuilder( int index) { if (debugOpStateChangesBuilder_ == null) { return debugOpStateChanges_.get(index); } else { return debugOpStateChangesBuilder_.getMessageOrBuilder(index); } } /** * repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1; */ public java.util.List getDebugOpStateChangesOrBuilderList() { if (debugOpStateChangesBuilder_ != null) { return debugOpStateChangesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(debugOpStateChanges_); } } /** * repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1; */ public tensorflow.DebugService.EventReply.DebugOpStateChange.Builder addDebugOpStateChangesBuilder() { return getDebugOpStateChangesFieldBuilder().addBuilder( tensorflow.DebugService.EventReply.DebugOpStateChange.getDefaultInstance()); } /** * repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1; */ public tensorflow.DebugService.EventReply.DebugOpStateChange.Builder addDebugOpStateChangesBuilder( int index) { return getDebugOpStateChangesFieldBuilder().addBuilder( index, tensorflow.DebugService.EventReply.DebugOpStateChange.getDefaultInstance()); } /** * repeated .tensorflow.EventReply.DebugOpStateChange debug_op_state_changes = 1; */ public java.util.List getDebugOpStateChangesBuilderList() { return getDebugOpStateChangesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tensorflow.DebugService.EventReply.DebugOpStateChange, tensorflow.DebugService.EventReply.DebugOpStateChange.Builder, tensorflow.DebugService.EventReply.DebugOpStateChangeOrBuilder> getDebugOpStateChangesFieldBuilder() { if (debugOpStateChangesBuilder_ == null) { debugOpStateChangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tensorflow.DebugService.EventReply.DebugOpStateChange, tensorflow.DebugService.EventReply.DebugOpStateChange.Builder, tensorflow.DebugService.EventReply.DebugOpStateChangeOrBuilder>( debugOpStateChanges_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); debugOpStateChanges_ = null; } return debugOpStateChangesBuilder_; } private org.tensorflow.framework.TensorProto tensor_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.TensorProto, org.tensorflow.framework.TensorProto.Builder, org.tensorflow.framework.TensorProtoOrBuilder> tensorBuilder_; /** *
       * New tensor value to override the current tensor value with.
       * 
* * .tensorflow.TensorProto tensor = 2; */ public boolean hasTensor() { return tensorBuilder_ != null || tensor_ != null; } /** *
       * New tensor value to override the current tensor value with.
       * 
* * .tensorflow.TensorProto tensor = 2; */ public org.tensorflow.framework.TensorProto getTensor() { if (tensorBuilder_ == null) { return tensor_ == null ? org.tensorflow.framework.TensorProto.getDefaultInstance() : tensor_; } else { return tensorBuilder_.getMessage(); } } /** *
       * New tensor value to override the current tensor value with.
       * 
* * .tensorflow.TensorProto tensor = 2; */ public Builder setTensor(org.tensorflow.framework.TensorProto value) { if (tensorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tensor_ = value; onChanged(); } else { tensorBuilder_.setMessage(value); } return this; } /** *
       * New tensor value to override the current tensor value with.
       * 
* * .tensorflow.TensorProto tensor = 2; */ public Builder setTensor( org.tensorflow.framework.TensorProto.Builder builderForValue) { if (tensorBuilder_ == null) { tensor_ = builderForValue.build(); onChanged(); } else { tensorBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * New tensor value to override the current tensor value with.
       * 
* * .tensorflow.TensorProto tensor = 2; */ public Builder mergeTensor(org.tensorflow.framework.TensorProto value) { if (tensorBuilder_ == null) { if (tensor_ != null) { tensor_ = org.tensorflow.framework.TensorProto.newBuilder(tensor_).mergeFrom(value).buildPartial(); } else { tensor_ = value; } onChanged(); } else { tensorBuilder_.mergeFrom(value); } return this; } /** *
       * New tensor value to override the current tensor value with.
       * 
* * .tensorflow.TensorProto tensor = 2; */ public Builder clearTensor() { if (tensorBuilder_ == null) { tensor_ = null; onChanged(); } else { tensor_ = null; tensorBuilder_ = null; } return this; } /** *
       * New tensor value to override the current tensor value with.
       * 
* * .tensorflow.TensorProto tensor = 2; */ public org.tensorflow.framework.TensorProto.Builder getTensorBuilder() { onChanged(); return getTensorFieldBuilder().getBuilder(); } /** *
       * New tensor value to override the current tensor value with.
       * 
* * .tensorflow.TensorProto tensor = 2; */ public org.tensorflow.framework.TensorProtoOrBuilder getTensorOrBuilder() { if (tensorBuilder_ != null) { return tensorBuilder_.getMessageOrBuilder(); } else { return tensor_ == null ? org.tensorflow.framework.TensorProto.getDefaultInstance() : tensor_; } } /** *
       * New tensor value to override the current tensor value with.
       * 
* * .tensorflow.TensorProto tensor = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.TensorProto, org.tensorflow.framework.TensorProto.Builder, org.tensorflow.framework.TensorProtoOrBuilder> getTensorFieldBuilder() { if (tensorBuilder_ == null) { tensorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.TensorProto, org.tensorflow.framework.TensorProto.Builder, org.tensorflow.framework.TensorProtoOrBuilder>( getTensor(), getParentForChildren(), isClean()); tensor_ = null; } return tensorBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.EventReply) } // @@protoc_insertion_point(class_scope:tensorflow.EventReply) private static final tensorflow.DebugService.EventReply DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tensorflow.DebugService.EventReply(); } public static tensorflow.DebugService.EventReply getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EventReply parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EventReply(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tensorflow.DebugService.EventReply getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CallTracebackOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.CallTraceback) com.google.protobuf.MessageOrBuilder { /** * .tensorflow.CallTraceback.CallType call_type = 1; */ int getCallTypeValue(); /** * .tensorflow.CallTraceback.CallType call_type = 1; */ tensorflow.DebugService.CallTraceback.CallType getCallType(); /** *
     * A key for the call. For example, for graph execution, this is a key
     * consisting of the names of the fed and fetched tensors.
     * 
* * string call_key = 2; */ java.lang.String getCallKey(); /** *
     * A key for the call. For example, for graph execution, this is a key
     * consisting of the names of the fed and fetched tensors.
     * 
* * string call_key = 2; */ com.google.protobuf.ByteString getCallKeyBytes(); /** *
     * Traceback stack for the origin of the call event.
     * For graph execution, this is the stack of the Session.run() call.
     * For eager execution, this is the stack of the Python line that invokes
     * the execution of the eager op.
     * 
* * .tensorflow.tfprof.CodeDef origin_stack = 3; */ boolean hasOriginStack(); /** *
     * Traceback stack for the origin of the call event.
     * For graph execution, this is the stack of the Session.run() call.
     * For eager execution, this is the stack of the Python line that invokes
     * the execution of the eager op.
     * 
* * .tensorflow.tfprof.CodeDef origin_stack = 3; */ tensorflow.tfprof.TfprofLog.CodeDef getOriginStack(); /** *
     * Traceback stack for the origin of the call event.
     * For graph execution, this is the stack of the Session.run() call.
     * For eager execution, this is the stack of the Python line that invokes
     * the execution of the eager op.
     * 
* * .tensorflow.tfprof.CodeDef origin_stack = 3; */ tensorflow.tfprof.TfprofLog.CodeDefOrBuilder getOriginStackOrBuilder(); /** *
     * Keeps track of the mapping from integer IDs in `origin_stack` to actual
     * string values (e.g., file paths, function names).
     * 
* * map<int64, string> origin_id_to_string = 4; */ int getOriginIdToStringCount(); /** *
     * Keeps track of the mapping from integer IDs in `origin_stack` to actual
     * string values (e.g., file paths, function names).
     * 
* * map<int64, string> origin_id_to_string = 4; */ boolean containsOriginIdToString( long key); /** * Use {@link #getOriginIdToStringMap()} instead. */ @java.lang.Deprecated java.util.Map getOriginIdToString(); /** *
     * Keeps track of the mapping from integer IDs in `origin_stack` to actual
     * string values (e.g., file paths, function names).
     * 
* * map<int64, string> origin_id_to_string = 4; */ java.util.Map getOriginIdToStringMap(); /** *
     * Keeps track of the mapping from integer IDs in `origin_stack` to actual
     * string values (e.g., file paths, function names).
     * 
* * map<int64, string> origin_id_to_string = 4; */ java.lang.String getOriginIdToStringOrDefault( long key, java.lang.String defaultValue); /** *
     * Keeps track of the mapping from integer IDs in `origin_stack` to actual
     * string values (e.g., file paths, function names).
     * 
* * map<int64, string> origin_id_to_string = 4; */ java.lang.String getOriginIdToStringOrThrow( long key); /** *
     * Traceback for the graph (if any) involved in the call.
     * 
* * .tensorflow.tfprof.OpLogProto graph_traceback = 5; */ boolean hasGraphTraceback(); /** *
     * Traceback for the graph (if any) involved in the call.
     * 
* * .tensorflow.tfprof.OpLogProto graph_traceback = 5; */ tensorflow.tfprof.TfprofLog.OpLogProto getGraphTraceback(); /** *
     * Traceback for the graph (if any) involved in the call.
     * 
* * .tensorflow.tfprof.OpLogProto graph_traceback = 5; */ tensorflow.tfprof.TfprofLog.OpLogProtoOrBuilder getGraphTracebackOrBuilder(); /** *
     * Version of the graph in `graph_traceback` (if any).
     * 
* * int64 graph_version = 6; */ long getGraphVersion(); } /** *
   * Data on the traceback of a debugged call, e.g., a Session.run() call, or the
   * execution of an eager operation.
   * 
* * Protobuf type {@code tensorflow.CallTraceback} */ public static final class CallTraceback extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.CallTraceback) CallTracebackOrBuilder { private static final long serialVersionUID = 0L; // Use CallTraceback.newBuilder() to construct. private CallTraceback(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CallTraceback() { callType_ = 0; callKey_ = ""; graphVersion_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CallTraceback( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); callType_ = rawValue; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); callKey_ = s; break; } case 26: { tensorflow.tfprof.TfprofLog.CodeDef.Builder subBuilder = null; if (originStack_ != null) { subBuilder = originStack_.toBuilder(); } originStack_ = input.readMessage(tensorflow.tfprof.TfprofLog.CodeDef.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(originStack_); originStack_ = subBuilder.buildPartial(); } break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { originIdToString_ = com.google.protobuf.MapField.newMapField( OriginIdToStringDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000008; } com.google.protobuf.MapEntry originIdToString__ = input.readMessage( OriginIdToStringDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); originIdToString_.getMutableMap().put( originIdToString__.getKey(), originIdToString__.getValue()); break; } case 42: { tensorflow.tfprof.TfprofLog.OpLogProto.Builder subBuilder = null; if (graphTraceback_ != null) { subBuilder = graphTraceback_.toBuilder(); } graphTraceback_ = input.readMessage(tensorflow.tfprof.TfprofLog.OpLogProto.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(graphTraceback_); graphTraceback_ = subBuilder.buildPartial(); } break; } case 48: { graphVersion_ = input.readInt64(); break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.DebugService.internal_static_tensorflow_CallTraceback_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 4: return internalGetOriginIdToString(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.DebugService.internal_static_tensorflow_CallTraceback_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.DebugService.CallTraceback.class, tensorflow.DebugService.CallTraceback.Builder.class); } /** * Protobuf enum {@code tensorflow.CallTraceback.CallType} */ public enum CallType implements com.google.protobuf.ProtocolMessageEnum { /** * UNSPECIFIED = 0; */ UNSPECIFIED(0), /** * GRAPH_EXECUTION = 1; */ GRAPH_EXECUTION(1), /** * EAGER_EXECUTION = 2; */ EAGER_EXECUTION(2), UNRECOGNIZED(-1), ; /** * UNSPECIFIED = 0; */ public static final int UNSPECIFIED_VALUE = 0; /** * GRAPH_EXECUTION = 1; */ public static final int GRAPH_EXECUTION_VALUE = 1; /** * EAGER_EXECUTION = 2; */ public static final int EAGER_EXECUTION_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static CallType valueOf(int value) { return forNumber(value); } public static CallType forNumber(int value) { switch (value) { case 0: return UNSPECIFIED; case 1: return GRAPH_EXECUTION; case 2: return EAGER_EXECUTION; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< CallType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CallType findValueByNumber(int number) { return CallType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return tensorflow.DebugService.CallTraceback.getDescriptor().getEnumTypes().get(0); } private static final CallType[] VALUES = values(); public static CallType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private CallType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:tensorflow.CallTraceback.CallType) } private int bitField0_; public static final int CALL_TYPE_FIELD_NUMBER = 1; private int callType_; /** * .tensorflow.CallTraceback.CallType call_type = 1; */ public int getCallTypeValue() { return callType_; } /** * .tensorflow.CallTraceback.CallType call_type = 1; */ public tensorflow.DebugService.CallTraceback.CallType getCallType() { @SuppressWarnings("deprecation") tensorflow.DebugService.CallTraceback.CallType result = tensorflow.DebugService.CallTraceback.CallType.valueOf(callType_); return result == null ? tensorflow.DebugService.CallTraceback.CallType.UNRECOGNIZED : result; } public static final int CALL_KEY_FIELD_NUMBER = 2; private volatile java.lang.Object callKey_; /** *
     * A key for the call. For example, for graph execution, this is a key
     * consisting of the names of the fed and fetched tensors.
     * 
* * string call_key = 2; */ public java.lang.String getCallKey() { java.lang.Object ref = callKey_; 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(); callKey_ = s; return s; } } /** *
     * A key for the call. For example, for graph execution, this is a key
     * consisting of the names of the fed and fetched tensors.
     * 
* * string call_key = 2; */ public com.google.protobuf.ByteString getCallKeyBytes() { java.lang.Object ref = callKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); callKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ORIGIN_STACK_FIELD_NUMBER = 3; private tensorflow.tfprof.TfprofLog.CodeDef originStack_; /** *
     * Traceback stack for the origin of the call event.
     * For graph execution, this is the stack of the Session.run() call.
     * For eager execution, this is the stack of the Python line that invokes
     * the execution of the eager op.
     * 
* * .tensorflow.tfprof.CodeDef origin_stack = 3; */ public boolean hasOriginStack() { return originStack_ != null; } /** *
     * Traceback stack for the origin of the call event.
     * For graph execution, this is the stack of the Session.run() call.
     * For eager execution, this is the stack of the Python line that invokes
     * the execution of the eager op.
     * 
* * .tensorflow.tfprof.CodeDef origin_stack = 3; */ public tensorflow.tfprof.TfprofLog.CodeDef getOriginStack() { return originStack_ == null ? tensorflow.tfprof.TfprofLog.CodeDef.getDefaultInstance() : originStack_; } /** *
     * Traceback stack for the origin of the call event.
     * For graph execution, this is the stack of the Session.run() call.
     * For eager execution, this is the stack of the Python line that invokes
     * the execution of the eager op.
     * 
* * .tensorflow.tfprof.CodeDef origin_stack = 3; */ public tensorflow.tfprof.TfprofLog.CodeDefOrBuilder getOriginStackOrBuilder() { return getOriginStack(); } public static final int ORIGIN_ID_TO_STRING_FIELD_NUMBER = 4; private static final class OriginIdToStringDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Long, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( tensorflow.DebugService.internal_static_tensorflow_CallTraceback_OriginIdToStringEntry_descriptor, com.google.protobuf.WireFormat.FieldType.INT64, 0L, com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.Long, java.lang.String> originIdToString_; private com.google.protobuf.MapField internalGetOriginIdToString() { if (originIdToString_ == null) { return com.google.protobuf.MapField.emptyMapField( OriginIdToStringDefaultEntryHolder.defaultEntry); } return originIdToString_; } public int getOriginIdToStringCount() { return internalGetOriginIdToString().getMap().size(); } /** *
     * Keeps track of the mapping from integer IDs in `origin_stack` to actual
     * string values (e.g., file paths, function names).
     * 
* * map<int64, string> origin_id_to_string = 4; */ public boolean containsOriginIdToString( long key) { return internalGetOriginIdToString().getMap().containsKey(key); } /** * Use {@link #getOriginIdToStringMap()} instead. */ @java.lang.Deprecated public java.util.Map getOriginIdToString() { return getOriginIdToStringMap(); } /** *
     * Keeps track of the mapping from integer IDs in `origin_stack` to actual
     * string values (e.g., file paths, function names).
     * 
* * map<int64, string> origin_id_to_string = 4; */ public java.util.Map getOriginIdToStringMap() { return internalGetOriginIdToString().getMap(); } /** *
     * Keeps track of the mapping from integer IDs in `origin_stack` to actual
     * string values (e.g., file paths, function names).
     * 
* * map<int64, string> origin_id_to_string = 4; */ public java.lang.String getOriginIdToStringOrDefault( long key, java.lang.String defaultValue) { java.util.Map map = internalGetOriginIdToString().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Keeps track of the mapping from integer IDs in `origin_stack` to actual
     * string values (e.g., file paths, function names).
     * 
* * map<int64, string> origin_id_to_string = 4; */ public java.lang.String getOriginIdToStringOrThrow( long key) { java.util.Map map = internalGetOriginIdToString().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int GRAPH_TRACEBACK_FIELD_NUMBER = 5; private tensorflow.tfprof.TfprofLog.OpLogProto graphTraceback_; /** *
     * Traceback for the graph (if any) involved in the call.
     * 
* * .tensorflow.tfprof.OpLogProto graph_traceback = 5; */ public boolean hasGraphTraceback() { return graphTraceback_ != null; } /** *
     * Traceback for the graph (if any) involved in the call.
     * 
* * .tensorflow.tfprof.OpLogProto graph_traceback = 5; */ public tensorflow.tfprof.TfprofLog.OpLogProto getGraphTraceback() { return graphTraceback_ == null ? tensorflow.tfprof.TfprofLog.OpLogProto.getDefaultInstance() : graphTraceback_; } /** *
     * Traceback for the graph (if any) involved in the call.
     * 
* * .tensorflow.tfprof.OpLogProto graph_traceback = 5; */ public tensorflow.tfprof.TfprofLog.OpLogProtoOrBuilder getGraphTracebackOrBuilder() { return getGraphTraceback(); } public static final int GRAPH_VERSION_FIELD_NUMBER = 6; private long graphVersion_; /** *
     * Version of the graph in `graph_traceback` (if any).
     * 
* * int64 graph_version = 6; */ public long getGraphVersion() { return graphVersion_; } 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 { if (callType_ != tensorflow.DebugService.CallTraceback.CallType.UNSPECIFIED.getNumber()) { output.writeEnum(1, callType_); } if (!getCallKeyBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, callKey_); } if (originStack_ != null) { output.writeMessage(3, getOriginStack()); } com.google.protobuf.GeneratedMessageV3 .serializeLongMapTo( output, internalGetOriginIdToString(), OriginIdToStringDefaultEntryHolder.defaultEntry, 4); if (graphTraceback_ != null) { output.writeMessage(5, getGraphTraceback()); } if (graphVersion_ != 0L) { output.writeInt64(6, graphVersion_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (callType_ != tensorflow.DebugService.CallTraceback.CallType.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, callType_); } if (!getCallKeyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, callKey_); } if (originStack_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getOriginStack()); } for (java.util.Map.Entry entry : internalGetOriginIdToString().getMap().entrySet()) { com.google.protobuf.MapEntry originIdToString__ = OriginIdToStringDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, originIdToString__); } if (graphTraceback_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getGraphTraceback()); } if (graphVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, graphVersion_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tensorflow.DebugService.CallTraceback)) { return super.equals(obj); } tensorflow.DebugService.CallTraceback other = (tensorflow.DebugService.CallTraceback) obj; boolean result = true; result = result && callType_ == other.callType_; result = result && getCallKey() .equals(other.getCallKey()); result = result && (hasOriginStack() == other.hasOriginStack()); if (hasOriginStack()) { result = result && getOriginStack() .equals(other.getOriginStack()); } result = result && internalGetOriginIdToString().equals( other.internalGetOriginIdToString()); result = result && (hasGraphTraceback() == other.hasGraphTraceback()); if (hasGraphTraceback()) { result = result && getGraphTraceback() .equals(other.getGraphTraceback()); } result = result && (getGraphVersion() == other.getGraphVersion()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CALL_TYPE_FIELD_NUMBER; hash = (53 * hash) + callType_; hash = (37 * hash) + CALL_KEY_FIELD_NUMBER; hash = (53 * hash) + getCallKey().hashCode(); if (hasOriginStack()) { hash = (37 * hash) + ORIGIN_STACK_FIELD_NUMBER; hash = (53 * hash) + getOriginStack().hashCode(); } if (!internalGetOriginIdToString().getMap().isEmpty()) { hash = (37 * hash) + ORIGIN_ID_TO_STRING_FIELD_NUMBER; hash = (53 * hash) + internalGetOriginIdToString().hashCode(); } if (hasGraphTraceback()) { hash = (37 * hash) + GRAPH_TRACEBACK_FIELD_NUMBER; hash = (53 * hash) + getGraphTraceback().hashCode(); } hash = (37 * hash) + GRAPH_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getGraphVersion()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tensorflow.DebugService.CallTraceback parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.DebugService.CallTraceback parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.DebugService.CallTraceback parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.DebugService.CallTraceback parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.DebugService.CallTraceback parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.DebugService.CallTraceback parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.DebugService.CallTraceback parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.DebugService.CallTraceback 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 tensorflow.DebugService.CallTraceback parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tensorflow.DebugService.CallTraceback 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 tensorflow.DebugService.CallTraceback parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.DebugService.CallTraceback 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(tensorflow.DebugService.CallTraceback 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; } /** *
     * Data on the traceback of a debugged call, e.g., a Session.run() call, or the
     * execution of an eager operation.
     * 
* * Protobuf type {@code tensorflow.CallTraceback} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.CallTraceback) tensorflow.DebugService.CallTracebackOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.DebugService.internal_static_tensorflow_CallTraceback_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 4: return internalGetOriginIdToString(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 4: return internalGetMutableOriginIdToString(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.DebugService.internal_static_tensorflow_CallTraceback_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.DebugService.CallTraceback.class, tensorflow.DebugService.CallTraceback.Builder.class); } // Construct using tensorflow.DebugService.CallTraceback.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); callType_ = 0; callKey_ = ""; if (originStackBuilder_ == null) { originStack_ = null; } else { originStack_ = null; originStackBuilder_ = null; } internalGetMutableOriginIdToString().clear(); if (graphTracebackBuilder_ == null) { graphTraceback_ = null; } else { graphTraceback_ = null; graphTracebackBuilder_ = null; } graphVersion_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.DebugService.internal_static_tensorflow_CallTraceback_descriptor; } @java.lang.Override public tensorflow.DebugService.CallTraceback getDefaultInstanceForType() { return tensorflow.DebugService.CallTraceback.getDefaultInstance(); } @java.lang.Override public tensorflow.DebugService.CallTraceback build() { tensorflow.DebugService.CallTraceback result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tensorflow.DebugService.CallTraceback buildPartial() { tensorflow.DebugService.CallTraceback result = new tensorflow.DebugService.CallTraceback(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.callType_ = callType_; result.callKey_ = callKey_; if (originStackBuilder_ == null) { result.originStack_ = originStack_; } else { result.originStack_ = originStackBuilder_.build(); } result.originIdToString_ = internalGetOriginIdToString(); result.originIdToString_.makeImmutable(); if (graphTracebackBuilder_ == null) { result.graphTraceback_ = graphTraceback_; } else { result.graphTraceback_ = graphTracebackBuilder_.build(); } result.graphVersion_ = graphVersion_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tensorflow.DebugService.CallTraceback) { return mergeFrom((tensorflow.DebugService.CallTraceback)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tensorflow.DebugService.CallTraceback other) { if (other == tensorflow.DebugService.CallTraceback.getDefaultInstance()) return this; if (other.callType_ != 0) { setCallTypeValue(other.getCallTypeValue()); } if (!other.getCallKey().isEmpty()) { callKey_ = other.callKey_; onChanged(); } if (other.hasOriginStack()) { mergeOriginStack(other.getOriginStack()); } internalGetMutableOriginIdToString().mergeFrom( other.internalGetOriginIdToString()); if (other.hasGraphTraceback()) { mergeGraphTraceback(other.getGraphTraceback()); } if (other.getGraphVersion() != 0L) { setGraphVersion(other.getGraphVersion()); } this.mergeUnknownFields(other.unknownFields); 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 { tensorflow.DebugService.CallTraceback parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tensorflow.DebugService.CallTraceback) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int callType_ = 0; /** * .tensorflow.CallTraceback.CallType call_type = 1; */ public int getCallTypeValue() { return callType_; } /** * .tensorflow.CallTraceback.CallType call_type = 1; */ public Builder setCallTypeValue(int value) { callType_ = value; onChanged(); return this; } /** * .tensorflow.CallTraceback.CallType call_type = 1; */ public tensorflow.DebugService.CallTraceback.CallType getCallType() { @SuppressWarnings("deprecation") tensorflow.DebugService.CallTraceback.CallType result = tensorflow.DebugService.CallTraceback.CallType.valueOf(callType_); return result == null ? tensorflow.DebugService.CallTraceback.CallType.UNRECOGNIZED : result; } /** * .tensorflow.CallTraceback.CallType call_type = 1; */ public Builder setCallType(tensorflow.DebugService.CallTraceback.CallType value) { if (value == null) { throw new NullPointerException(); } callType_ = value.getNumber(); onChanged(); return this; } /** * .tensorflow.CallTraceback.CallType call_type = 1; */ public Builder clearCallType() { callType_ = 0; onChanged(); return this; } private java.lang.Object callKey_ = ""; /** *
       * A key for the call. For example, for graph execution, this is a key
       * consisting of the names of the fed and fetched tensors.
       * 
* * string call_key = 2; */ public java.lang.String getCallKey() { java.lang.Object ref = callKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); callKey_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * A key for the call. For example, for graph execution, this is a key
       * consisting of the names of the fed and fetched tensors.
       * 
* * string call_key = 2; */ public com.google.protobuf.ByteString getCallKeyBytes() { java.lang.Object ref = callKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); callKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * A key for the call. For example, for graph execution, this is a key
       * consisting of the names of the fed and fetched tensors.
       * 
* * string call_key = 2; */ public Builder setCallKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } callKey_ = value; onChanged(); return this; } /** *
       * A key for the call. For example, for graph execution, this is a key
       * consisting of the names of the fed and fetched tensors.
       * 
* * string call_key = 2; */ public Builder clearCallKey() { callKey_ = getDefaultInstance().getCallKey(); onChanged(); return this; } /** *
       * A key for the call. For example, for graph execution, this is a key
       * consisting of the names of the fed and fetched tensors.
       * 
* * string call_key = 2; */ public Builder setCallKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); callKey_ = value; onChanged(); return this; } private tensorflow.tfprof.TfprofLog.CodeDef originStack_ = null; private com.google.protobuf.SingleFieldBuilderV3< tensorflow.tfprof.TfprofLog.CodeDef, tensorflow.tfprof.TfprofLog.CodeDef.Builder, tensorflow.tfprof.TfprofLog.CodeDefOrBuilder> originStackBuilder_; /** *
       * Traceback stack for the origin of the call event.
       * For graph execution, this is the stack of the Session.run() call.
       * For eager execution, this is the stack of the Python line that invokes
       * the execution of the eager op.
       * 
* * .tensorflow.tfprof.CodeDef origin_stack = 3; */ public boolean hasOriginStack() { return originStackBuilder_ != null || originStack_ != null; } /** *
       * Traceback stack for the origin of the call event.
       * For graph execution, this is the stack of the Session.run() call.
       * For eager execution, this is the stack of the Python line that invokes
       * the execution of the eager op.
       * 
* * .tensorflow.tfprof.CodeDef origin_stack = 3; */ public tensorflow.tfprof.TfprofLog.CodeDef getOriginStack() { if (originStackBuilder_ == null) { return originStack_ == null ? tensorflow.tfprof.TfprofLog.CodeDef.getDefaultInstance() : originStack_; } else { return originStackBuilder_.getMessage(); } } /** *
       * Traceback stack for the origin of the call event.
       * For graph execution, this is the stack of the Session.run() call.
       * For eager execution, this is the stack of the Python line that invokes
       * the execution of the eager op.
       * 
* * .tensorflow.tfprof.CodeDef origin_stack = 3; */ public Builder setOriginStack(tensorflow.tfprof.TfprofLog.CodeDef value) { if (originStackBuilder_ == null) { if (value == null) { throw new NullPointerException(); } originStack_ = value; onChanged(); } else { originStackBuilder_.setMessage(value); } return this; } /** *
       * Traceback stack for the origin of the call event.
       * For graph execution, this is the stack of the Session.run() call.
       * For eager execution, this is the stack of the Python line that invokes
       * the execution of the eager op.
       * 
* * .tensorflow.tfprof.CodeDef origin_stack = 3; */ public Builder setOriginStack( tensorflow.tfprof.TfprofLog.CodeDef.Builder builderForValue) { if (originStackBuilder_ == null) { originStack_ = builderForValue.build(); onChanged(); } else { originStackBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Traceback stack for the origin of the call event.
       * For graph execution, this is the stack of the Session.run() call.
       * For eager execution, this is the stack of the Python line that invokes
       * the execution of the eager op.
       * 
* * .tensorflow.tfprof.CodeDef origin_stack = 3; */ public Builder mergeOriginStack(tensorflow.tfprof.TfprofLog.CodeDef value) { if (originStackBuilder_ == null) { if (originStack_ != null) { originStack_ = tensorflow.tfprof.TfprofLog.CodeDef.newBuilder(originStack_).mergeFrom(value).buildPartial(); } else { originStack_ = value; } onChanged(); } else { originStackBuilder_.mergeFrom(value); } return this; } /** *
       * Traceback stack for the origin of the call event.
       * For graph execution, this is the stack of the Session.run() call.
       * For eager execution, this is the stack of the Python line that invokes
       * the execution of the eager op.
       * 
* * .tensorflow.tfprof.CodeDef origin_stack = 3; */ public Builder clearOriginStack() { if (originStackBuilder_ == null) { originStack_ = null; onChanged(); } else { originStack_ = null; originStackBuilder_ = null; } return this; } /** *
       * Traceback stack for the origin of the call event.
       * For graph execution, this is the stack of the Session.run() call.
       * For eager execution, this is the stack of the Python line that invokes
       * the execution of the eager op.
       * 
* * .tensorflow.tfprof.CodeDef origin_stack = 3; */ public tensorflow.tfprof.TfprofLog.CodeDef.Builder getOriginStackBuilder() { onChanged(); return getOriginStackFieldBuilder().getBuilder(); } /** *
       * Traceback stack for the origin of the call event.
       * For graph execution, this is the stack of the Session.run() call.
       * For eager execution, this is the stack of the Python line that invokes
       * the execution of the eager op.
       * 
* * .tensorflow.tfprof.CodeDef origin_stack = 3; */ public tensorflow.tfprof.TfprofLog.CodeDefOrBuilder getOriginStackOrBuilder() { if (originStackBuilder_ != null) { return originStackBuilder_.getMessageOrBuilder(); } else { return originStack_ == null ? tensorflow.tfprof.TfprofLog.CodeDef.getDefaultInstance() : originStack_; } } /** *
       * Traceback stack for the origin of the call event.
       * For graph execution, this is the stack of the Session.run() call.
       * For eager execution, this is the stack of the Python line that invokes
       * the execution of the eager op.
       * 
* * .tensorflow.tfprof.CodeDef origin_stack = 3; */ private com.google.protobuf.SingleFieldBuilderV3< tensorflow.tfprof.TfprofLog.CodeDef, tensorflow.tfprof.TfprofLog.CodeDef.Builder, tensorflow.tfprof.TfprofLog.CodeDefOrBuilder> getOriginStackFieldBuilder() { if (originStackBuilder_ == null) { originStackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tensorflow.tfprof.TfprofLog.CodeDef, tensorflow.tfprof.TfprofLog.CodeDef.Builder, tensorflow.tfprof.TfprofLog.CodeDefOrBuilder>( getOriginStack(), getParentForChildren(), isClean()); originStack_ = null; } return originStackBuilder_; } private com.google.protobuf.MapField< java.lang.Long, java.lang.String> originIdToString_; private com.google.protobuf.MapField internalGetOriginIdToString() { if (originIdToString_ == null) { return com.google.protobuf.MapField.emptyMapField( OriginIdToStringDefaultEntryHolder.defaultEntry); } return originIdToString_; } private com.google.protobuf.MapField internalGetMutableOriginIdToString() { onChanged();; if (originIdToString_ == null) { originIdToString_ = com.google.protobuf.MapField.newMapField( OriginIdToStringDefaultEntryHolder.defaultEntry); } if (!originIdToString_.isMutable()) { originIdToString_ = originIdToString_.copy(); } return originIdToString_; } public int getOriginIdToStringCount() { return internalGetOriginIdToString().getMap().size(); } /** *
       * Keeps track of the mapping from integer IDs in `origin_stack` to actual
       * string values (e.g., file paths, function names).
       * 
* * map<int64, string> origin_id_to_string = 4; */ public boolean containsOriginIdToString( long key) { return internalGetOriginIdToString().getMap().containsKey(key); } /** * Use {@link #getOriginIdToStringMap()} instead. */ @java.lang.Deprecated public java.util.Map getOriginIdToString() { return getOriginIdToStringMap(); } /** *
       * Keeps track of the mapping from integer IDs in `origin_stack` to actual
       * string values (e.g., file paths, function names).
       * 
* * map<int64, string> origin_id_to_string = 4; */ public java.util.Map getOriginIdToStringMap() { return internalGetOriginIdToString().getMap(); } /** *
       * Keeps track of the mapping from integer IDs in `origin_stack` to actual
       * string values (e.g., file paths, function names).
       * 
* * map<int64, string> origin_id_to_string = 4; */ public java.lang.String getOriginIdToStringOrDefault( long key, java.lang.String defaultValue) { java.util.Map map = internalGetOriginIdToString().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Keeps track of the mapping from integer IDs in `origin_stack` to actual
       * string values (e.g., file paths, function names).
       * 
* * map<int64, string> origin_id_to_string = 4; */ public java.lang.String getOriginIdToStringOrThrow( long key) { java.util.Map map = internalGetOriginIdToString().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearOriginIdToString() { internalGetMutableOriginIdToString().getMutableMap() .clear(); return this; } /** *
       * Keeps track of the mapping from integer IDs in `origin_stack` to actual
       * string values (e.g., file paths, function names).
       * 
* * map<int64, string> origin_id_to_string = 4; */ public Builder removeOriginIdToString( long key) { internalGetMutableOriginIdToString().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableOriginIdToString() { return internalGetMutableOriginIdToString().getMutableMap(); } /** *
       * Keeps track of the mapping from integer IDs in `origin_stack` to actual
       * string values (e.g., file paths, function names).
       * 
* * map<int64, string> origin_id_to_string = 4; */ public Builder putOriginIdToString( long key, java.lang.String value) { if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableOriginIdToString().getMutableMap() .put(key, value); return this; } /** *
       * Keeps track of the mapping from integer IDs in `origin_stack` to actual
       * string values (e.g., file paths, function names).
       * 
* * map<int64, string> origin_id_to_string = 4; */ public Builder putAllOriginIdToString( java.util.Map values) { internalGetMutableOriginIdToString().getMutableMap() .putAll(values); return this; } private tensorflow.tfprof.TfprofLog.OpLogProto graphTraceback_ = null; private com.google.protobuf.SingleFieldBuilderV3< tensorflow.tfprof.TfprofLog.OpLogProto, tensorflow.tfprof.TfprofLog.OpLogProto.Builder, tensorflow.tfprof.TfprofLog.OpLogProtoOrBuilder> graphTracebackBuilder_; /** *
       * Traceback for the graph (if any) involved in the call.
       * 
* * .tensorflow.tfprof.OpLogProto graph_traceback = 5; */ public boolean hasGraphTraceback() { return graphTracebackBuilder_ != null || graphTraceback_ != null; } /** *
       * Traceback for the graph (if any) involved in the call.
       * 
* * .tensorflow.tfprof.OpLogProto graph_traceback = 5; */ public tensorflow.tfprof.TfprofLog.OpLogProto getGraphTraceback() { if (graphTracebackBuilder_ == null) { return graphTraceback_ == null ? tensorflow.tfprof.TfprofLog.OpLogProto.getDefaultInstance() : graphTraceback_; } else { return graphTracebackBuilder_.getMessage(); } } /** *
       * Traceback for the graph (if any) involved in the call.
       * 
* * .tensorflow.tfprof.OpLogProto graph_traceback = 5; */ public Builder setGraphTraceback(tensorflow.tfprof.TfprofLog.OpLogProto value) { if (graphTracebackBuilder_ == null) { if (value == null) { throw new NullPointerException(); } graphTraceback_ = value; onChanged(); } else { graphTracebackBuilder_.setMessage(value); } return this; } /** *
       * Traceback for the graph (if any) involved in the call.
       * 
* * .tensorflow.tfprof.OpLogProto graph_traceback = 5; */ public Builder setGraphTraceback( tensorflow.tfprof.TfprofLog.OpLogProto.Builder builderForValue) { if (graphTracebackBuilder_ == null) { graphTraceback_ = builderForValue.build(); onChanged(); } else { graphTracebackBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Traceback for the graph (if any) involved in the call.
       * 
* * .tensorflow.tfprof.OpLogProto graph_traceback = 5; */ public Builder mergeGraphTraceback(tensorflow.tfprof.TfprofLog.OpLogProto value) { if (graphTracebackBuilder_ == null) { if (graphTraceback_ != null) { graphTraceback_ = tensorflow.tfprof.TfprofLog.OpLogProto.newBuilder(graphTraceback_).mergeFrom(value).buildPartial(); } else { graphTraceback_ = value; } onChanged(); } else { graphTracebackBuilder_.mergeFrom(value); } return this; } /** *
       * Traceback for the graph (if any) involved in the call.
       * 
* * .tensorflow.tfprof.OpLogProto graph_traceback = 5; */ public Builder clearGraphTraceback() { if (graphTracebackBuilder_ == null) { graphTraceback_ = null; onChanged(); } else { graphTraceback_ = null; graphTracebackBuilder_ = null; } return this; } /** *
       * Traceback for the graph (if any) involved in the call.
       * 
* * .tensorflow.tfprof.OpLogProto graph_traceback = 5; */ public tensorflow.tfprof.TfprofLog.OpLogProto.Builder getGraphTracebackBuilder() { onChanged(); return getGraphTracebackFieldBuilder().getBuilder(); } /** *
       * Traceback for the graph (if any) involved in the call.
       * 
* * .tensorflow.tfprof.OpLogProto graph_traceback = 5; */ public tensorflow.tfprof.TfprofLog.OpLogProtoOrBuilder getGraphTracebackOrBuilder() { if (graphTracebackBuilder_ != null) { return graphTracebackBuilder_.getMessageOrBuilder(); } else { return graphTraceback_ == null ? tensorflow.tfprof.TfprofLog.OpLogProto.getDefaultInstance() : graphTraceback_; } } /** *
       * Traceback for the graph (if any) involved in the call.
       * 
* * .tensorflow.tfprof.OpLogProto graph_traceback = 5; */ private com.google.protobuf.SingleFieldBuilderV3< tensorflow.tfprof.TfprofLog.OpLogProto, tensorflow.tfprof.TfprofLog.OpLogProto.Builder, tensorflow.tfprof.TfprofLog.OpLogProtoOrBuilder> getGraphTracebackFieldBuilder() { if (graphTracebackBuilder_ == null) { graphTracebackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tensorflow.tfprof.TfprofLog.OpLogProto, tensorflow.tfprof.TfprofLog.OpLogProto.Builder, tensorflow.tfprof.TfprofLog.OpLogProtoOrBuilder>( getGraphTraceback(), getParentForChildren(), isClean()); graphTraceback_ = null; } return graphTracebackBuilder_; } private long graphVersion_ ; /** *
       * Version of the graph in `graph_traceback` (if any).
       * 
* * int64 graph_version = 6; */ public long getGraphVersion() { return graphVersion_; } /** *
       * Version of the graph in `graph_traceback` (if any).
       * 
* * int64 graph_version = 6; */ public Builder setGraphVersion(long value) { graphVersion_ = value; onChanged(); return this; } /** *
       * Version of the graph in `graph_traceback` (if any).
       * 
* * int64 graph_version = 6; */ public Builder clearGraphVersion() { graphVersion_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.CallTraceback) } // @@protoc_insertion_point(class_scope:tensorflow.CallTraceback) private static final tensorflow.DebugService.CallTraceback DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tensorflow.DebugService.CallTraceback(); } public static tensorflow.DebugService.CallTraceback getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CallTraceback parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CallTraceback(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tensorflow.DebugService.CallTraceback getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_EventReply_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_EventReply_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_EventReply_DebugOpStateChange_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_EventReply_DebugOpStateChange_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_CallTraceback_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_CallTraceback_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_CallTraceback_OriginIdToStringEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_CallTraceback_OriginIdToStringEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n)tensorflow/core/debug/debug_service.pr" + "oto\022\ntensorflow\032&tensorflow/core/framewo" + "rk/tensor.proto\032)tensorflow/core/profile" + "r/tfprof_log.proto\032$tensorflow/core/prot" + "obuf/debug.proto\032 tensorflow/core/util/e" + "vent.proto\"\336\002\n\nEventReply\022I\n\026debug_op_st" + "ate_changes\030\001 \003(\0132).tensorflow.EventRepl" + "y.DebugOpStateChange\022\'\n\006tensor\030\002 \001(\0132\027.t" + "ensorflow.TensorProto\032\333\001\n\022DebugOpStateCh" + "ange\022>\n\005state\030\001 \001(\0162/.tensorflow.EventRe" + "ply.DebugOpStateChange.State\022\021\n\tnode_nam" + "e\030\002 \001(\t\022\023\n\013output_slot\030\003 \001(\005\022\020\n\010debug_op" + "\030\004 \001(\t\"K\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014" + "\n\010DISABLED\020\001\022\r\n\tREAD_ONLY\020\002\022\016\n\nREAD_WRIT" + "E\020\003\"\247\003\n\rCallTraceback\0225\n\tcall_type\030\001 \001(\016" + "2\".tensorflow.CallTraceback.CallType\022\020\n\010" + "call_key\030\002 \001(\t\0220\n\014origin_stack\030\003 \001(\0132\032.t" + "ensorflow.tfprof.CodeDef\022L\n\023origin_id_to" + "_string\030\004 \003(\0132/.tensorflow.CallTraceback" + ".OriginIdToStringEntry\0226\n\017graph_tracebac" + "k\030\005 \001(\0132\035.tensorflow.tfprof.OpLogProto\022\025" + "\n\rgraph_version\030\006 \001(\003\0327\n\025OriginIdToStrin" + "gEntry\022\013\n\003key\030\001 \001(\003\022\r\n\005value\030\002 \001(\t:\0028\001\"E" + "\n\010CallType\022\017\n\013UNSPECIFIED\020\000\022\023\n\017GRAPH_EXE" + "CUTION\020\001\022\023\n\017EAGER_EXECUTION\020\0022\335\001\n\rEventL" + "istener\022;\n\nSendEvents\022\021.tensorflow.Event" + "\032\026.tensorflow.EventReply(\0010\001\022C\n\016SendTrac" + "ebacks\022\031.tensorflow.CallTraceback\032\026.tens" + "orflow.EventReply\022J\n\017SendSourceFiles\022\037.t" + "ensorflow.DebuggedSourceFiles\032\026.tensorfl" + "ow.EventReplyb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.tensorflow.framework.TensorProtos.getDescriptor(), tensorflow.tfprof.TfprofLog.getDescriptor(), org.tensorflow.framework.DebugProtos.getDescriptor(), org.tensorflow.util.EventProtos.getDescriptor(), }, assigner); internal_static_tensorflow_EventReply_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_tensorflow_EventReply_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_EventReply_descriptor, new java.lang.String[] { "DebugOpStateChanges", "Tensor", }); internal_static_tensorflow_EventReply_DebugOpStateChange_descriptor = internal_static_tensorflow_EventReply_descriptor.getNestedTypes().get(0); internal_static_tensorflow_EventReply_DebugOpStateChange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_EventReply_DebugOpStateChange_descriptor, new java.lang.String[] { "State", "NodeName", "OutputSlot", "DebugOp", }); internal_static_tensorflow_CallTraceback_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_tensorflow_CallTraceback_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_CallTraceback_descriptor, new java.lang.String[] { "CallType", "CallKey", "OriginStack", "OriginIdToString", "GraphTraceback", "GraphVersion", }); internal_static_tensorflow_CallTraceback_OriginIdToStringEntry_descriptor = internal_static_tensorflow_CallTraceback_descriptor.getNestedTypes().get(0); internal_static_tensorflow_CallTraceback_OriginIdToStringEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_CallTraceback_OriginIdToStringEntry_descriptor, new java.lang.String[] { "Key", "Value", }); org.tensorflow.framework.TensorProtos.getDescriptor(); tensorflow.tfprof.TfprofLog.getDescriptor(); org.tensorflow.framework.DebugProtos.getDescriptor(); org.tensorflow.util.EventProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy