public com.dremio.exec.proto.UserBitShared.CoreOperatorTypeMetricsMap buildPartial() { com.dremio.exec.proto.UserBitShared.CoreOperatorTypeMetricsMap result = new com.dremio.exec.proto.UserBitShared.CoreOperatorTypeMetricsMap(this); int from_bitField0_ = bitField0_; if (metricsDefBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { metricsDef_ = java.util.Collections.unmodifiableList(metricsDef_); bitField0_ = (bitField0_ & ~0x00000001); } result.metricsDef_ = metricsDef_; } else { result.metricsDef_ = metricsDefBuilder_.build(); } onBuilt(); return result; }
bitField0_ = (bitField0_ & ~0x08000000); if (operatorTypeMetricsMapBuilder_ == null) { operatorTypeMetricsMap_ = com.dremio.exec.proto.UserBitShared.CoreOperatorTypeMetricsMap.getDefaultInstance(); } else { operatorTypeMetricsMapBuilder_.clear();
private static Optional<MetricsDef> getMetricsDef(CoreOperatorTypeMetricsMap coreOperatorTypeMetricsMap, int operatorType) { if (operatorType < coreOperatorTypeMetricsMap.getMetricsDefCount()) { return Optional.ofNullable(coreOperatorTypeMetricsMap.getMetricsDef(operatorType)); } return Optional.empty(); }
break; case 33: builder.setOperatorTypeMetricsMap(input.mergeObject(com.dremio.exec.proto.UserBitShared.CoreOperatorTypeMetricsMap.newBuilder(), com.dremio.exec.proto.SchemaUserBitShared.CoreOperatorTypeMetricsMap.MERGE));
com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; makeExtensionsImmutable();
nodeProfile_ = java.util.Collections.emptyList(); dremioVersion_ = ""; operatorTypeMetricsMap_ = com.dremio.exec.proto.UserBitShared.CoreOperatorTypeMetricsMap.getDefaultInstance(); resourceSchedulingProfile_ = com.dremio.exec.proto.UserBitShared.ResourceSchedulingProfile.getDefaultInstance(); cancelReason_ = "";
public Builder mergeFrom(com.dremio.exec.proto.UserBitShared.CoreOperatorTypeMetricsMap other) { if (other == com.dremio.exec.proto.UserBitShared.CoreOperatorTypeMetricsMap.getDefaultInstance()) return this; if (metricsDefBuilder_ == null) { if (!other.metricsDef_.isEmpty()) { this.mergeUnknownFields(other.getUnknownFields()); return this;
/** * <code>optional .exec.shared.CoreOperatorTypeMetricsMap operator_type_metrics_map = 33;</code> */ public Builder mergeOperatorTypeMetricsMap(com.dremio.exec.proto.UserBitShared.CoreOperatorTypeMetricsMap value) { if (operatorTypeMetricsMapBuilder_ == null) { if (((bitField0_ & 0x10000000) == 0x10000000) && operatorTypeMetricsMap_ != com.dremio.exec.proto.UserBitShared.CoreOperatorTypeMetricsMap.getDefaultInstance()) { operatorTypeMetricsMap_ = com.dremio.exec.proto.UserBitShared.CoreOperatorTypeMetricsMap.newBuilder(operatorTypeMetricsMap_).mergeFrom(value).buildPartial(); } else { operatorTypeMetricsMap_ = value; } onChanged(); } else { operatorTypeMetricsMapBuilder_.mergeFrom(value); } bitField0_ |= 0x10000000; return this; } /**
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.dremio.exec.proto.UserBitShared.CoreOperatorTypeMetricsMap prototype) {
public Builder toBuilder() { return newBuilder(this); }
/** * <code>optional .exec.shared.CoreOperatorTypeMetricsMap operator_type_metrics_map = 33;</code> */ public Builder clearOperatorTypeMetricsMap() { if (operatorTypeMetricsMapBuilder_ == null) { operatorTypeMetricsMap_ = com.dremio.exec.proto.UserBitShared.CoreOperatorTypeMetricsMap.getDefaultInstance(); onChanged(); } else { operatorTypeMetricsMapBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x10000000); return this; } /**
public com.dremio.exec.proto.UserBitShared.CoreOperatorTypeMetricsMap getDefaultInstanceForType() { return com.dremio.exec.proto.UserBitShared.CoreOperatorTypeMetricsMap.getDefaultInstance(); }
public static Builder newBuilder(com.dremio.exec.proto.UserBitShared.CoreOperatorTypeMetricsMap prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < metricsDef_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, metricsDef_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public void writeTo(io.protostuff.Output output, com.dremio.exec.proto.UserBitShared.CoreOperatorTypeMetricsMap message) throws java.io.IOException { for(com.dremio.exec.proto.UserBitShared.MetricsDef metricsDef : message.getMetricsDefList()) output.writeObject(1, metricsDef, com.dremio.exec.proto.SchemaUserBitShared.MetricsDef.WRITE, true); } public boolean isInitialized(com.dremio.exec.proto.UserBitShared.CoreOperatorTypeMetricsMap message)
public com.dremio.exec.proto.UserBitShared.CoreOperatorTypeMetricsMap.Builder newMessage() { return com.dremio.exec.proto.UserBitShared.CoreOperatorTypeMetricsMap.newBuilder(); } public java.lang.String getFieldName(int number)
public boolean isInitialized(com.dremio.exec.proto.UserBitShared.CoreOperatorTypeMetricsMap message) { return message.isInitialized(); } public java.lang.String getFieldName(int number)
public com.dremio.exec.proto.UserBitShared.CoreOperatorTypeMetricsMap build() { com.dremio.exec.proto.UserBitShared.CoreOperatorTypeMetricsMap result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < metricsDef_.size(); i++) { output.writeMessage(1, metricsDef_.get(i)); } getUnknownFields().writeTo(output); }
private static CoreOperatorTypeMetricsMap.Builder getMapBuilder() { CoreOperatorTypeMetricsMap.Builder builder = CoreOperatorTypeMetricsMap.newBuilder(); for (int i = 0; i < CoreOperatorType.values().length; i++) { // Initalizing with metricsdef object with empty list => This can be modified later at the time of registration builder.addMetricsDef(MetricsDef.getDefaultInstance()); } return builder; }