public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getSchemeBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getHostBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, port_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getFileBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(5, getUserInfoBytes()); } getUnknownFields().writeTo(output); }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getSchemeBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getHostBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, port_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getFileBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getUserInfoBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
hash = (53 * hash) + getUserInfo().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash;
getUnknownFields().equals(other.getUnknownFields()); return result;
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnProtos.URLProto other) { if (other == org.apache.hadoop.yarn.proto.YarnProtos.URLProto.getDefaultInstance()) return this; if (other.hasScheme()) { bitField0_ |= 0x00000001; scheme_ = other.scheme_; onChanged(); } if (other.hasHost()) { bitField0_ |= 0x00000002; host_ = other.host_; onChanged(); } if (other.hasPort()) { setPort(other.getPort()); } if (other.hasFile()) { bitField0_ |= 0x00000008; file_ = other.file_; onChanged(); } if (other.hasUserInfo()) { bitField0_ |= 0x00000010; userInfo_ = other.userInfo_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }