@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (getDeviceNumIdsList().size() > 0) { output.writeUInt32NoTag(18); output.writeUInt32NoTag(deviceNumIdsMemoizedSerializedSize); } for (int i = 0; i < deviceNumIds_.size(); i++) { output.writeUInt64NoTag(deviceNumIds_.get(i)); } for (int i = 0; i < deviceIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, deviceIds_.getRaw(i)); } if (fieldMask_ != null) { output.writeMessage(4, getFieldMask()); } if (gatewayListOptions_ != null) { output.writeMessage(6, getGatewayListOptions()); } if (pageSize_ != 0) { output.writeInt32(100, pageSize_); } if (!getPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 101, pageToken_); } unknownFields.writeTo(output); }
if (!getDeviceNumIdsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize);
if (getDeviceNumIdsCount() > 0) { hash = (37 * hash) + DEVICE_NUM_IDS_FIELD_NUMBER; hash = (53 * hash) + getDeviceNumIdsList().hashCode();
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.iot.v1.ListDevicesRequest)) { return super.equals(obj); } com.google.cloud.iot.v1.ListDevicesRequest other = (com.google.cloud.iot.v1.ListDevicesRequest) obj; boolean result = true; result = result && getParent().equals(other.getParent()); result = result && getDeviceNumIdsList().equals(other.getDeviceNumIdsList()); result = result && getDeviceIdsList().equals(other.getDeviceIdsList()); result = result && (hasFieldMask() == other.hasFieldMask()); if (hasFieldMask()) { result = result && getFieldMask().equals(other.getFieldMask()); } result = result && (hasGatewayListOptions() == other.hasGatewayListOptions()); if (hasGatewayListOptions()) { result = result && getGatewayListOptions().equals(other.getGatewayListOptions()); } result = result && (getPageSize() == other.getPageSize()); result = result && getPageToken().equals(other.getPageToken()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (getDeviceNumIdsList().size() > 0) { output.writeUInt32NoTag(18); output.writeUInt32NoTag(deviceNumIdsMemoizedSerializedSize); } for (int i = 0; i < deviceNumIds_.size(); i++) { output.writeUInt64NoTag(deviceNumIds_.get(i)); } for (int i = 0; i < deviceIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, deviceIds_.getRaw(i)); } if (fieldMask_ != null) { output.writeMessage(4, getFieldMask()); } if (gatewayListOptions_ != null) { output.writeMessage(6, getGatewayListOptions()); } if (pageSize_ != 0) { output.writeInt32(100, pageSize_); } if (!getPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 101, pageToken_); } unknownFields.writeTo(output); }
if (!getDeviceNumIdsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize);
if (getDeviceNumIdsCount() > 0) { hash = (37 * hash) + DEVICE_NUM_IDS_FIELD_NUMBER; hash = (53 * hash) + getDeviceNumIdsList().hashCode();
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.iot.v1.ListDevicesRequest)) { return super.equals(obj); } com.google.cloud.iot.v1.ListDevicesRequest other = (com.google.cloud.iot.v1.ListDevicesRequest) obj; boolean result = true; result = result && getParent().equals(other.getParent()); result = result && getDeviceNumIdsList().equals(other.getDeviceNumIdsList()); result = result && getDeviceIdsList().equals(other.getDeviceIdsList()); result = result && (hasFieldMask() == other.hasFieldMask()); if (hasFieldMask()) { result = result && getFieldMask().equals(other.getFieldMask()); } result = result && (hasGatewayListOptions() == other.hasGatewayListOptions()); if (hasGatewayListOptions()) { result = result && getGatewayListOptions().equals(other.getGatewayListOptions()); } result = result && (getPageSize() == other.getPageSize()); result = result && getPageToken().equals(other.getPageToken()); result = result && unknownFields.equals(other.unknownFields); return result; }