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

org.tensorflow.distruntime.RunStepResponse Maven / Gradle / Ivy

There is a newer version: 1.0.0-M2.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tensorflow/core/protobuf/master.proto

package org.tensorflow.distruntime;

/**
 * Protobuf type {@code tensorflow.RunStepResponse}
 */
public  final class RunStepResponse extends
    com.github.os72.protobuf351.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:tensorflow.RunStepResponse)
    RunStepResponseOrBuilder {
private static final long serialVersionUID = 0L;
  // Use RunStepResponse.newBuilder() to construct.
  private RunStepResponse(com.github.os72.protobuf351.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private RunStepResponse() {
    tensor_ = java.util.Collections.emptyList();
    statusCode_ = 0;
    statusErrorMessage_ = "";
  }

  @java.lang.Override
  public final com.github.os72.protobuf351.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private RunStepResponse(
      com.github.os72.protobuf351.CodedInputStream input,
      com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
      throws com.github.os72.protobuf351.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
        com.github.os72.protobuf351.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!parseUnknownFieldProto3(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
          case 10: {
            if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
              tensor_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            tensor_.add(
                input.readMessage(org.tensorflow.framework.NamedTensorProto.parser(), extensionRegistry));
            break;
          }
          case 18: {
            org.tensorflow.framework.RunMetadata.Builder subBuilder = null;
            if (metadata_ != null) {
              subBuilder = metadata_.toBuilder();
            }
            metadata_ = input.readMessage(org.tensorflow.framework.RunMetadata.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(metadata_);
              metadata_ = subBuilder.buildPartial();
            }

            break;
          }
          case 24: {
            int rawValue = input.readEnum();

            statusCode_ = rawValue;
            break;
          }
          case 34: {
            java.lang.String s = input.readStringRequireUtf8();

            statusErrorMessage_ = s;
            break;
          }
        }
      }
    } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
        tensor_ = java.util.Collections.unmodifiableList(tensor_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.github.os72.protobuf351.Descriptors.Descriptor
      getDescriptor() {
    return org.tensorflow.distruntime.DistributedRuntimeProtos.internal_static_tensorflow_RunStepResponse_descriptor;
  }

  protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.tensorflow.distruntime.DistributedRuntimeProtos.internal_static_tensorflow_RunStepResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.tensorflow.distruntime.RunStepResponse.class, org.tensorflow.distruntime.RunStepResponse.Builder.class);
  }

  private int bitField0_;
  public static final int TENSOR_FIELD_NUMBER = 1;
  private java.util.List tensor_;
  /**
   * 
   * NOTE: The order of the returned tensors may or may not match
   * the fetch order specified in RunStepRequest.
   * 
* * repeated .tensorflow.NamedTensorProto tensor = 1; */ public java.util.List getTensorList() { return tensor_; } /** *
   * NOTE: The order of the returned tensors may or may not match
   * the fetch order specified in RunStepRequest.
   * 
* * repeated .tensorflow.NamedTensorProto tensor = 1; */ public java.util.List getTensorOrBuilderList() { return tensor_; } /** *
   * NOTE: The order of the returned tensors may or may not match
   * the fetch order specified in RunStepRequest.
   * 
* * repeated .tensorflow.NamedTensorProto tensor = 1; */ public int getTensorCount() { return tensor_.size(); } /** *
   * NOTE: The order of the returned tensors may or may not match
   * the fetch order specified in RunStepRequest.
   * 
* * repeated .tensorflow.NamedTensorProto tensor = 1; */ public org.tensorflow.framework.NamedTensorProto getTensor(int index) { return tensor_.get(index); } /** *
   * NOTE: The order of the returned tensors may or may not match
   * the fetch order specified in RunStepRequest.
   * 
* * repeated .tensorflow.NamedTensorProto tensor = 1; */ public org.tensorflow.framework.NamedTensorProtoOrBuilder getTensorOrBuilder( int index) { return tensor_.get(index); } public static final int METADATA_FIELD_NUMBER = 2; private org.tensorflow.framework.RunMetadata metadata_; /** *
   * Returned metadata if requested in the options.
   * 
* * .tensorflow.RunMetadata metadata = 2; */ public boolean hasMetadata() { return metadata_ != null; } /** *
   * Returned metadata if requested in the options.
   * 
* * .tensorflow.RunMetadata metadata = 2; */ public org.tensorflow.framework.RunMetadata getMetadata() { return metadata_ == null ? org.tensorflow.framework.RunMetadata.getDefaultInstance() : metadata_; } /** *
   * Returned metadata if requested in the options.
   * 
* * .tensorflow.RunMetadata metadata = 2; */ public org.tensorflow.framework.RunMetadataOrBuilder getMetadataOrBuilder() { return getMetadata(); } public static final int STATUS_CODE_FIELD_NUMBER = 3; private int statusCode_; /** *
   * If store_errors_in_response_body is true in the request, then
   * optionally the server may return an OK status for the RPC and
   * fill the true status into the fields below, to allow for messages
   * that are too long to fit in metadata.
   * 
* * .tensorflow.error.Code status_code = 3; */ public int getStatusCodeValue() { return statusCode_; } /** *
   * If store_errors_in_response_body is true in the request, then
   * optionally the server may return an OK status for the RPC and
   * fill the true status into the fields below, to allow for messages
   * that are too long to fit in metadata.
   * 
* * .tensorflow.error.Code status_code = 3; */ public org.tensorflow.framework.Code getStatusCode() { org.tensorflow.framework.Code result = org.tensorflow.framework.Code.valueOf(statusCode_); return result == null ? org.tensorflow.framework.Code.UNRECOGNIZED : result; } public static final int STATUS_ERROR_MESSAGE_FIELD_NUMBER = 4; private volatile java.lang.Object statusErrorMessage_; /** * string status_error_message = 4; */ public java.lang.String getStatusErrorMessage() { java.lang.Object ref = statusErrorMessage_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusErrorMessage_ = s; return s; } } /** * string status_error_message = 4; */ public com.github.os72.protobuf351.ByteString getStatusErrorMessageBytes() { java.lang.Object ref = statusErrorMessage_; if (ref instanceof java.lang.String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); statusErrorMessage_ = b; return b; } else { return (com.github.os72.protobuf351.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.github.os72.protobuf351.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < tensor_.size(); i++) { output.writeMessage(1, tensor_.get(i)); } if (metadata_ != null) { output.writeMessage(2, getMetadata()); } if (statusCode_ != org.tensorflow.framework.Code.OK.getNumber()) { output.writeEnum(3, statusCode_); } if (!getStatusErrorMessageBytes().isEmpty()) { com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 4, statusErrorMessage_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < tensor_.size(); i++) { size += com.github.os72.protobuf351.CodedOutputStream .computeMessageSize(1, tensor_.get(i)); } if (metadata_ != null) { size += com.github.os72.protobuf351.CodedOutputStream .computeMessageSize(2, getMetadata()); } if (statusCode_ != org.tensorflow.framework.Code.OK.getNumber()) { size += com.github.os72.protobuf351.CodedOutputStream .computeEnumSize(3, statusCode_); } if (!getStatusErrorMessageBytes().isEmpty()) { size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(4, statusErrorMessage_); } 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 org.tensorflow.distruntime.RunStepResponse)) { return super.equals(obj); } org.tensorflow.distruntime.RunStepResponse other = (org.tensorflow.distruntime.RunStepResponse) obj; boolean result = true; result = result && getTensorList() .equals(other.getTensorList()); result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata() .equals(other.getMetadata()); } result = result && statusCode_ == other.statusCode_; result = result && getStatusErrorMessage() .equals(other.getStatusErrorMessage()); 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 (getTensorCount() > 0) { hash = (37 * hash) + TENSOR_FIELD_NUMBER; hash = (53 * hash) + getTensorList().hashCode(); } if (hasMetadata()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } hash = (37 * hash) + STATUS_CODE_FIELD_NUMBER; hash = (53 * hash) + statusCode_; hash = (37 * hash) + STATUS_ERROR_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusErrorMessage().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tensorflow.distruntime.RunStepResponse parseFrom( java.nio.ByteBuffer data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.distruntime.RunStepResponse parseFrom( java.nio.ByteBuffer data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.distruntime.RunStepResponse parseFrom( com.github.os72.protobuf351.ByteString data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.distruntime.RunStepResponse parseFrom( com.github.os72.protobuf351.ByteString data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.distruntime.RunStepResponse parseFrom(byte[] data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.distruntime.RunStepResponse parseFrom( byte[] data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.distruntime.RunStepResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.distruntime.RunStepResponse parseFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.distruntime.RunStepResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.distruntime.RunStepResponse parseDelimitedFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.distruntime.RunStepResponse parseFrom( com.github.os72.protobuf351.CodedInputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.distruntime.RunStepResponse parseFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tensorflow.distruntime.RunStepResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code tensorflow.RunStepResponse} */ public static final class Builder extends com.github.os72.protobuf351.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.RunStepResponse) org.tensorflow.distruntime.RunStepResponseOrBuilder { public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return org.tensorflow.distruntime.DistributedRuntimeProtos.internal_static_tensorflow_RunStepResponse_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.distruntime.DistributedRuntimeProtos.internal_static_tensorflow_RunStepResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.distruntime.RunStepResponse.class, org.tensorflow.distruntime.RunStepResponse.Builder.class); } // Construct using org.tensorflow.distruntime.RunStepResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.github.os72.protobuf351.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTensorFieldBuilder(); } } public Builder clear() { super.clear(); if (tensorBuilder_ == null) { tensor_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { tensorBuilder_.clear(); } if (metadataBuilder_ == null) { metadata_ = null; } else { metadata_ = null; metadataBuilder_ = null; } statusCode_ = 0; statusErrorMessage_ = ""; return this; } public com.github.os72.protobuf351.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.distruntime.DistributedRuntimeProtos.internal_static_tensorflow_RunStepResponse_descriptor; } public org.tensorflow.distruntime.RunStepResponse getDefaultInstanceForType() { return org.tensorflow.distruntime.RunStepResponse.getDefaultInstance(); } public org.tensorflow.distruntime.RunStepResponse build() { org.tensorflow.distruntime.RunStepResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tensorflow.distruntime.RunStepResponse buildPartial() { org.tensorflow.distruntime.RunStepResponse result = new org.tensorflow.distruntime.RunStepResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (tensorBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { tensor_ = java.util.Collections.unmodifiableList(tensor_); bitField0_ = (bitField0_ & ~0x00000001); } result.tensor_ = tensor_; } else { result.tensor_ = tensorBuilder_.build(); } if (metadataBuilder_ == null) { result.metadata_ = metadata_; } else { result.metadata_ = metadataBuilder_.build(); } result.statusCode_ = statusCode_; result.statusErrorMessage_ = statusErrorMessage_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.github.os72.protobuf351.Message other) { if (other instanceof org.tensorflow.distruntime.RunStepResponse) { return mergeFrom((org.tensorflow.distruntime.RunStepResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tensorflow.distruntime.RunStepResponse other) { if (other == org.tensorflow.distruntime.RunStepResponse.getDefaultInstance()) return this; if (tensorBuilder_ == null) { if (!other.tensor_.isEmpty()) { if (tensor_.isEmpty()) { tensor_ = other.tensor_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTensorIsMutable(); tensor_.addAll(other.tensor_); } onChanged(); } } else { if (!other.tensor_.isEmpty()) { if (tensorBuilder_.isEmpty()) { tensorBuilder_.dispose(); tensorBuilder_ = null; tensor_ = other.tensor_; bitField0_ = (bitField0_ & ~0x00000001); tensorBuilder_ = com.github.os72.protobuf351.GeneratedMessageV3.alwaysUseFieldBuilders ? getTensorFieldBuilder() : null; } else { tensorBuilder_.addAllMessages(other.tensor_); } } } if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (other.statusCode_ != 0) { setStatusCodeValue(other.getStatusCodeValue()); } if (!other.getStatusErrorMessage().isEmpty()) { statusErrorMessage_ = other.statusErrorMessage_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tensorflow.distruntime.RunStepResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) { parsedMessage = (org.tensorflow.distruntime.RunStepResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List tensor_ = java.util.Collections.emptyList(); private void ensureTensorIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { tensor_ = new java.util.ArrayList(tensor_); bitField0_ |= 0x00000001; } } private com.github.os72.protobuf351.RepeatedFieldBuilderV3< org.tensorflow.framework.NamedTensorProto, org.tensorflow.framework.NamedTensorProto.Builder, org.tensorflow.framework.NamedTensorProtoOrBuilder> tensorBuilder_; /** *
     * NOTE: The order of the returned tensors may or may not match
     * the fetch order specified in RunStepRequest.
     * 
* * repeated .tensorflow.NamedTensorProto tensor = 1; */ public java.util.List getTensorList() { if (tensorBuilder_ == null) { return java.util.Collections.unmodifiableList(tensor_); } else { return tensorBuilder_.getMessageList(); } } /** *
     * NOTE: The order of the returned tensors may or may not match
     * the fetch order specified in RunStepRequest.
     * 
* * repeated .tensorflow.NamedTensorProto tensor = 1; */ public int getTensorCount() { if (tensorBuilder_ == null) { return tensor_.size(); } else { return tensorBuilder_.getCount(); } } /** *
     * NOTE: The order of the returned tensors may or may not match
     * the fetch order specified in RunStepRequest.
     * 
* * repeated .tensorflow.NamedTensorProto tensor = 1; */ public org.tensorflow.framework.NamedTensorProto getTensor(int index) { if (tensorBuilder_ == null) { return tensor_.get(index); } else { return tensorBuilder_.getMessage(index); } } /** *
     * NOTE: The order of the returned tensors may or may not match
     * the fetch order specified in RunStepRequest.
     * 
* * repeated .tensorflow.NamedTensorProto tensor = 1; */ public Builder setTensor( int index, org.tensorflow.framework.NamedTensorProto value) { if (tensorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTensorIsMutable(); tensor_.set(index, value); onChanged(); } else { tensorBuilder_.setMessage(index, value); } return this; } /** *
     * NOTE: The order of the returned tensors may or may not match
     * the fetch order specified in RunStepRequest.
     * 
* * repeated .tensorflow.NamedTensorProto tensor = 1; */ public Builder setTensor( int index, org.tensorflow.framework.NamedTensorProto.Builder builderForValue) { if (tensorBuilder_ == null) { ensureTensorIsMutable(); tensor_.set(index, builderForValue.build()); onChanged(); } else { tensorBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * NOTE: The order of the returned tensors may or may not match
     * the fetch order specified in RunStepRequest.
     * 
* * repeated .tensorflow.NamedTensorProto tensor = 1; */ public Builder addTensor(org.tensorflow.framework.NamedTensorProto value) { if (tensorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTensorIsMutable(); tensor_.add(value); onChanged(); } else { tensorBuilder_.addMessage(value); } return this; } /** *
     * NOTE: The order of the returned tensors may or may not match
     * the fetch order specified in RunStepRequest.
     * 
* * repeated .tensorflow.NamedTensorProto tensor = 1; */ public Builder addTensor( int index, org.tensorflow.framework.NamedTensorProto value) { if (tensorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTensorIsMutable(); tensor_.add(index, value); onChanged(); } else { tensorBuilder_.addMessage(index, value); } return this; } /** *
     * NOTE: The order of the returned tensors may or may not match
     * the fetch order specified in RunStepRequest.
     * 
* * repeated .tensorflow.NamedTensorProto tensor = 1; */ public Builder addTensor( org.tensorflow.framework.NamedTensorProto.Builder builderForValue) { if (tensorBuilder_ == null) { ensureTensorIsMutable(); tensor_.add(builderForValue.build()); onChanged(); } else { tensorBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * NOTE: The order of the returned tensors may or may not match
     * the fetch order specified in RunStepRequest.
     * 
* * repeated .tensorflow.NamedTensorProto tensor = 1; */ public Builder addTensor( int index, org.tensorflow.framework.NamedTensorProto.Builder builderForValue) { if (tensorBuilder_ == null) { ensureTensorIsMutable(); tensor_.add(index, builderForValue.build()); onChanged(); } else { tensorBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * NOTE: The order of the returned tensors may or may not match
     * the fetch order specified in RunStepRequest.
     * 
* * repeated .tensorflow.NamedTensorProto tensor = 1; */ public Builder addAllTensor( java.lang.Iterable values) { if (tensorBuilder_ == null) { ensureTensorIsMutable(); com.github.os72.protobuf351.AbstractMessageLite.Builder.addAll( values, tensor_); onChanged(); } else { tensorBuilder_.addAllMessages(values); } return this; } /** *
     * NOTE: The order of the returned tensors may or may not match
     * the fetch order specified in RunStepRequest.
     * 
* * repeated .tensorflow.NamedTensorProto tensor = 1; */ public Builder clearTensor() { if (tensorBuilder_ == null) { tensor_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { tensorBuilder_.clear(); } return this; } /** *
     * NOTE: The order of the returned tensors may or may not match
     * the fetch order specified in RunStepRequest.
     * 
* * repeated .tensorflow.NamedTensorProto tensor = 1; */ public Builder removeTensor(int index) { if (tensorBuilder_ == null) { ensureTensorIsMutable(); tensor_.remove(index); onChanged(); } else { tensorBuilder_.remove(index); } return this; } /** *
     * NOTE: The order of the returned tensors may or may not match
     * the fetch order specified in RunStepRequest.
     * 
* * repeated .tensorflow.NamedTensorProto tensor = 1; */ public org.tensorflow.framework.NamedTensorProto.Builder getTensorBuilder( int index) { return getTensorFieldBuilder().getBuilder(index); } /** *
     * NOTE: The order of the returned tensors may or may not match
     * the fetch order specified in RunStepRequest.
     * 
* * repeated .tensorflow.NamedTensorProto tensor = 1; */ public org.tensorflow.framework.NamedTensorProtoOrBuilder getTensorOrBuilder( int index) { if (tensorBuilder_ == null) { return tensor_.get(index); } else { return tensorBuilder_.getMessageOrBuilder(index); } } /** *
     * NOTE: The order of the returned tensors may or may not match
     * the fetch order specified in RunStepRequest.
     * 
* * repeated .tensorflow.NamedTensorProto tensor = 1; */ public java.util.List getTensorOrBuilderList() { if (tensorBuilder_ != null) { return tensorBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(tensor_); } } /** *
     * NOTE: The order of the returned tensors may or may not match
     * the fetch order specified in RunStepRequest.
     * 
* * repeated .tensorflow.NamedTensorProto tensor = 1; */ public org.tensorflow.framework.NamedTensorProto.Builder addTensorBuilder() { return getTensorFieldBuilder().addBuilder( org.tensorflow.framework.NamedTensorProto.getDefaultInstance()); } /** *
     * NOTE: The order of the returned tensors may or may not match
     * the fetch order specified in RunStepRequest.
     * 
* * repeated .tensorflow.NamedTensorProto tensor = 1; */ public org.tensorflow.framework.NamedTensorProto.Builder addTensorBuilder( int index) { return getTensorFieldBuilder().addBuilder( index, org.tensorflow.framework.NamedTensorProto.getDefaultInstance()); } /** *
     * NOTE: The order of the returned tensors may or may not match
     * the fetch order specified in RunStepRequest.
     * 
* * repeated .tensorflow.NamedTensorProto tensor = 1; */ public java.util.List getTensorBuilderList() { return getTensorFieldBuilder().getBuilderList(); } private com.github.os72.protobuf351.RepeatedFieldBuilderV3< org.tensorflow.framework.NamedTensorProto, org.tensorflow.framework.NamedTensorProto.Builder, org.tensorflow.framework.NamedTensorProtoOrBuilder> getTensorFieldBuilder() { if (tensorBuilder_ == null) { tensorBuilder_ = new com.github.os72.protobuf351.RepeatedFieldBuilderV3< org.tensorflow.framework.NamedTensorProto, org.tensorflow.framework.NamedTensorProto.Builder, org.tensorflow.framework.NamedTensorProtoOrBuilder>( tensor_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); tensor_ = null; } return tensorBuilder_; } private org.tensorflow.framework.RunMetadata metadata_ = null; private com.github.os72.protobuf351.SingleFieldBuilderV3< org.tensorflow.framework.RunMetadata, org.tensorflow.framework.RunMetadata.Builder, org.tensorflow.framework.RunMetadataOrBuilder> metadataBuilder_; /** *
     * Returned metadata if requested in the options.
     * 
* * .tensorflow.RunMetadata metadata = 2; */ public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** *
     * Returned metadata if requested in the options.
     * 
* * .tensorflow.RunMetadata metadata = 2; */ public org.tensorflow.framework.RunMetadata getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? org.tensorflow.framework.RunMetadata.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** *
     * Returned metadata if requested in the options.
     * 
* * .tensorflow.RunMetadata metadata = 2; */ public Builder setMetadata(org.tensorflow.framework.RunMetadata value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } return this; } /** *
     * Returned metadata if requested in the options.
     * 
* * .tensorflow.RunMetadata metadata = 2; */ public Builder setMetadata( org.tensorflow.framework.RunMetadata.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Returned metadata if requested in the options.
     * 
* * .tensorflow.RunMetadata metadata = 2; */ public Builder mergeMetadata(org.tensorflow.framework.RunMetadata value) { if (metadataBuilder_ == null) { if (metadata_ != null) { metadata_ = org.tensorflow.framework.RunMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); } else { metadata_ = value; } onChanged(); } else { metadataBuilder_.mergeFrom(value); } return this; } /** *
     * Returned metadata if requested in the options.
     * 
* * .tensorflow.RunMetadata metadata = 2; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadata_ = null; metadataBuilder_ = null; } return this; } /** *
     * Returned metadata if requested in the options.
     * 
* * .tensorflow.RunMetadata metadata = 2; */ public org.tensorflow.framework.RunMetadata.Builder getMetadataBuilder() { onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** *
     * Returned metadata if requested in the options.
     * 
* * .tensorflow.RunMetadata metadata = 2; */ public org.tensorflow.framework.RunMetadataOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? org.tensorflow.framework.RunMetadata.getDefaultInstance() : metadata_; } } /** *
     * Returned metadata if requested in the options.
     * 
* * .tensorflow.RunMetadata metadata = 2; */ private com.github.os72.protobuf351.SingleFieldBuilderV3< org.tensorflow.framework.RunMetadata, org.tensorflow.framework.RunMetadata.Builder, org.tensorflow.framework.RunMetadataOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.github.os72.protobuf351.SingleFieldBuilderV3< org.tensorflow.framework.RunMetadata, org.tensorflow.framework.RunMetadata.Builder, org.tensorflow.framework.RunMetadataOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } private int statusCode_ = 0; /** *
     * If store_errors_in_response_body is true in the request, then
     * optionally the server may return an OK status for the RPC and
     * fill the true status into the fields below, to allow for messages
     * that are too long to fit in metadata.
     * 
* * .tensorflow.error.Code status_code = 3; */ public int getStatusCodeValue() { return statusCode_; } /** *
     * If store_errors_in_response_body is true in the request, then
     * optionally the server may return an OK status for the RPC and
     * fill the true status into the fields below, to allow for messages
     * that are too long to fit in metadata.
     * 
* * .tensorflow.error.Code status_code = 3; */ public Builder setStatusCodeValue(int value) { statusCode_ = value; onChanged(); return this; } /** *
     * If store_errors_in_response_body is true in the request, then
     * optionally the server may return an OK status for the RPC and
     * fill the true status into the fields below, to allow for messages
     * that are too long to fit in metadata.
     * 
* * .tensorflow.error.Code status_code = 3; */ public org.tensorflow.framework.Code getStatusCode() { org.tensorflow.framework.Code result = org.tensorflow.framework.Code.valueOf(statusCode_); return result == null ? org.tensorflow.framework.Code.UNRECOGNIZED : result; } /** *
     * If store_errors_in_response_body is true in the request, then
     * optionally the server may return an OK status for the RPC and
     * fill the true status into the fields below, to allow for messages
     * that are too long to fit in metadata.
     * 
* * .tensorflow.error.Code status_code = 3; */ public Builder setStatusCode(org.tensorflow.framework.Code value) { if (value == null) { throw new NullPointerException(); } statusCode_ = value.getNumber(); onChanged(); return this; } /** *
     * If store_errors_in_response_body is true in the request, then
     * optionally the server may return an OK status for the RPC and
     * fill the true status into the fields below, to allow for messages
     * that are too long to fit in metadata.
     * 
* * .tensorflow.error.Code status_code = 3; */ public Builder clearStatusCode() { statusCode_ = 0; onChanged(); return this; } private java.lang.Object statusErrorMessage_ = ""; /** * string status_error_message = 4; */ public java.lang.String getStatusErrorMessage() { java.lang.Object ref = statusErrorMessage_; if (!(ref instanceof java.lang.String)) { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusErrorMessage_ = s; return s; } else { return (java.lang.String) ref; } } /** * string status_error_message = 4; */ public com.github.os72.protobuf351.ByteString getStatusErrorMessageBytes() { java.lang.Object ref = statusErrorMessage_; if (ref instanceof String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); statusErrorMessage_ = b; return b; } else { return (com.github.os72.protobuf351.ByteString) ref; } } /** * string status_error_message = 4; */ public Builder setStatusErrorMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } statusErrorMessage_ = value; onChanged(); return this; } /** * string status_error_message = 4; */ public Builder clearStatusErrorMessage() { statusErrorMessage_ = getDefaultInstance().getStatusErrorMessage(); onChanged(); return this; } /** * string status_error_message = 4; */ public Builder setStatusErrorMessageBytes( com.github.os72.protobuf351.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); statusErrorMessage_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.RunStepResponse) } // @@protoc_insertion_point(class_scope:tensorflow.RunStepResponse) private static final org.tensorflow.distruntime.RunStepResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tensorflow.distruntime.RunStepResponse(); } public static org.tensorflow.distruntime.RunStepResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.github.os72.protobuf351.Parser PARSER = new com.github.os72.protobuf351.AbstractParser() { public RunStepResponse parsePartialFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return new RunStepResponse(input, extensionRegistry); } }; public static com.github.os72.protobuf351.Parser parser() { return PARSER; } @java.lang.Override public com.github.os72.protobuf351.Parser getParserForType() { return PARSER; } public org.tensorflow.distruntime.RunStepResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy