public org.tensorflow.framework.AttrValue.ListValue buildPartial() { org.tensorflow.framework.AttrValue.ListValue result = new org.tensorflow.framework.AttrValue.ListValue(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) {
hash = (19 * hash) + getDescriptor().hashCode(); if (getSCount() > 0) { hash = (37 * hash) + S_FIELD_NUMBER; hash = (53 * hash) + getSList().hashCode(); if (getICount() > 0) { hash = (37 * hash) + I_FIELD_NUMBER; hash = (53 * hash) + getIList().hashCode(); if (getFCount() > 0) { hash = (37 * hash) + F_FIELD_NUMBER; hash = (53 * hash) + getFList().hashCode(); if (getBCount() > 0) { hash = (37 * hash) + B_FIELD_NUMBER; hash = (53 * hash) + getBList().hashCode(); if (getTypeCount() > 0) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_.hashCode(); if (getShapeCount() > 0) { hash = (37 * hash) + SHAPE_FIELD_NUMBER; hash = (53 * hash) + getShapeList().hashCode(); if (getTensorCount() > 0) { hash = (37 * hash) + TENSOR_FIELD_NUMBER; hash = (53 * hash) + getTensorList().hashCode();
public Builder mergeFrom(org.tensorflow.framework.AttrValue.ListValue other) { if (other == org.tensorflow.framework.AttrValue.ListValue.getDefaultInstance()) return this; if (!other.s_.isEmpty()) { if (s_.isEmpty()) {
public Builder mergeFrom(org.tensorflow.framework.AttrValue.ListValue other) { if (other == org.tensorflow.framework.AttrValue.ListValue.getDefaultInstance()) return this; if (!other.s_.isEmpty()) { if (s_.isEmpty()) {
size += 1 * getSList().size(); if (!getIList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream dataSize = 4 * getFList().size(); size += dataSize; if (!getFList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream dataSize = 1 * getBList().size(); size += dataSize; if (!getBList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream if (!getTypeList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize);
case 1: result = result && getList() .equals(other.getList()); break; case 10:
public org.tensorflow.framework.AttrValue.ListValue buildPartial() { org.tensorflow.framework.AttrValue.ListValue result = new org.tensorflow.framework.AttrValue.ListValue(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) {
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < s_.size(); i++) { output.writeBytes(2, s_.get(i)); if (getIList().size() > 0) { output.writeUInt32NoTag(26); output.writeUInt32NoTag(iMemoizedSerializedSize); output.writeInt64NoTag(i_.get(i)); if (getFList().size() > 0) { output.writeUInt32NoTag(34); output.writeUInt32NoTag(fMemoizedSerializedSize); output.writeFloatNoTag(f_.get(i)); if (getBList().size() > 0) { output.writeUInt32NoTag(42); output.writeUInt32NoTag(bMemoizedSerializedSize); output.writeBoolNoTag(b_.get(i)); if (getTypeList().size() > 0) { output.writeUInt32NoTag(50); output.writeUInt32NoTag(typeMemoizedSerializedSize);
hash = (19 * hash) + getDescriptor().hashCode(); if (getSCount() > 0) { hash = (37 * hash) + S_FIELD_NUMBER; hash = (53 * hash) + getSList().hashCode(); if (getICount() > 0) { hash = (37 * hash) + I_FIELD_NUMBER; hash = (53 * hash) + getIList().hashCode(); if (getFCount() > 0) { hash = (37 * hash) + F_FIELD_NUMBER; hash = (53 * hash) + getFList().hashCode(); if (getBCount() > 0) { hash = (37 * hash) + B_FIELD_NUMBER; hash = (53 * hash) + getBList().hashCode(); if (getTypeCount() > 0) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_.hashCode(); if (getShapeCount() > 0) { hash = (37 * hash) + SHAPE_FIELD_NUMBER; hash = (53 * hash) + getShapeList().hashCode(); if (getTensorCount() > 0) { hash = (37 * hash) + TENSOR_FIELD_NUMBER; hash = (53 * hash) + getTensorList().hashCode();
/** * <pre> * any "list(...)" * </pre> * * <code>.tensorflow.AttrValue.ListValue list = 1;</code> */ public Builder mergeList(org.tensorflow.framework.AttrValue.ListValue value) { if (listBuilder_ == null) { if (valueCase_ == 1 && value_ != org.tensorflow.framework.AttrValue.ListValue.getDefaultInstance()) { value_ = org.tensorflow.framework.AttrValue.ListValue.newBuilder((org.tensorflow.framework.AttrValue.ListValue) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 1) { listBuilder_.mergeFrom(value); } listBuilder_.setMessage(value); } valueCase_ = 1; return this; } /**
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tensorflow.framework.AttrValue.ListValue)) { return super.equals(obj); } org.tensorflow.framework.AttrValue.ListValue other = (org.tensorflow.framework.AttrValue.ListValue) obj; boolean result = true; result = result && getSList() .equals(other.getSList()); result = result && getIList() .equals(other.getIList()); result = result && getFList() .equals(other.getFList()); result = result && getBList() .equals(other.getBList()); result = result && type_.equals(other.type_); result = result && getShapeList() .equals(other.getShapeList()); result = result && getTensorList() .equals(other.getTensorList()); result = result && getFuncList() .equals(other.getFuncList()); result = result && unknownFields.equals(other.unknownFields); return result; }
/** * <pre> * any "list(...)" * </pre> * * <code>.tensorflow.AttrValue.ListValue list = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.AttrValue.ListValue, org.tensorflow.framework.AttrValue.ListValue.Builder, org.tensorflow.framework.AttrValue.ListValueOrBuilder> getListFieldBuilder() { if (listBuilder_ == null) { if (!(valueCase_ == 1)) { value_ = org.tensorflow.framework.AttrValue.ListValue.getDefaultInstance(); } listBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.AttrValue.ListValue, org.tensorflow.framework.AttrValue.ListValue.Builder, org.tensorflow.framework.AttrValue.ListValueOrBuilder>( (org.tensorflow.framework.AttrValue.ListValue) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 1; onChanged();; return listBuilder_; }
/** * <pre> * any "list(...)" * </pre> * * <code>.tensorflow.AttrValue.ListValue list = 1;</code> */ public org.tensorflow.framework.AttrValue.ListValue getList() { if (listBuilder_ == null) { if (valueCase_ == 1) { return (org.tensorflow.framework.AttrValue.ListValue) value_; } return org.tensorflow.framework.AttrValue.ListValue.getDefaultInstance(); } else { if (valueCase_ == 1) { return listBuilder_.getMessage(); } return org.tensorflow.framework.AttrValue.ListValue.getDefaultInstance(); } } /**
/** * <pre> * any "list(...)" * </pre> * * <code>.tensorflow.AttrValue.ListValue list = 1;</code> */ public org.tensorflow.framework.AttrValue.ListValueOrBuilder getListOrBuilder() { if ((valueCase_ == 1) && (listBuilder_ != null)) { return listBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 1) { return (org.tensorflow.framework.AttrValue.ListValue) value_; } return org.tensorflow.framework.AttrValue.ListValue.getDefaultInstance(); } } /**
/** * <pre> * any "list(...)" * </pre> * * <code>.tensorflow.AttrValue.ListValue list = 1;</code> */ public org.tensorflow.framework.AttrValue.ListValue getList() { if (valueCase_ == 1) { return (org.tensorflow.framework.AttrValue.ListValue) value_; } return org.tensorflow.framework.AttrValue.ListValue.getDefaultInstance(); } /**
public org.tensorflow.framework.AttrValue.ListValue getDefaultInstanceForType() { return org.tensorflow.framework.AttrValue.ListValue.getDefaultInstance(); }
/** * <pre> * any "list(...)" * </pre> * * <code>.tensorflow.AttrValue.ListValue list = 1;</code> */ public org.tensorflow.framework.AttrValue.ListValueOrBuilder getListOrBuilder() { if (valueCase_ == 1) { return (org.tensorflow.framework.AttrValue.ListValue) value_; } return org.tensorflow.framework.AttrValue.ListValue.getDefaultInstance(); }
case LIST: val setList = attr.getList(); if(!setList.getIList().isEmpty()) { val intList = Ints.toArray(setList.getIList()); if(adapter != null) { adapter.mapAttributeFor(intList,currentField,on); on.setValueFor(currentField,intList); else if(!setList.getBList().isEmpty()) { break; else if(!setList.getFList().isEmpty()) { val floats = Floats.toArray(setList.getFList()); if(adapter != null) { adapter.mapAttributeFor(floats,currentField,on); break; else if(!setList.getFuncList().isEmpty()) { break; else if(!setList.getTensorList().isEmpty()) { break;
size += 1 * getSList().size(); if (!getIList().isEmpty()) { size += 1; size += com.github.os72.protobuf351.CodedOutputStream dataSize = 4 * getFList().size(); size += dataSize; if (!getFList().isEmpty()) { size += 1; size += com.github.os72.protobuf351.CodedOutputStream dataSize = 1 * getBList().size(); size += dataSize; if (!getBList().isEmpty()) { size += 1; size += com.github.os72.protobuf351.CodedOutputStream if (!getTypeList().isEmpty()) { size += 1; size += com.github.os72.protobuf351.CodedOutputStream .computeUInt32SizeNoTag(dataSize);
case 1: result = result && getList() .equals(other.getList()); break; case 10: