parser() {
+ return DEFAULT_INSTANCE.getParserForType();
+ }
+ }
+
public interface AnswerRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:proto.rpc.webrtc.v1.AnswerRequest)
com.google.protobuf.MessageLiteOrBuilder {
@@ -5623,6 +5813,25 @@ public interface AnswerRequestOrBuilder extends
*/
proto.rpc.webrtc.v1.Signaling.AnswerRequestErrorStage getError();
+ /**
+ *
+ * heartbeat is sent periodically to verify liveness of answerer
+ *
+ *
+ * .proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage heartbeat = 6 [json_name = "heartbeat"];
+ * @return Whether the heartbeat field is set.
+ */
+ boolean hasHeartbeat();
+ /**
+ *
+ * heartbeat is sent periodically to verify liveness of answerer
+ *
+ *
+ * .proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage heartbeat = 6 [json_name = "heartbeat"];
+ * @return The heartbeat.
+ */
+ proto.rpc.webrtc.v1.Signaling.AnswerRequestHeartbeatStage getHeartbeat();
+
public proto.rpc.webrtc.v1.Signaling.AnswerRequest.StageCase getStageCase();
}
/**
@@ -5648,6 +5857,7 @@ public enum StageCase {
UPDATE(3),
DONE(4),
ERROR(5),
+ HEARTBEAT(6),
STAGE_NOT_SET(0);
private final int value;
private StageCase(int value) {
@@ -5667,6 +5877,7 @@ public static StageCase forNumber(int value) {
case 3: return UPDATE;
case 4: return DONE;
case 5: return ERROR;
+ case 6: return HEARTBEAT;
case 0: return STAGE_NOT_SET;
default: return null;
}
@@ -5975,6 +6186,76 @@ private void clearError() {
}
}
+ public static final int HEARTBEAT_FIELD_NUMBER = 6;
+ /**
+ *
+ * heartbeat is sent periodically to verify liveness of answerer
+ *
+ *
+ * .proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage heartbeat = 6 [json_name = "heartbeat"];
+ */
+ @java.lang.Override
+ public boolean hasHeartbeat() {
+ return stageCase_ == 6;
+ }
+ /**
+ *
+ * heartbeat is sent periodically to verify liveness of answerer
+ *
+ *
+ * .proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage heartbeat = 6 [json_name = "heartbeat"];
+ */
+ @java.lang.Override
+ public proto.rpc.webrtc.v1.Signaling.AnswerRequestHeartbeatStage getHeartbeat() {
+ if (stageCase_ == 6) {
+ return (proto.rpc.webrtc.v1.Signaling.AnswerRequestHeartbeatStage) stage_;
+ }
+ return proto.rpc.webrtc.v1.Signaling.AnswerRequestHeartbeatStage.getDefaultInstance();
+ }
+ /**
+ *
+ * heartbeat is sent periodically to verify liveness of answerer
+ *
+ *
+ * .proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage heartbeat = 6 [json_name = "heartbeat"];
+ */
+ private void setHeartbeat(proto.rpc.webrtc.v1.Signaling.AnswerRequestHeartbeatStage value) {
+ value.getClass();
+ stage_ = value;
+ stageCase_ = 6;
+ }
+ /**
+ *
+ * heartbeat is sent periodically to verify liveness of answerer
+ *
+ *
+ * .proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage heartbeat = 6 [json_name = "heartbeat"];
+ */
+ private void mergeHeartbeat(proto.rpc.webrtc.v1.Signaling.AnswerRequestHeartbeatStage value) {
+ value.getClass();
+ if (stageCase_ == 6 &&
+ stage_ != proto.rpc.webrtc.v1.Signaling.AnswerRequestHeartbeatStage.getDefaultInstance()) {
+ stage_ = proto.rpc.webrtc.v1.Signaling.AnswerRequestHeartbeatStage.newBuilder((proto.rpc.webrtc.v1.Signaling.AnswerRequestHeartbeatStage) stage_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ stage_ = value;
+ }
+ stageCase_ = 6;
+ }
+ /**
+ *
+ * heartbeat is sent periodically to verify liveness of answerer
+ *
+ *
+ * .proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage heartbeat = 6 [json_name = "heartbeat"];
+ */
+ private void clearHeartbeat() {
+ if (stageCase_ == 6) {
+ stageCase_ = 0;
+ stage_ = null;
+ }
+ }
+
public static proto.rpc.webrtc.v1.Signaling.AnswerRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -6378,6 +6659,78 @@ public Builder clearError() {
return this;
}
+ /**
+ *
+ * heartbeat is sent periodically to verify liveness of answerer
+ *
+ *
+ * .proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage heartbeat = 6 [json_name = "heartbeat"];
+ */
+ @java.lang.Override
+ public boolean hasHeartbeat() {
+ return instance.hasHeartbeat();
+ }
+ /**
+ *
+ * heartbeat is sent periodically to verify liveness of answerer
+ *
+ *
+ * .proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage heartbeat = 6 [json_name = "heartbeat"];
+ */
+ @java.lang.Override
+ public proto.rpc.webrtc.v1.Signaling.AnswerRequestHeartbeatStage getHeartbeat() {
+ return instance.getHeartbeat();
+ }
+ /**
+ *
+ * heartbeat is sent periodically to verify liveness of answerer
+ *
+ *
+ * .proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage heartbeat = 6 [json_name = "heartbeat"];
+ */
+ public Builder setHeartbeat(proto.rpc.webrtc.v1.Signaling.AnswerRequestHeartbeatStage value) {
+ copyOnWrite();
+ instance.setHeartbeat(value);
+ return this;
+ }
+ /**
+ *
+ * heartbeat is sent periodically to verify liveness of answerer
+ *
+ *
+ * .proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage heartbeat = 6 [json_name = "heartbeat"];
+ */
+ public Builder setHeartbeat(
+ proto.rpc.webrtc.v1.Signaling.AnswerRequestHeartbeatStage.Builder builderForValue) {
+ copyOnWrite();
+ instance.setHeartbeat(builderForValue.build());
+ return this;
+ }
+ /**
+ *
+ * heartbeat is sent periodically to verify liveness of answerer
+ *
+ *
+ * .proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage heartbeat = 6 [json_name = "heartbeat"];
+ */
+ public Builder mergeHeartbeat(proto.rpc.webrtc.v1.Signaling.AnswerRequestHeartbeatStage value) {
+ copyOnWrite();
+ instance.mergeHeartbeat(value);
+ return this;
+ }
+ /**
+ *
+ * heartbeat is sent periodically to verify liveness of answerer
+ *
+ *
+ * .proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage heartbeat = 6 [json_name = "heartbeat"];
+ */
+ public Builder clearHeartbeat() {
+ copyOnWrite();
+ instance.clearHeartbeat();
+ return this;
+ }
+
// @@protoc_insertion_point(builder_scope:proto.rpc.webrtc.v1.AnswerRequest)
}
@java.lang.Override
@@ -6401,10 +6754,11 @@ protected final java.lang.Object dynamicMethod(
proto.rpc.webrtc.v1.Signaling.AnswerRequestUpdateStage.class,
proto.rpc.webrtc.v1.Signaling.AnswerRequestDoneStage.class,
proto.rpc.webrtc.v1.Signaling.AnswerRequestErrorStage.class,
+ proto.rpc.webrtc.v1.Signaling.AnswerRequestHeartbeatStage.class,
};
java.lang.String info =
- "\u0000\u0005\u0001\u0000\u0001\u0005\u0005\u0000\u0000\u0000\u0001\u0208\u0002<\u0000" +
- "\u0003<\u0000\u0004<\u0000\u0005<\u0000";
+ "\u0000\u0006\u0001\u0000\u0001\u0006\u0006\u0000\u0000\u0000\u0001\u0208\u0002<\u0000" +
+ "\u0003<\u0000\u0004<\u0000\u0005<\u0000\u0006<\u0000";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
diff --git a/core/sdk/src/main/gen/viam/app/v1/Billing.java b/core/sdk/src/main/gen/viam/app/v1/Billing.java
index b59cf5704..d70715a00 100644
--- a/core/sdk/src/main/gen/viam/app/v1/Billing.java
+++ b/core/sdk/src/main/gen/viam/app/v1/Billing.java
@@ -99,6 +99,256 @@ private PaymentMethodType(int value) {
// @@protoc_insertion_point(enum_scope:viam.app.v1.PaymentMethodType)
}
+ /**
+ * Protobuf enum {@code viam.app.v1.UsageCostType}
+ */
+ public enum UsageCostType
+ implements com.google.protobuf.Internal.EnumLite {
+ /**
+ * USAGE_COST_TYPE_UNSPECIFIED = 0;
+ */
+ USAGE_COST_TYPE_UNSPECIFIED(0),
+ /**
+ * USAGE_COST_TYPE_DATA_UPLOAD = 1;
+ */
+ USAGE_COST_TYPE_DATA_UPLOAD(1),
+ /**
+ * USAGE_COST_TYPE_DATA_EGRESS = 2;
+ */
+ USAGE_COST_TYPE_DATA_EGRESS(2),
+ /**
+ * USAGE_COST_TYPE_REMOTE_CONTROL = 3;
+ */
+ USAGE_COST_TYPE_REMOTE_CONTROL(3),
+ /**
+ * USAGE_COST_TYPE_STANDARD_COMPUTE = 4;
+ */
+ USAGE_COST_TYPE_STANDARD_COMPUTE(4),
+ /**
+ * USAGE_COST_TYPE_CLOUD_STORAGE = 5;
+ */
+ USAGE_COST_TYPE_CLOUD_STORAGE(5),
+ /**
+ * USAGE_COST_TYPE_BINARY_DATA_CLOUD_STORAGE = 6;
+ */
+ USAGE_COST_TYPE_BINARY_DATA_CLOUD_STORAGE(6),
+ /**
+ * USAGE_COST_TYPE_OTHER_CLOUD_STORAGE = 7;
+ */
+ USAGE_COST_TYPE_OTHER_CLOUD_STORAGE(7),
+ /**
+ * USAGE_COST_TYPE_PER_MACHINE = 8;
+ */
+ USAGE_COST_TYPE_PER_MACHINE(8),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * USAGE_COST_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int USAGE_COST_TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ * USAGE_COST_TYPE_DATA_UPLOAD = 1;
+ */
+ public static final int USAGE_COST_TYPE_DATA_UPLOAD_VALUE = 1;
+ /**
+ * USAGE_COST_TYPE_DATA_EGRESS = 2;
+ */
+ public static final int USAGE_COST_TYPE_DATA_EGRESS_VALUE = 2;
+ /**
+ * USAGE_COST_TYPE_REMOTE_CONTROL = 3;
+ */
+ public static final int USAGE_COST_TYPE_REMOTE_CONTROL_VALUE = 3;
+ /**
+ * USAGE_COST_TYPE_STANDARD_COMPUTE = 4;
+ */
+ public static final int USAGE_COST_TYPE_STANDARD_COMPUTE_VALUE = 4;
+ /**
+ * USAGE_COST_TYPE_CLOUD_STORAGE = 5;
+ */
+ public static final int USAGE_COST_TYPE_CLOUD_STORAGE_VALUE = 5;
+ /**
+ * USAGE_COST_TYPE_BINARY_DATA_CLOUD_STORAGE = 6;
+ */
+ public static final int USAGE_COST_TYPE_BINARY_DATA_CLOUD_STORAGE_VALUE = 6;
+ /**
+ * USAGE_COST_TYPE_OTHER_CLOUD_STORAGE = 7;
+ */
+ public static final int USAGE_COST_TYPE_OTHER_CLOUD_STORAGE_VALUE = 7;
+ /**
+ * USAGE_COST_TYPE_PER_MACHINE = 8;
+ */
+ public static final int USAGE_COST_TYPE_PER_MACHINE_VALUE = 8;
+
+
+ @java.lang.Override
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The number of the enum to look for.
+ * @return The enum associated with the given number.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static UsageCostType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static UsageCostType forNumber(int value) {
+ switch (value) {
+ case 0: return USAGE_COST_TYPE_UNSPECIFIED;
+ case 1: return USAGE_COST_TYPE_DATA_UPLOAD;
+ case 2: return USAGE_COST_TYPE_DATA_EGRESS;
+ case 3: return USAGE_COST_TYPE_REMOTE_CONTROL;
+ case 4: return USAGE_COST_TYPE_STANDARD_COMPUTE;
+ case 5: return USAGE_COST_TYPE_CLOUD_STORAGE;
+ case 6: return USAGE_COST_TYPE_BINARY_DATA_CLOUD_STORAGE;
+ case 7: return USAGE_COST_TYPE_OTHER_CLOUD_STORAGE;
+ case 8: return USAGE_COST_TYPE_PER_MACHINE;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ UsageCostType> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ @java.lang.Override
+ public UsageCostType findValueByNumber(int number) {
+ return UsageCostType.forNumber(number);
+ }
+ };
+
+ public static com.google.protobuf.Internal.EnumVerifier
+ internalGetVerifier() {
+ return UsageCostTypeVerifier.INSTANCE;
+ }
+
+ private static final class UsageCostTypeVerifier implements
+ com.google.protobuf.Internal.EnumVerifier {
+ static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new UsageCostTypeVerifier();
+ @java.lang.Override
+ public boolean isInRange(int number) {
+ return UsageCostType.forNumber(number) != null;
+ }
+ };
+
+ private final int value;
+
+ private UsageCostType(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:viam.app.v1.UsageCostType)
+ }
+
+ /**
+ * Protobuf enum {@code viam.app.v1.SourceType}
+ */
+ public enum SourceType
+ implements com.google.protobuf.Internal.EnumLite {
+ /**
+ * SOURCE_TYPE_UNSPECIFIED = 0;
+ */
+ SOURCE_TYPE_UNSPECIFIED(0),
+ /**
+ * SOURCE_TYPE_ORG = 1;
+ */
+ SOURCE_TYPE_ORG(1),
+ /**
+ * SOURCE_TYPE_FRAGMENT = 2;
+ */
+ SOURCE_TYPE_FRAGMENT(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * SOURCE_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int SOURCE_TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ * SOURCE_TYPE_ORG = 1;
+ */
+ public static final int SOURCE_TYPE_ORG_VALUE = 1;
+ /**
+ * SOURCE_TYPE_FRAGMENT = 2;
+ */
+ public static final int SOURCE_TYPE_FRAGMENT_VALUE = 2;
+
+
+ @java.lang.Override
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The number of the enum to look for.
+ * @return The enum associated with the given number.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static SourceType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static SourceType forNumber(int value) {
+ switch (value) {
+ case 0: return SOURCE_TYPE_UNSPECIFIED;
+ case 1: return SOURCE_TYPE_ORG;
+ case 2: return SOURCE_TYPE_FRAGMENT;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ SourceType> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ @java.lang.Override
+ public SourceType findValueByNumber(int number) {
+ return SourceType.forNumber(number);
+ }
+ };
+
+ public static com.google.protobuf.Internal.EnumVerifier
+ internalGetVerifier() {
+ return SourceTypeVerifier.INSTANCE;
+ }
+
+ private static final class SourceTypeVerifier implements
+ com.google.protobuf.Internal.EnumVerifier {
+ static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new SourceTypeVerifier();
+ @java.lang.Override
+ public boolean isInRange(int number) {
+ return SourceType.forNumber(number) != null;
+ }
+ };
+
+ private final int value;
+
+ private SourceType(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:viam.app.v1.SourceType)
+ }
+
public interface InvoiceSummaryOrBuilder extends
// @@protoc_insertion_point(interface_extends:viam.app.v1.InvoiceSummary)
com.google.protobuf.MessageLiteOrBuilder {
@@ -882,454 +1132,184 @@ public static com.google.protobuf.Parser parser() {
}
}
- public interface BillableResourceEventOrBuilder extends
- // @@protoc_insertion_point(interface_extends:viam.app.v1.BillableResourceEvent)
+ public interface PaymentMethodCardOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:viam.app.v1.PaymentMethodCard)
com.google.protobuf.MessageLiteOrBuilder {
/**
- * string id = 1 [json_name = "id"];
- * @return The id.
- */
- java.lang.String getId();
- /**
- * string id = 1 [json_name = "id"];
- * @return The bytes for id.
- */
- com.google.protobuf.ByteString
- getIdBytes();
-
- /**
- * string type = 2 [json_name = "type"];
- * @return The type.
- */
- java.lang.String getType();
- /**
- * string type = 2 [json_name = "type"];
- * @return The bytes for type.
- */
- com.google.protobuf.ByteString
- getTypeBytes();
-
- /**
- * double usage_quantity = 3 [json_name = "usageQuantity"];
- * @return The usageQuantity.
- */
- double getUsageQuantity();
-
- /**
- * string usage_quantity_unit = 4 [json_name = "usageQuantityUnit"];
- * @return The usageQuantityUnit.
- */
- java.lang.String getUsageQuantityUnit();
- /**
- * string usage_quantity_unit = 4 [json_name = "usageQuantityUnit"];
- * @return The bytes for usageQuantityUnit.
- */
- com.google.protobuf.ByteString
- getUsageQuantityUnitBytes();
-
- /**
- * string usage_cost = 5 [json_name = "usageCost"];
- * @return The usageCost.
+ * string brand = 1 [json_name = "brand"];
+ * @return The brand.
*/
- java.lang.String getUsageCost();
+ java.lang.String getBrand();
/**
- * string usage_cost = 5 [json_name = "usageCost"];
- * @return The bytes for usageCost.
+ * string brand = 1 [json_name = "brand"];
+ * @return The bytes for brand.
*/
com.google.protobuf.ByteString
- getUsageCostBytes();
-
- /**
- * .google.protobuf.Timestamp occurred_at = 6 [json_name = "occurredAt"];
- * @return Whether the occurredAt field is set.
- */
- boolean hasOccurredAt();
- /**
- * .google.protobuf.Timestamp occurred_at = 6 [json_name = "occurredAt"];
- * @return The occurredAt.
- */
- com.google.protobuf.Timestamp getOccurredAt();
+ getBrandBytes();
/**
- * string user_name = 7 [json_name = "userName"];
- * @return The userName.
+ * string last_four_digits = 2 [json_name = "lastFourDigits"];
+ * @return The lastFourDigits.
*/
- java.lang.String getUserName();
+ java.lang.String getLastFourDigits();
/**
- * string user_name = 7 [json_name = "userName"];
- * @return The bytes for userName.
+ * string last_four_digits = 2 [json_name = "lastFourDigits"];
+ * @return The bytes for lastFourDigits.
*/
com.google.protobuf.ByteString
- getUserNameBytes();
+ getLastFourDigitsBytes();
}
/**
- * Protobuf type {@code viam.app.v1.BillableResourceEvent}
+ * Protobuf type {@code viam.app.v1.PaymentMethodCard}
*/
- public static final class BillableResourceEvent extends
+ public static final class PaymentMethodCard extends
com.google.protobuf.GeneratedMessageLite<
- BillableResourceEvent, BillableResourceEvent.Builder> implements
- // @@protoc_insertion_point(message_implements:viam.app.v1.BillableResourceEvent)
- BillableResourceEventOrBuilder {
- private BillableResourceEvent() {
- id_ = "";
- type_ = "";
- usageQuantityUnit_ = "";
- usageCost_ = "";
- userName_ = "";
+ PaymentMethodCard, PaymentMethodCard.Builder> implements
+ // @@protoc_insertion_point(message_implements:viam.app.v1.PaymentMethodCard)
+ PaymentMethodCardOrBuilder {
+ private PaymentMethodCard() {
+ brand_ = "";
+ lastFourDigits_ = "";
}
- private int bitField0_;
- public static final int ID_FIELD_NUMBER = 1;
- private java.lang.String id_;
+ public static final int BRAND_FIELD_NUMBER = 1;
+ private java.lang.String brand_;
/**
- * string id = 1 [json_name = "id"];
- * @return The id.
+ * string brand = 1 [json_name = "brand"];
+ * @return The brand.
*/
@java.lang.Override
- public java.lang.String getId() {
- return id_;
+ public java.lang.String getBrand() {
+ return brand_;
}
/**
- * string id = 1 [json_name = "id"];
- * @return The bytes for id.
+ * string brand = 1 [json_name = "brand"];
+ * @return The bytes for brand.
*/
@java.lang.Override
public com.google.protobuf.ByteString
- getIdBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(id_);
+ getBrandBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(brand_);
}
/**
- * string id = 1 [json_name = "id"];
- * @param value The id to set.
+ * string brand = 1 [json_name = "brand"];
+ * @param value The brand to set.
*/
- private void setId(
+ private void setBrand(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
- id_ = value;
+ brand_ = value;
}
/**
- * string id = 1 [json_name = "id"];
+ * string brand = 1 [json_name = "brand"];
*/
- private void clearId() {
+ private void clearBrand() {
- id_ = getDefaultInstance().getId();
+ brand_ = getDefaultInstance().getBrand();
}
/**
- * string id = 1 [json_name = "id"];
- * @param value The bytes for id to set.
+ * string brand = 1 [json_name = "brand"];
+ * @param value The bytes for brand to set.
*/
- private void setIdBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- id_ = value.toStringUtf8();
-
- }
-
- public static final int TYPE_FIELD_NUMBER = 2;
- private java.lang.String type_;
- /**
- * string type = 2 [json_name = "type"];
- * @return The type.
- */
- @java.lang.Override
- public java.lang.String getType() {
- return type_;
- }
- /**
- * string type = 2 [json_name = "type"];
- * @return The bytes for type.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getTypeBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(type_);
- }
- /**
- * string type = 2 [json_name = "type"];
- * @param value The type to set.
- */
- private void setType(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
-
- type_ = value;
- }
- /**
- * string type = 2 [json_name = "type"];
- */
- private void clearType() {
-
- type_ = getDefaultInstance().getType();
- }
- /**
- * string type = 2 [json_name = "type"];
- * @param value The bytes for type to set.
- */
- private void setTypeBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- type_ = value.toStringUtf8();
-
- }
-
- public static final int USAGE_QUANTITY_FIELD_NUMBER = 3;
- private double usageQuantity_;
- /**
- * double usage_quantity = 3 [json_name = "usageQuantity"];
- * @return The usageQuantity.
- */
- @java.lang.Override
- public double getUsageQuantity() {
- return usageQuantity_;
- }
- /**
- * double usage_quantity = 3 [json_name = "usageQuantity"];
- * @param value The usageQuantity to set.
- */
- private void setUsageQuantity(double value) {
-
- usageQuantity_ = value;
- }
- /**
- * double usage_quantity = 3 [json_name = "usageQuantity"];
- */
- private void clearUsageQuantity() {
-
- usageQuantity_ = 0D;
- }
-
- public static final int USAGE_QUANTITY_UNIT_FIELD_NUMBER = 4;
- private java.lang.String usageQuantityUnit_;
- /**
- * string usage_quantity_unit = 4 [json_name = "usageQuantityUnit"];
- * @return The usageQuantityUnit.
- */
- @java.lang.Override
- public java.lang.String getUsageQuantityUnit() {
- return usageQuantityUnit_;
- }
- /**
- * string usage_quantity_unit = 4 [json_name = "usageQuantityUnit"];
- * @return The bytes for usageQuantityUnit.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getUsageQuantityUnitBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(usageQuantityUnit_);
- }
- /**
- * string usage_quantity_unit = 4 [json_name = "usageQuantityUnit"];
- * @param value The usageQuantityUnit to set.
- */
- private void setUsageQuantityUnit(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
-
- usageQuantityUnit_ = value;
- }
- /**
- * string usage_quantity_unit = 4 [json_name = "usageQuantityUnit"];
- */
- private void clearUsageQuantityUnit() {
-
- usageQuantityUnit_ = getDefaultInstance().getUsageQuantityUnit();
- }
- /**
- * string usage_quantity_unit = 4 [json_name = "usageQuantityUnit"];
- * @param value The bytes for usageQuantityUnit to set.
- */
- private void setUsageQuantityUnitBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- usageQuantityUnit_ = value.toStringUtf8();
-
- }
-
- public static final int USAGE_COST_FIELD_NUMBER = 5;
- private java.lang.String usageCost_;
- /**
- * string usage_cost = 5 [json_name = "usageCost"];
- * @return The usageCost.
- */
- @java.lang.Override
- public java.lang.String getUsageCost() {
- return usageCost_;
- }
- /**
- * string usage_cost = 5 [json_name = "usageCost"];
- * @return The bytes for usageCost.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getUsageCostBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(usageCost_);
- }
- /**
- * string usage_cost = 5 [json_name = "usageCost"];
- * @param value The usageCost to set.
- */
- private void setUsageCost(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
-
- usageCost_ = value;
- }
- /**
- * string usage_cost = 5 [json_name = "usageCost"];
- */
- private void clearUsageCost() {
-
- usageCost_ = getDefaultInstance().getUsageCost();
- }
- /**
- * string usage_cost = 5 [json_name = "usageCost"];
- * @param value The bytes for usageCost to set.
- */
- private void setUsageCostBytes(
+ private void setBrandBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
- usageCost_ = value.toStringUtf8();
-
- }
+ brand_ = value.toStringUtf8();
- public static final int OCCURRED_AT_FIELD_NUMBER = 6;
- private com.google.protobuf.Timestamp occurredAt_;
- /**
- * .google.protobuf.Timestamp occurred_at = 6 [json_name = "occurredAt"];
- */
- @java.lang.Override
- public boolean hasOccurredAt() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * .google.protobuf.Timestamp occurred_at = 6 [json_name = "occurredAt"];
- */
- @java.lang.Override
- public com.google.protobuf.Timestamp getOccurredAt() {
- return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_;
- }
- /**
- * .google.protobuf.Timestamp occurred_at = 6 [json_name = "occurredAt"];
- */
- private void setOccurredAt(com.google.protobuf.Timestamp value) {
- value.getClass();
- occurredAt_ = value;
- bitField0_ |= 0x00000001;
- }
- /**
- * .google.protobuf.Timestamp occurred_at = 6 [json_name = "occurredAt"];
- */
- @java.lang.SuppressWarnings({"ReferenceEquality"})
- private void mergeOccurredAt(com.google.protobuf.Timestamp value) {
- value.getClass();
- if (occurredAt_ != null &&
- occurredAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
- occurredAt_ =
- com.google.protobuf.Timestamp.newBuilder(occurredAt_).mergeFrom(value).buildPartial();
- } else {
- occurredAt_ = value;
- }
- bitField0_ |= 0x00000001;
- }
- /**
- * .google.protobuf.Timestamp occurred_at = 6 [json_name = "occurredAt"];
- */
- private void clearOccurredAt() { occurredAt_ = null;
- bitField0_ = (bitField0_ & ~0x00000001);
}
- public static final int USER_NAME_FIELD_NUMBER = 7;
- private java.lang.String userName_;
+ public static final int LAST_FOUR_DIGITS_FIELD_NUMBER = 2;
+ private java.lang.String lastFourDigits_;
/**
- * string user_name = 7 [json_name = "userName"];
- * @return The userName.
+ * string last_four_digits = 2 [json_name = "lastFourDigits"];
+ * @return The lastFourDigits.
*/
@java.lang.Override
- public java.lang.String getUserName() {
- return userName_;
+ public java.lang.String getLastFourDigits() {
+ return lastFourDigits_;
}
/**
- * string user_name = 7 [json_name = "userName"];
- * @return The bytes for userName.
+ * string last_four_digits = 2 [json_name = "lastFourDigits"];
+ * @return The bytes for lastFourDigits.
*/
@java.lang.Override
public com.google.protobuf.ByteString
- getUserNameBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(userName_);
+ getLastFourDigitsBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(lastFourDigits_);
}
/**
- * string user_name = 7 [json_name = "userName"];
- * @param value The userName to set.
+ * string last_four_digits = 2 [json_name = "lastFourDigits"];
+ * @param value The lastFourDigits to set.
*/
- private void setUserName(
+ private void setLastFourDigits(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
- userName_ = value;
+ lastFourDigits_ = value;
}
/**
- * string user_name = 7 [json_name = "userName"];
+ * string last_four_digits = 2 [json_name = "lastFourDigits"];
*/
- private void clearUserName() {
+ private void clearLastFourDigits() {
- userName_ = getDefaultInstance().getUserName();
+ lastFourDigits_ = getDefaultInstance().getLastFourDigits();
}
/**
- * string user_name = 7 [json_name = "userName"];
- * @param value The bytes for userName to set.
+ * string last_four_digits = 2 [json_name = "lastFourDigits"];
+ * @param value The bytes for lastFourDigits to set.
*/
- private void setUserNameBytes(
+ private void setLastFourDigitsBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
- userName_ = value.toStringUtf8();
+ lastFourDigits_ = value.toStringUtf8();
}
- public static viam.app.v1.Billing.BillableResourceEvent parseFrom(
+ public static viam.app.v1.Billing.PaymentMethodCard parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
- public static viam.app.v1.Billing.BillableResourceEvent parseFrom(
+ public static viam.app.v1.Billing.PaymentMethodCard parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
- public static viam.app.v1.Billing.BillableResourceEvent parseFrom(
+ public static viam.app.v1.Billing.PaymentMethodCard parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
- public static viam.app.v1.Billing.BillableResourceEvent parseFrom(
+ public static viam.app.v1.Billing.PaymentMethodCard parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
- public static viam.app.v1.Billing.BillableResourceEvent parseFrom(byte[] data)
+ public static viam.app.v1.Billing.PaymentMethodCard parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
- public static viam.app.v1.Billing.BillableResourceEvent parseFrom(
+ public static viam.app.v1.Billing.PaymentMethodCard parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
- public static viam.app.v1.Billing.BillableResourceEvent parseFrom(java.io.InputStream input)
+ public static viam.app.v1.Billing.PaymentMethodCard parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
- public static viam.app.v1.Billing.BillableResourceEvent parseFrom(
+ public static viam.app.v1.Billing.PaymentMethodCard parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -1337,24 +1317,24 @@ public static viam.app.v1.Billing.BillableResourceEvent parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
- public static viam.app.v1.Billing.BillableResourceEvent parseDelimitedFrom(java.io.InputStream input)
+ public static viam.app.v1.Billing.PaymentMethodCard parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
- public static viam.app.v1.Billing.BillableResourceEvent parseDelimitedFrom(
+ public static viam.app.v1.Billing.PaymentMethodCard parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
- public static viam.app.v1.Billing.BillableResourceEvent parseFrom(
+ public static viam.app.v1.Billing.PaymentMethodCard parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
- public static viam.app.v1.Billing.BillableResourceEvent parseFrom(
+ public static viam.app.v1.Billing.PaymentMethodCard parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -1365,345 +1345,123 @@ public static viam.app.v1.Billing.BillableResourceEvent parseFrom(
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
- public static Builder newBuilder(viam.app.v1.Billing.BillableResourceEvent prototype) {
+ public static Builder newBuilder(viam.app.v1.Billing.PaymentMethodCard prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
- * Protobuf type {@code viam.app.v1.BillableResourceEvent}
+ * Protobuf type {@code viam.app.v1.PaymentMethodCard}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
- viam.app.v1.Billing.BillableResourceEvent, Builder> implements
- // @@protoc_insertion_point(builder_implements:viam.app.v1.BillableResourceEvent)
- viam.app.v1.Billing.BillableResourceEventOrBuilder {
- // Construct using viam.app.v1.Billing.BillableResourceEvent.newBuilder()
+ viam.app.v1.Billing.PaymentMethodCard, Builder> implements
+ // @@protoc_insertion_point(builder_implements:viam.app.v1.PaymentMethodCard)
+ viam.app.v1.Billing.PaymentMethodCardOrBuilder {
+ // Construct using viam.app.v1.Billing.PaymentMethodCard.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
- * string id = 1 [json_name = "id"];
- * @return The id.
+ * string brand = 1 [json_name = "brand"];
+ * @return The brand.
*/
@java.lang.Override
- public java.lang.String getId() {
- return instance.getId();
+ public java.lang.String getBrand() {
+ return instance.getBrand();
}
/**
- * string id = 1 [json_name = "id"];
- * @return The bytes for id.
+ * string brand = 1 [json_name = "brand"];
+ * @return The bytes for brand.
*/
@java.lang.Override
public com.google.protobuf.ByteString
- getIdBytes() {
- return instance.getIdBytes();
+ getBrandBytes() {
+ return instance.getBrandBytes();
}
/**
- * string id = 1 [json_name = "id"];
- * @param value The id to set.
+ * string brand = 1 [json_name = "brand"];
+ * @param value The brand to set.
* @return This builder for chaining.
*/
- public Builder setId(
+ public Builder setBrand(
java.lang.String value) {
copyOnWrite();
- instance.setId(value);
+ instance.setBrand(value);
return this;
}
/**
- * string id = 1 [json_name = "id"];
+ * string brand = 1 [json_name = "brand"];
* @return This builder for chaining.
*/
- public Builder clearId() {
+ public Builder clearBrand() {
copyOnWrite();
- instance.clearId();
+ instance.clearBrand();
return this;
}
/**
- * string id = 1 [json_name = "id"];
- * @param value The bytes for id to set.
+ * string brand = 1 [json_name = "brand"];
+ * @param value The bytes for brand to set.
* @return This builder for chaining.
*/
- public Builder setIdBytes(
+ public Builder setBrandBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
- instance.setIdBytes(value);
+ instance.setBrandBytes(value);
return this;
}
/**
- * string type = 2 [json_name = "type"];
- * @return The type.
+ * string last_four_digits = 2 [json_name = "lastFourDigits"];
+ * @return The lastFourDigits.
*/
@java.lang.Override
- public java.lang.String getType() {
- return instance.getType();
+ public java.lang.String getLastFourDigits() {
+ return instance.getLastFourDigits();
}
/**
- * string type = 2 [json_name = "type"];
- * @return The bytes for type.
+ * string last_four_digits = 2 [json_name = "lastFourDigits"];
+ * @return The bytes for lastFourDigits.
*/
@java.lang.Override
public com.google.protobuf.ByteString
- getTypeBytes() {
- return instance.getTypeBytes();
+ getLastFourDigitsBytes() {
+ return instance.getLastFourDigitsBytes();
}
/**
- * string type = 2 [json_name = "type"];
- * @param value The type to set.
+ * string last_four_digits = 2 [json_name = "lastFourDigits"];
+ * @param value The lastFourDigits to set.
* @return This builder for chaining.
*/
- public Builder setType(
+ public Builder setLastFourDigits(
java.lang.String value) {
copyOnWrite();
- instance.setType(value);
+ instance.setLastFourDigits(value);
return this;
}
/**
- * string type = 2 [json_name = "type"];
+ * string last_four_digits = 2 [json_name = "lastFourDigits"];
* @return This builder for chaining.
*/
- public Builder clearType() {
+ public Builder clearLastFourDigits() {
copyOnWrite();
- instance.clearType();
+ instance.clearLastFourDigits();
return this;
}
/**
- * string type = 2 [json_name = "type"];
- * @param value The bytes for type to set.
+ * string last_four_digits = 2 [json_name = "lastFourDigits"];
+ * @param value The bytes for lastFourDigits to set.
* @return This builder for chaining.
*/
- public Builder setTypeBytes(
+ public Builder setLastFourDigitsBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
- instance.setTypeBytes(value);
- return this;
- }
-
- /**
- * double usage_quantity = 3 [json_name = "usageQuantity"];
- * @return The usageQuantity.
- */
- @java.lang.Override
- public double getUsageQuantity() {
- return instance.getUsageQuantity();
- }
- /**
- * double usage_quantity = 3 [json_name = "usageQuantity"];
- * @param value The usageQuantity to set.
- * @return This builder for chaining.
- */
- public Builder setUsageQuantity(double value) {
- copyOnWrite();
- instance.setUsageQuantity(value);
- return this;
- }
- /**
- * double usage_quantity = 3 [json_name = "usageQuantity"];
- * @return This builder for chaining.
- */
- public Builder clearUsageQuantity() {
- copyOnWrite();
- instance.clearUsageQuantity();
+ instance.setLastFourDigitsBytes(value);
return this;
}
- /**
- * string usage_quantity_unit = 4 [json_name = "usageQuantityUnit"];
- * @return The usageQuantityUnit.
- */
- @java.lang.Override
- public java.lang.String getUsageQuantityUnit() {
- return instance.getUsageQuantityUnit();
- }
- /**
- * string usage_quantity_unit = 4 [json_name = "usageQuantityUnit"];
- * @return The bytes for usageQuantityUnit.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getUsageQuantityUnitBytes() {
- return instance.getUsageQuantityUnitBytes();
- }
- /**
- * string usage_quantity_unit = 4 [json_name = "usageQuantityUnit"];
- * @param value The usageQuantityUnit to set.
- * @return This builder for chaining.
- */
- public Builder setUsageQuantityUnit(
- java.lang.String value) {
- copyOnWrite();
- instance.setUsageQuantityUnit(value);
- return this;
- }
- /**
- * string usage_quantity_unit = 4 [json_name = "usageQuantityUnit"];
- * @return This builder for chaining.
- */
- public Builder clearUsageQuantityUnit() {
- copyOnWrite();
- instance.clearUsageQuantityUnit();
- return this;
- }
- /**
- * string usage_quantity_unit = 4 [json_name = "usageQuantityUnit"];
- * @param value The bytes for usageQuantityUnit to set.
- * @return This builder for chaining.
- */
- public Builder setUsageQuantityUnitBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setUsageQuantityUnitBytes(value);
- return this;
- }
-
- /**
- * string usage_cost = 5 [json_name = "usageCost"];
- * @return The usageCost.
- */
- @java.lang.Override
- public java.lang.String getUsageCost() {
- return instance.getUsageCost();
- }
- /**
- * string usage_cost = 5 [json_name = "usageCost"];
- * @return The bytes for usageCost.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getUsageCostBytes() {
- return instance.getUsageCostBytes();
- }
- /**
- * string usage_cost = 5 [json_name = "usageCost"];
- * @param value The usageCost to set.
- * @return This builder for chaining.
- */
- public Builder setUsageCost(
- java.lang.String value) {
- copyOnWrite();
- instance.setUsageCost(value);
- return this;
- }
- /**
- * string usage_cost = 5 [json_name = "usageCost"];
- * @return This builder for chaining.
- */
- public Builder clearUsageCost() {
- copyOnWrite();
- instance.clearUsageCost();
- return this;
- }
- /**
- * string usage_cost = 5 [json_name = "usageCost"];
- * @param value The bytes for usageCost to set.
- * @return This builder for chaining.
- */
- public Builder setUsageCostBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setUsageCostBytes(value);
- return this;
- }
-
- /**
- * .google.protobuf.Timestamp occurred_at = 6 [json_name = "occurredAt"];
- */
- @java.lang.Override
- public boolean hasOccurredAt() {
- return instance.hasOccurredAt();
- }
- /**
- * .google.protobuf.Timestamp occurred_at = 6 [json_name = "occurredAt"];
- */
- @java.lang.Override
- public com.google.protobuf.Timestamp getOccurredAt() {
- return instance.getOccurredAt();
- }
- /**
- * .google.protobuf.Timestamp occurred_at = 6 [json_name = "occurredAt"];
- */
- public Builder setOccurredAt(com.google.protobuf.Timestamp value) {
- copyOnWrite();
- instance.setOccurredAt(value);
- return this;
- }
- /**
- * .google.protobuf.Timestamp occurred_at = 6 [json_name = "occurredAt"];
- */
- public Builder setOccurredAt(
- com.google.protobuf.Timestamp.Builder builderForValue) {
- copyOnWrite();
- instance.setOccurredAt(builderForValue.build());
- return this;
- }
- /**
- * .google.protobuf.Timestamp occurred_at = 6 [json_name = "occurredAt"];
- */
- public Builder mergeOccurredAt(com.google.protobuf.Timestamp value) {
- copyOnWrite();
- instance.mergeOccurredAt(value);
- return this;
- }
- /**
- * .google.protobuf.Timestamp occurred_at = 6 [json_name = "occurredAt"];
- */
- public Builder clearOccurredAt() { copyOnWrite();
- instance.clearOccurredAt();
- return this;
- }
-
- /**
- * string user_name = 7 [json_name = "userName"];
- * @return The userName.
- */
- @java.lang.Override
- public java.lang.String getUserName() {
- return instance.getUserName();
- }
- /**
- * string user_name = 7 [json_name = "userName"];
- * @return The bytes for userName.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getUserNameBytes() {
- return instance.getUserNameBytes();
- }
- /**
- * string user_name = 7 [json_name = "userName"];
- * @param value The userName to set.
- * @return This builder for chaining.
- */
- public Builder setUserName(
- java.lang.String value) {
- copyOnWrite();
- instance.setUserName(value);
- return this;
- }
- /**
- * string user_name = 7 [json_name = "userName"];
- * @return This builder for chaining.
- */
- public Builder clearUserName() {
- copyOnWrite();
- instance.clearUserName();
- return this;
- }
- /**
- * string user_name = 7 [json_name = "userName"];
- * @param value The bytes for userName to set.
- * @return This builder for chaining.
- */
- public Builder setUserNameBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setUserNameBytes(value);
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:viam.app.v1.BillableResourceEvent)
+ // @@protoc_insertion_point(builder_scope:viam.app.v1.PaymentMethodCard)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
@@ -1712,25 +1470,19 @@ protected final java.lang.Object dynamicMethod(
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
- return new viam.app.v1.Billing.BillableResourceEvent();
+ return new viam.app.v1.Billing.PaymentMethodCard();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
- "bitField0_",
- "id_",
- "type_",
- "usageQuantity_",
- "usageQuantityUnit_",
- "usageCost_",
- "occurredAt_",
- "userName_",
+ "brand_",
+ "lastFourDigits_",
};
java.lang.String info =
- "\u0000\u0007\u0000\u0001\u0001\u0007\u0007\u0000\u0000\u0000\u0001\u0208\u0002\u0208" +
- "\u0003\u0000\u0004\u0208\u0005\u0208\u0006\u1009\u0000\u0007\u0208";
+ "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u0208\u0002\u0208" +
+ "";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
@@ -1738,13 +1490,13 @@ protected final java.lang.Object dynamicMethod(
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
- com.google.protobuf.Parser parser = PARSER;
+ com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
- synchronized (viam.app.v1.Billing.BillableResourceEvent.class) {
+ synchronized (viam.app.v1.Billing.PaymentMethodCard.class) {
parser = PARSER;
if (parser == null) {
parser =
- new DefaultInstanceBasedParser(
+ new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
@@ -1763,522 +1515,465 @@ protected final java.lang.Object dynamicMethod(
}
- // @@protoc_insertion_point(class_scope:viam.app.v1.BillableResourceEvent)
- private static final viam.app.v1.Billing.BillableResourceEvent DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:viam.app.v1.PaymentMethodCard)
+ private static final viam.app.v1.Billing.PaymentMethodCard DEFAULT_INSTANCE;
static {
- BillableResourceEvent defaultInstance = new BillableResourceEvent();
+ PaymentMethodCard defaultInstance = new PaymentMethodCard();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
- BillableResourceEvent.class, defaultInstance);
+ PaymentMethodCard.class, defaultInstance);
}
- public static viam.app.v1.Billing.BillableResourceEvent getDefaultInstance() {
+ public static viam.app.v1.Billing.PaymentMethodCard getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static volatile com.google.protobuf.Parser PARSER;
+ private static volatile com.google.protobuf.Parser PARSER;
- public static com.google.protobuf.Parser parser() {
+ public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
- public interface InvoiceOrBuilder extends
- // @@protoc_insertion_point(interface_extends:viam.app.v1.Invoice)
+ public interface GetCurrentMonthUsageRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:viam.app.v1.GetCurrentMonthUsageRequest)
com.google.protobuf.MessageLiteOrBuilder {
/**
- * string id = 1 [json_name = "id"];
- * @return The id.
- */
- java.lang.String getId();
- /**
- * string id = 1 [json_name = "id"];
- * @return The bytes for id.
- */
- com.google.protobuf.ByteString
- getIdBytes();
-
- /**
- * .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"];
- * @return Whether the invoiceDate field is set.
- */
- boolean hasInvoiceDate();
- /**
- * .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"];
- * @return The invoiceDate.
- */
- com.google.protobuf.Timestamp getInvoiceDate();
-
- /**
- * double invoice_amount = 3 [json_name = "invoiceAmount"];
- * @return The invoiceAmount.
- */
- double getInvoiceAmount();
-
- /**
- * string status = 4 [json_name = "status"];
- * @return The status.
- */
- java.lang.String getStatus();
- /**
- * string status = 4 [json_name = "status"];
- * @return The bytes for status.
- */
- com.google.protobuf.ByteString
- getStatusBytes();
-
- /**
- * .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"];
- * @return Whether the dueDate field is set.
- */
- boolean hasDueDate();
- /**
- * .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"];
- * @return The dueDate.
- */
- com.google.protobuf.Timestamp getDueDate();
-
- /**
- * repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"];
- */
- java.util.List
- getItemsList();
- /**
- * repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"];
- */
- viam.app.v1.Billing.BillableResourceEvent getItems(int index);
- /**
- * repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"];
- */
- int getItemsCount();
-
- /**
- * string emailed_to = 7 [json_name = "emailedTo"];
- * @return The emailedTo.
+ * string org_id = 1 [json_name = "orgId"];
+ * @return The orgId.
*/
- java.lang.String getEmailedTo();
+ java.lang.String getOrgId();
/**
- * string emailed_to = 7 [json_name = "emailedTo"];
- * @return The bytes for emailedTo.
+ * string org_id = 1 [json_name = "orgId"];
+ * @return The bytes for orgId.
*/
com.google.protobuf.ByteString
- getEmailedToBytes();
+ getOrgIdBytes();
}
/**
- * Protobuf type {@code viam.app.v1.Invoice}
+ * Protobuf type {@code viam.app.v1.GetCurrentMonthUsageRequest}
*/
- public static final class Invoice extends
+ public static final class GetCurrentMonthUsageRequest extends
com.google.protobuf.GeneratedMessageLite<
- Invoice, Invoice.Builder> implements
- // @@protoc_insertion_point(message_implements:viam.app.v1.Invoice)
- InvoiceOrBuilder {
- private Invoice() {
- id_ = "";
- status_ = "";
- items_ = emptyProtobufList();
- emailedTo_ = "";
+ GetCurrentMonthUsageRequest, GetCurrentMonthUsageRequest.Builder> implements
+ // @@protoc_insertion_point(message_implements:viam.app.v1.GetCurrentMonthUsageRequest)
+ GetCurrentMonthUsageRequestOrBuilder {
+ private GetCurrentMonthUsageRequest() {
+ orgId_ = "";
}
- private int bitField0_;
- public static final int ID_FIELD_NUMBER = 1;
- private java.lang.String id_;
+ public static final int ORG_ID_FIELD_NUMBER = 1;
+ private java.lang.String orgId_;
/**
- * string id = 1 [json_name = "id"];
- * @return The id.
+ * string org_id = 1 [json_name = "orgId"];
+ * @return The orgId.
*/
@java.lang.Override
- public java.lang.String getId() {
- return id_;
+ public java.lang.String getOrgId() {
+ return orgId_;
}
/**
- * string id = 1 [json_name = "id"];
- * @return The bytes for id.
+ * string org_id = 1 [json_name = "orgId"];
+ * @return The bytes for orgId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
- getIdBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(id_);
+ getOrgIdBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(orgId_);
}
/**
- * string id = 1 [json_name = "id"];
- * @param value The id to set.
+ * string org_id = 1 [json_name = "orgId"];
+ * @param value The orgId to set.
*/
- private void setId(
+ private void setOrgId(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
- id_ = value;
+ orgId_ = value;
}
/**
- * string id = 1 [json_name = "id"];
+ * string org_id = 1 [json_name = "orgId"];
*/
- private void clearId() {
+ private void clearOrgId() {
- id_ = getDefaultInstance().getId();
+ orgId_ = getDefaultInstance().getOrgId();
}
/**
- * string id = 1 [json_name = "id"];
- * @param value The bytes for id to set.
+ * string org_id = 1 [json_name = "orgId"];
+ * @param value The bytes for orgId to set.
*/
- private void setIdBytes(
+ private void setOrgIdBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
- id_ = value.toStringUtf8();
+ orgId_ = value.toStringUtf8();
}
- public static final int INVOICE_DATE_FIELD_NUMBER = 2;
- private com.google.protobuf.Timestamp invoiceDate_;
- /**
- * .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"];
- */
- @java.lang.Override
- public boolean hasInvoiceDate() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"];
- */
- @java.lang.Override
- public com.google.protobuf.Timestamp getInvoiceDate() {
- return invoiceDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : invoiceDate_;
+ public static viam.app.v1.Billing.GetCurrentMonthUsageRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
}
- /**
- * .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"];
- */
- private void setInvoiceDate(com.google.protobuf.Timestamp value) {
- value.getClass();
- invoiceDate_ = value;
- bitField0_ |= 0x00000001;
- }
- /**
- * .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"];
- */
- @java.lang.SuppressWarnings({"ReferenceEquality"})
- private void mergeInvoiceDate(com.google.protobuf.Timestamp value) {
- value.getClass();
- if (invoiceDate_ != null &&
- invoiceDate_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
- invoiceDate_ =
- com.google.protobuf.Timestamp.newBuilder(invoiceDate_).mergeFrom(value).buildPartial();
- } else {
- invoiceDate_ = value;
- }
- bitField0_ |= 0x00000001;
+ public static viam.app.v1.Billing.GetCurrentMonthUsageRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
}
- /**
- * .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"];
- */
- private void clearInvoiceDate() { invoiceDate_ = null;
- bitField0_ = (bitField0_ & ~0x00000001);
+ public static viam.app.v1.Billing.GetCurrentMonthUsageRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
}
-
- public static final int INVOICE_AMOUNT_FIELD_NUMBER = 3;
- private double invoiceAmount_;
- /**
- * double invoice_amount = 3 [json_name = "invoiceAmount"];
- * @return The invoiceAmount.
- */
- @java.lang.Override
- public double getInvoiceAmount() {
- return invoiceAmount_;
+ public static viam.app.v1.Billing.GetCurrentMonthUsageRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
}
- /**
- * double invoice_amount = 3 [json_name = "invoiceAmount"];
- * @param value The invoiceAmount to set.
- */
- private void setInvoiceAmount(double value) {
-
- invoiceAmount_ = value;
+ public static viam.app.v1.Billing.GetCurrentMonthUsageRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static viam.app.v1.Billing.GetCurrentMonthUsageRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static viam.app.v1.Billing.GetCurrentMonthUsageRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static viam.app.v1.Billing.GetCurrentMonthUsageRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
}
- /**
- * double invoice_amount = 3 [json_name = "invoiceAmount"];
- */
- private void clearInvoiceAmount() {
- invoiceAmount_ = 0D;
+ public static viam.app.v1.Billing.GetCurrentMonthUsageRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
- public static final int STATUS_FIELD_NUMBER = 4;
- private java.lang.String status_;
- /**
- * string status = 4 [json_name = "status"];
- * @return The status.
- */
- @java.lang.Override
- public java.lang.String getStatus() {
- return status_;
+ public static viam.app.v1.Billing.GetCurrentMonthUsageRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
- /**
- * string status = 4 [json_name = "status"];
- * @return The bytes for status.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getStatusBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(status_);
+ public static viam.app.v1.Billing.GetCurrentMonthUsageRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
}
- /**
- * string status = 4 [json_name = "status"];
- * @param value The status to set.
- */
- private void setStatus(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
-
- status_ = value;
+ public static viam.app.v1.Billing.GetCurrentMonthUsageRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
}
- /**
- * string status = 4 [json_name = "status"];
- */
- private void clearStatus() {
- status_ = getDefaultInstance().getStatus();
+ public static Builder newBuilder() {
+ return (Builder) DEFAULT_INSTANCE.createBuilder();
}
- /**
- * string status = 4 [json_name = "status"];
- * @param value The bytes for status to set.
- */
- private void setStatusBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- status_ = value.toStringUtf8();
-
+ public static Builder newBuilder(viam.app.v1.Billing.GetCurrentMonthUsageRequest prototype) {
+ return DEFAULT_INSTANCE.createBuilder(prototype);
}
- public static final int DUE_DATE_FIELD_NUMBER = 5;
- private com.google.protobuf.Timestamp dueDate_;
/**
- * .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"];
+ * Protobuf type {@code viam.app.v1.GetCurrentMonthUsageRequest}
*/
- @java.lang.Override
- public boolean hasDueDate() {
- return ((bitField0_ & 0x00000002) != 0);
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageLite.Builder<
+ viam.app.v1.Billing.GetCurrentMonthUsageRequest, Builder> implements
+ // @@protoc_insertion_point(builder_implements:viam.app.v1.GetCurrentMonthUsageRequest)
+ viam.app.v1.Billing.GetCurrentMonthUsageRequestOrBuilder {
+ // Construct using viam.app.v1.Billing.GetCurrentMonthUsageRequest.newBuilder()
+ private Builder() {
+ super(DEFAULT_INSTANCE);
+ }
+
+
+ /**
+ * string org_id = 1 [json_name = "orgId"];
+ * @return The orgId.
+ */
+ @java.lang.Override
+ public java.lang.String getOrgId() {
+ return instance.getOrgId();
+ }
+ /**
+ * string org_id = 1 [json_name = "orgId"];
+ * @return The bytes for orgId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getOrgIdBytes() {
+ return instance.getOrgIdBytes();
+ }
+ /**
+ * string org_id = 1 [json_name = "orgId"];
+ * @param value The orgId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOrgId(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setOrgId(value);
+ return this;
+ }
+ /**
+ * string org_id = 1 [json_name = "orgId"];
+ * @return This builder for chaining.
+ */
+ public Builder clearOrgId() {
+ copyOnWrite();
+ instance.clearOrgId();
+ return this;
+ }
+ /**
+ * string org_id = 1 [json_name = "orgId"];
+ * @param value The bytes for orgId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOrgIdBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setOrgIdBytes(value);
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:viam.app.v1.GetCurrentMonthUsageRequest)
}
- /**
- * .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"];
- */
@java.lang.Override
- public com.google.protobuf.Timestamp getDueDate() {
- return dueDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dueDate_;
- }
- /**
- * .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"];
- */
- private void setDueDate(com.google.protobuf.Timestamp value) {
- value.getClass();
- dueDate_ = value;
- bitField0_ |= 0x00000002;
+ @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
+ protected final java.lang.Object dynamicMethod(
+ com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
+ java.lang.Object arg0, java.lang.Object arg1) {
+ switch (method) {
+ case NEW_MUTABLE_INSTANCE: {
+ return new viam.app.v1.Billing.GetCurrentMonthUsageRequest();
+ }
+ case NEW_BUILDER: {
+ return new Builder();
+ }
+ case BUILD_MESSAGE_INFO: {
+ java.lang.Object[] objects = new java.lang.Object[] {
+ "orgId_",
+ };
+ java.lang.String info =
+ "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\u0208";
+ return newMessageInfo(DEFAULT_INSTANCE, info, objects);
+ }
+ // fall through
+ case GET_DEFAULT_INSTANCE: {
+ return DEFAULT_INSTANCE;
+ }
+ case GET_PARSER: {
+ com.google.protobuf.Parser parser = PARSER;
+ if (parser == null) {
+ synchronized (viam.app.v1.Billing.GetCurrentMonthUsageRequest.class) {
+ parser = PARSER;
+ if (parser == null) {
+ parser =
+ new DefaultInstanceBasedParser(
+ DEFAULT_INSTANCE);
+ PARSER = parser;
+ }
+ }
+ }
+ return parser;
}
- /**
- * .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"];
- */
- @java.lang.SuppressWarnings({"ReferenceEquality"})
- private void mergeDueDate(com.google.protobuf.Timestamp value) {
- value.getClass();
- if (dueDate_ != null &&
- dueDate_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
- dueDate_ =
- com.google.protobuf.Timestamp.newBuilder(dueDate_).mergeFrom(value).buildPartial();
- } else {
- dueDate_ = value;
+ case GET_MEMOIZED_IS_INITIALIZED: {
+ return (byte) 1;
}
- bitField0_ |= 0x00000002;
- }
- /**
- * .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"];
- */
- private void clearDueDate() { dueDate_ = null;
- bitField0_ = (bitField0_ & ~0x00000002);
+ case SET_MEMOIZED_IS_INITIALIZED: {
+ return null;
+ }
+ }
+ throw new UnsupportedOperationException();
}
- public static final int ITEMS_FIELD_NUMBER = 6;
- private com.google.protobuf.Internal.ProtobufList items_;
- /**
- * repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"];
- */
- @java.lang.Override
- public java.util.List getItemsList() {
- return items_;
+
+ // @@protoc_insertion_point(class_scope:viam.app.v1.GetCurrentMonthUsageRequest)
+ private static final viam.app.v1.Billing.GetCurrentMonthUsageRequest DEFAULT_INSTANCE;
+ static {
+ GetCurrentMonthUsageRequest defaultInstance = new GetCurrentMonthUsageRequest();
+ // New instances are implicitly immutable so no need to make
+ // immutable.
+ DEFAULT_INSTANCE = defaultInstance;
+ com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
+ GetCurrentMonthUsageRequest.class, defaultInstance);
}
- /**
- * repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"];
- */
- public java.util.List extends viam.app.v1.Billing.BillableResourceEventOrBuilder>
- getItemsOrBuilderList() {
- return items_;
+
+ public static viam.app.v1.Billing.GetCurrentMonthUsageRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
}
- /**
- * repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"];
- */
- @java.lang.Override
- public int getItemsCount() {
- return items_.size();
+
+ private static volatile com.google.protobuf.Parser PARSER;
+
+ public static com.google.protobuf.Parser parser() {
+ return DEFAULT_INSTANCE.getParserForType();
}
+ }
+
+ public interface UsageCostOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:viam.app.v1.UsageCost)
+ com.google.protobuf.MessageLiteOrBuilder {
+
/**
- * repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"];
+ * .viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"];
+ * @return The enum numeric value on the wire for resourceType.
*/
- @java.lang.Override
- public viam.app.v1.Billing.BillableResourceEvent getItems(int index) {
- return items_.get(index);
- }
+ int getResourceTypeValue();
/**
- * repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"];
+ * .viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"];
+ * @return The resourceType.
*/
- public viam.app.v1.Billing.BillableResourceEventOrBuilder getItemsOrBuilder(
- int index) {
- return items_.get(index);
- }
- private void ensureItemsIsMutable() {
- com.google.protobuf.Internal.ProtobufList tmp = items_;
- if (!tmp.isModifiable()) {
- items_ =
- com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
- }
- }
+ viam.app.v1.Billing.UsageCostType getResourceType();
/**
- * repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"];
+ * double cost = 2 [json_name = "cost"];
+ * @return The cost.
*/
- private void setItems(
- int index, viam.app.v1.Billing.BillableResourceEvent value) {
- value.getClass();
- ensureItemsIsMutable();
- items_.set(index, value);
+ double getCost();
+ }
+ /**
+ * Protobuf type {@code viam.app.v1.UsageCost}
+ */
+ public static final class UsageCost extends
+ com.google.protobuf.GeneratedMessageLite<
+ UsageCost, UsageCost.Builder> implements
+ // @@protoc_insertion_point(message_implements:viam.app.v1.UsageCost)
+ UsageCostOrBuilder {
+ private UsageCost() {
}
+ public static final int RESOURCE_TYPE_FIELD_NUMBER = 1;
+ private int resourceType_;
/**
- * repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"];
+ * .viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"];
+ * @return The enum numeric value on the wire for resourceType.
*/
- private void addItems(viam.app.v1.Billing.BillableResourceEvent value) {
- value.getClass();
- ensureItemsIsMutable();
- items_.add(value);
+ @java.lang.Override
+ public int getResourceTypeValue() {
+ return resourceType_;
}
/**
- * repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"];
+ * .viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"];
+ * @return The resourceType.
*/
- private void addItems(
- int index, viam.app.v1.Billing.BillableResourceEvent value) {
- value.getClass();
- ensureItemsIsMutable();
- items_.add(index, value);
+ @java.lang.Override
+ public viam.app.v1.Billing.UsageCostType getResourceType() {
+ viam.app.v1.Billing.UsageCostType result = viam.app.v1.Billing.UsageCostType.forNumber(resourceType_);
+ return result == null ? viam.app.v1.Billing.UsageCostType.UNRECOGNIZED : result;
}
/**
- * repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"];
+ * .viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"];
+ * @param value The enum numeric value on the wire for resourceType to set.
*/
- private void addAllItems(
- java.lang.Iterable extends viam.app.v1.Billing.BillableResourceEvent> values) {
- ensureItemsIsMutable();
- com.google.protobuf.AbstractMessageLite.addAll(
- values, items_);
+ private void setResourceTypeValue(int value) {
+ resourceType_ = value;
}
/**
- * repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"];
+ * .viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"];
+ * @param value The resourceType to set.
*/
- private void clearItems() {
- items_ = emptyProtobufList();
+ private void setResourceType(viam.app.v1.Billing.UsageCostType value) {
+ resourceType_ = value.getNumber();
+
}
/**
- * repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"];
+ * .viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"];
*/
- private void removeItems(int index) {
- ensureItemsIsMutable();
- items_.remove(index);
- }
+ private void clearResourceType() {
- public static final int EMAILED_TO_FIELD_NUMBER = 7;
- private java.lang.String emailedTo_;
- /**
- * string emailed_to = 7 [json_name = "emailedTo"];
- * @return The emailedTo.
- */
- @java.lang.Override
- public java.lang.String getEmailedTo() {
- return emailedTo_;
+ resourceType_ = 0;
}
+
+ public static final int COST_FIELD_NUMBER = 2;
+ private double cost_;
/**
- * string emailed_to = 7 [json_name = "emailedTo"];
- * @return The bytes for emailedTo.
+ * double cost = 2 [json_name = "cost"];
+ * @return The cost.
*/
@java.lang.Override
- public com.google.protobuf.ByteString
- getEmailedToBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(emailedTo_);
- }
- /**
- * string emailed_to = 7 [json_name = "emailedTo"];
- * @param value The emailedTo to set.
- */
- private void setEmailedTo(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
-
- emailedTo_ = value;
+ public double getCost() {
+ return cost_;
}
/**
- * string emailed_to = 7 [json_name = "emailedTo"];
+ * double cost = 2 [json_name = "cost"];
+ * @param value The cost to set.
*/
- private void clearEmailedTo() {
-
- emailedTo_ = getDefaultInstance().getEmailedTo();
+ private void setCost(double value) {
+
+ cost_ = value;
}
/**
- * string emailed_to = 7 [json_name = "emailedTo"];
- * @param value The bytes for emailedTo to set.
+ * double cost = 2 [json_name = "cost"];
*/
- private void setEmailedToBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- emailedTo_ = value.toStringUtf8();
+ private void clearCost() {
+ cost_ = 0D;
}
- public static viam.app.v1.Billing.Invoice parseFrom(
+ public static viam.app.v1.Billing.UsageCost parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
- public static viam.app.v1.Billing.Invoice parseFrom(
+ public static viam.app.v1.Billing.UsageCost parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
- public static viam.app.v1.Billing.Invoice parseFrom(
+ public static viam.app.v1.Billing.UsageCost parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
- public static viam.app.v1.Billing.Invoice parseFrom(
+ public static viam.app.v1.Billing.UsageCost parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
- public static viam.app.v1.Billing.Invoice parseFrom(byte[] data)
+ public static viam.app.v1.Billing.UsageCost parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
- public static viam.app.v1.Billing.Invoice parseFrom(
+ public static viam.app.v1.Billing.UsageCost parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
- public static viam.app.v1.Billing.Invoice parseFrom(java.io.InputStream input)
+ public static viam.app.v1.Billing.UsageCost parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
- public static viam.app.v1.Billing.Invoice parseFrom(
+ public static viam.app.v1.Billing.UsageCost parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -2286,424 +1981,127 @@ public static viam.app.v1.Billing.Invoice parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
- public static viam.app.v1.Billing.Invoice parseDelimitedFrom(java.io.InputStream input)
+ public static viam.app.v1.Billing.UsageCost parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
- public static viam.app.v1.Billing.Invoice parseDelimitedFrom(
+ public static viam.app.v1.Billing.UsageCost parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
- public static viam.app.v1.Billing.Invoice parseFrom(
+ public static viam.app.v1.Billing.UsageCost parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
- public static viam.app.v1.Billing.Invoice parseFrom(
+ public static viam.app.v1.Billing.UsageCost parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(viam.app.v1.Billing.Invoice prototype) {
- return DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code viam.app.v1.Invoice}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- viam.app.v1.Billing.Invoice, Builder> implements
- // @@protoc_insertion_point(builder_implements:viam.app.v1.Invoice)
- viam.app.v1.Billing.InvoiceOrBuilder {
- // Construct using viam.app.v1.Billing.Invoice.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * string id = 1 [json_name = "id"];
- * @return The id.
- */
- @java.lang.Override
- public java.lang.String getId() {
- return instance.getId();
- }
- /**
- * string id = 1 [json_name = "id"];
- * @return The bytes for id.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getIdBytes() {
- return instance.getIdBytes();
- }
- /**
- * string id = 1 [json_name = "id"];
- * @param value The id to set.
- * @return This builder for chaining.
- */
- public Builder setId(
- java.lang.String value) {
- copyOnWrite();
- instance.setId(value);
- return this;
- }
- /**
- * string id = 1 [json_name = "id"];
- * @return This builder for chaining.
- */
- public Builder clearId() {
- copyOnWrite();
- instance.clearId();
- return this;
- }
- /**
- * string id = 1 [json_name = "id"];
- * @param value The bytes for id to set.
- * @return This builder for chaining.
- */
- public Builder setIdBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setIdBytes(value);
- return this;
- }
-
- /**
- * .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"];
- */
- @java.lang.Override
- public boolean hasInvoiceDate() {
- return instance.hasInvoiceDate();
- }
- /**
- * .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"];
- */
- @java.lang.Override
- public com.google.protobuf.Timestamp getInvoiceDate() {
- return instance.getInvoiceDate();
- }
- /**
- * .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"];
- */
- public Builder setInvoiceDate(com.google.protobuf.Timestamp value) {
- copyOnWrite();
- instance.setInvoiceDate(value);
- return this;
- }
- /**
- * .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"];
- */
- public Builder setInvoiceDate(
- com.google.protobuf.Timestamp.Builder builderForValue) {
- copyOnWrite();
- instance.setInvoiceDate(builderForValue.build());
- return this;
- }
- /**
- * .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"];
- */
- public Builder mergeInvoiceDate(com.google.protobuf.Timestamp value) {
- copyOnWrite();
- instance.mergeInvoiceDate(value);
- return this;
- }
- /**
- * .google.protobuf.Timestamp invoice_date = 2 [json_name = "invoiceDate"];
- */
- public Builder clearInvoiceDate() { copyOnWrite();
- instance.clearInvoiceDate();
- return this;
- }
-
- /**
- * double invoice_amount = 3 [json_name = "invoiceAmount"];
- * @return The invoiceAmount.
- */
- @java.lang.Override
- public double getInvoiceAmount() {
- return instance.getInvoiceAmount();
- }
- /**
- * double invoice_amount = 3 [json_name = "invoiceAmount"];
- * @param value The invoiceAmount to set.
- * @return This builder for chaining.
- */
- public Builder setInvoiceAmount(double value) {
- copyOnWrite();
- instance.setInvoiceAmount(value);
- return this;
- }
- /**
- * double invoice_amount = 3 [json_name = "invoiceAmount"];
- * @return This builder for chaining.
- */
- public Builder clearInvoiceAmount() {
- copyOnWrite();
- instance.clearInvoiceAmount();
- return this;
- }
-
- /**
- * string status = 4 [json_name = "status"];
- * @return The status.
- */
- @java.lang.Override
- public java.lang.String getStatus() {
- return instance.getStatus();
- }
- /**
- * string status = 4 [json_name = "status"];
- * @return The bytes for status.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getStatusBytes() {
- return instance.getStatusBytes();
- }
- /**
- * string status = 4 [json_name = "status"];
- * @param value The status to set.
- * @return This builder for chaining.
- */
- public Builder setStatus(
- java.lang.String value) {
- copyOnWrite();
- instance.setStatus(value);
- return this;
- }
- /**
- * string status = 4 [json_name = "status"];
- * @return This builder for chaining.
- */
- public Builder clearStatus() {
- copyOnWrite();
- instance.clearStatus();
- return this;
- }
- /**
- * string status = 4 [json_name = "status"];
- * @param value The bytes for status to set.
- * @return This builder for chaining.
- */
- public Builder setStatusBytes(
- com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setStatusBytes(value);
- return this;
- }
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
- /**
- * .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"];
- */
- @java.lang.Override
- public boolean hasDueDate() {
- return instance.hasDueDate();
- }
- /**
- * .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"];
- */
- @java.lang.Override
- public com.google.protobuf.Timestamp getDueDate() {
- return instance.getDueDate();
- }
- /**
- * .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"];
- */
- public Builder setDueDate(com.google.protobuf.Timestamp value) {
- copyOnWrite();
- instance.setDueDate(value);
- return this;
- }
- /**
- * .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"];
- */
- public Builder setDueDate(
- com.google.protobuf.Timestamp.Builder builderForValue) {
- copyOnWrite();
- instance.setDueDate(builderForValue.build());
- return this;
- }
- /**
- * .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"];
- */
- public Builder mergeDueDate(com.google.protobuf.Timestamp value) {
- copyOnWrite();
- instance.mergeDueDate(value);
- return this;
- }
- /**
- * .google.protobuf.Timestamp due_date = 5 [json_name = "dueDate"];
- */
- public Builder clearDueDate() { copyOnWrite();
- instance.clearDueDate();
- return this;
- }
+ public static Builder newBuilder() {
+ return (Builder) DEFAULT_INSTANCE.createBuilder();
+ }
+ public static Builder newBuilder(viam.app.v1.Billing.UsageCost prototype) {
+ return DEFAULT_INSTANCE.createBuilder(prototype);
+ }
- /**
- * repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"];
- */
- @java.lang.Override
- public java.util.List getItemsList() {
- return java.util.Collections.unmodifiableList(
- instance.getItemsList());
+ /**
+ * Protobuf type {@code viam.app.v1.UsageCost}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageLite.Builder<
+ viam.app.v1.Billing.UsageCost, Builder> implements
+ // @@protoc_insertion_point(builder_implements:viam.app.v1.UsageCost)
+ viam.app.v1.Billing.UsageCostOrBuilder {
+ // Construct using viam.app.v1.Billing.UsageCost.newBuilder()
+ private Builder() {
+ super(DEFAULT_INSTANCE);
}
+
+
/**
- * repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"];
- */
- @java.lang.Override
- public int getItemsCount() {
- return instance.getItemsCount();
- }/**
- * repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"];
+ * .viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"];
+ * @return The enum numeric value on the wire for resourceType.
*/
@java.lang.Override
- public viam.app.v1.Billing.BillableResourceEvent getItems(int index) {
- return instance.getItems(index);
- }
- /**
- * repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"];
- */
- public Builder setItems(
- int index, viam.app.v1.Billing.BillableResourceEvent value) {
- copyOnWrite();
- instance.setItems(index, value);
- return this;
- }
- /**
- * repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"];
- */
- public Builder setItems(
- int index, viam.app.v1.Billing.BillableResourceEvent.Builder builderForValue) {
- copyOnWrite();
- instance.setItems(index,
- builderForValue.build());
- return this;
+ public int getResourceTypeValue() {
+ return instance.getResourceTypeValue();
}
/**
- * repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"];
- */
- public Builder addItems(viam.app.v1.Billing.BillableResourceEvent value) {
- copyOnWrite();
- instance.addItems(value);
- return this;
- }
- /**
- * repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"];
- */
- public Builder addItems(
- int index, viam.app.v1.Billing.BillableResourceEvent value) {
- copyOnWrite();
- instance.addItems(index, value);
- return this;
- }
- /**
- * repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"];
- */
- public Builder addItems(
- viam.app.v1.Billing.BillableResourceEvent.Builder builderForValue) {
- copyOnWrite();
- instance.addItems(builderForValue.build());
- return this;
- }
- /**
- * repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"];
+ * .viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"];
+ * @param value The resourceType to set.
+ * @return This builder for chaining.
*/
- public Builder addItems(
- int index, viam.app.v1.Billing.BillableResourceEvent.Builder builderForValue) {
+ public Builder setResourceTypeValue(int value) {
copyOnWrite();
- instance.addItems(index,
- builderForValue.build());
+ instance.setResourceTypeValue(value);
return this;
}
/**
- * repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"];
+ * .viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"];
+ * @return The resourceType.
*/
- public Builder addAllItems(
- java.lang.Iterable extends viam.app.v1.Billing.BillableResourceEvent> values) {
- copyOnWrite();
- instance.addAllItems(values);
- return this;
+ @java.lang.Override
+ public viam.app.v1.Billing.UsageCostType getResourceType() {
+ return instance.getResourceType();
}
/**
- * repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"];
+ * .viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"];
+ * @param value The enum numeric value on the wire for resourceType to set.
+ * @return This builder for chaining.
*/
- public Builder clearItems() {
+ public Builder setResourceType(viam.app.v1.Billing.UsageCostType value) {
copyOnWrite();
- instance.clearItems();
+ instance.setResourceType(value);
return this;
}
/**
- * repeated .viam.app.v1.BillableResourceEvent items = 6 [json_name = "items"];
+ * .viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"];
+ * @return This builder for chaining.
*/
- public Builder removeItems(int index) {
+ public Builder clearResourceType() {
copyOnWrite();
- instance.removeItems(index);
+ instance.clearResourceType();
return this;
}
/**
- * string emailed_to = 7 [json_name = "emailedTo"];
- * @return The emailedTo.
- */
- @java.lang.Override
- public java.lang.String getEmailedTo() {
- return instance.getEmailedTo();
- }
- /**
- * string emailed_to = 7 [json_name = "emailedTo"];
- * @return The bytes for emailedTo.
+ * double cost = 2 [json_name = "cost"];
+ * @return The cost.
*/
@java.lang.Override
- public com.google.protobuf.ByteString
- getEmailedToBytes() {
- return instance.getEmailedToBytes();
- }
- /**
- * string emailed_to = 7 [json_name = "emailedTo"];
- * @param value The emailedTo to set.
- * @return This builder for chaining.
- */
- public Builder setEmailedTo(
- java.lang.String value) {
- copyOnWrite();
- instance.setEmailedTo(value);
- return this;
+ public double getCost() {
+ return instance.getCost();
}
/**
- * string emailed_to = 7 [json_name = "emailedTo"];
+ * double cost = 2 [json_name = "cost"];
+ * @param value The cost to set.
* @return This builder for chaining.
*/
- public Builder clearEmailedTo() {
+ public Builder setCost(double value) {
copyOnWrite();
- instance.clearEmailedTo();
+ instance.setCost(value);
return this;
}
/**
- * string emailed_to = 7 [json_name = "emailedTo"];
- * @param value The bytes for emailedTo to set.
+ * double cost = 2 [json_name = "cost"];
* @return This builder for chaining.
*/
- public Builder setEmailedToBytes(
- com.google.protobuf.ByteString value) {
+ public Builder clearCost() {
copyOnWrite();
- instance.setEmailedToBytes(value);
+ instance.clearCost();
return this;
}
- // @@protoc_insertion_point(builder_scope:viam.app.v1.Invoice)
+ // @@protoc_insertion_point(builder_scope:viam.app.v1.UsageCost)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
@@ -2712,26 +2110,19 @@ protected final java.lang.Object dynamicMethod(
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
- return new viam.app.v1.Billing.Invoice();
+ return new viam.app.v1.Billing.UsageCost();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
- "bitField0_",
- "id_",
- "invoiceDate_",
- "invoiceAmount_",
- "status_",
- "dueDate_",
- "items_",
- viam.app.v1.Billing.BillableResourceEvent.class,
- "emailedTo_",
+ "resourceType_",
+ "cost_",
};
java.lang.String info =
- "\u0000\u0007\u0000\u0001\u0001\u0007\u0007\u0000\u0001\u0000\u0001\u0208\u0002\u1009" +
- "\u0000\u0003\u0000\u0004\u0208\u0005\u1009\u0001\u0006\u001b\u0007\u0208";
+ "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\f\u0002\u0000" +
+ "";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
@@ -2739,13 +2130,13 @@ protected final java.lang.Object dynamicMethod(
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
- com.google.protobuf.Parser parser = PARSER;
+ com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
- synchronized (viam.app.v1.Billing.Invoice.class) {
+ synchronized (viam.app.v1.Billing.UsageCost.class) {
parser = PARSER;
if (parser == null) {
parser =
- new DefaultInstanceBasedParser(
+ new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
@@ -2764,206 +2155,257 @@ protected final java.lang.Object dynamicMethod(
}
- // @@protoc_insertion_point(class_scope:viam.app.v1.Invoice)
- private static final viam.app.v1.Billing.Invoice DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:viam.app.v1.UsageCost)
+ private static final viam.app.v1.Billing.UsageCost DEFAULT_INSTANCE;
static {
- Invoice defaultInstance = new Invoice();
+ UsageCost defaultInstance = new UsageCost();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
- Invoice.class, defaultInstance);
+ UsageCost.class, defaultInstance);
}
- public static viam.app.v1.Billing.Invoice getDefaultInstance() {
+ public static viam.app.v1.Billing.UsageCost getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static volatile com.google.protobuf.Parser PARSER;
+ private static volatile com.google.protobuf.Parser PARSER;
- public static com.google.protobuf.Parser parser() {
+ public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
- public interface PaymentMethodCardOrBuilder extends
- // @@protoc_insertion_point(interface_extends:viam.app.v1.PaymentMethodCard)
+ public interface ResourceUsageCostsBySourceOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:viam.app.v1.ResourceUsageCostsBySource)
com.google.protobuf.MessageLiteOrBuilder {
/**
- * string brand = 1 [json_name = "brand"];
- * @return The brand.
+ * .viam.app.v1.SourceType source_type = 1 [json_name = "sourceType"];
+ * @return The enum numeric value on the wire for sourceType.
*/
- java.lang.String getBrand();
+ int getSourceTypeValue();
/**
- * string brand = 1 [json_name = "brand"];
- * @return The bytes for brand.
+ * .viam.app.v1.SourceType source_type = 1 [json_name = "sourceType"];
+ * @return The sourceType.
*/
- com.google.protobuf.ByteString
- getBrandBytes();
+ viam.app.v1.Billing.SourceType getSourceType();
/**
- * string last_four_digits = 2 [json_name = "lastFourDigits"];
- * @return The lastFourDigits.
+ * .viam.app.v1.ResourceUsageCosts resource_usage_costs = 2 [json_name = "resourceUsageCosts"];
+ * @return Whether the resourceUsageCosts field is set.
*/
- java.lang.String getLastFourDigits();
+ boolean hasResourceUsageCosts();
/**
- * string last_four_digits = 2 [json_name = "lastFourDigits"];
- * @return The bytes for lastFourDigits.
+ * .viam.app.v1.ResourceUsageCosts resource_usage_costs = 2 [json_name = "resourceUsageCosts"];
+ * @return The resourceUsageCosts.
+ */
+ viam.app.v1.Billing.ResourceUsageCosts getResourceUsageCosts();
+
+ /**
+ * string tier_name = 3 [json_name = "tierName"];
+ * @return The tierName.
+ */
+ java.lang.String getTierName();
+ /**
+ * string tier_name = 3 [json_name = "tierName"];
+ * @return The bytes for tierName.
*/
com.google.protobuf.ByteString
- getLastFourDigitsBytes();
+ getTierNameBytes();
}
/**
- * Protobuf type {@code viam.app.v1.PaymentMethodCard}
+ * Protobuf type {@code viam.app.v1.ResourceUsageCostsBySource}
*/
- public static final class PaymentMethodCard extends
+ public static final class ResourceUsageCostsBySource extends
com.google.protobuf.GeneratedMessageLite<
- PaymentMethodCard, PaymentMethodCard.Builder> implements
- // @@protoc_insertion_point(message_implements:viam.app.v1.PaymentMethodCard)
- PaymentMethodCardOrBuilder {
- private PaymentMethodCard() {
- brand_ = "";
- lastFourDigits_ = "";
+ ResourceUsageCostsBySource, ResourceUsageCostsBySource.Builder> implements
+ // @@protoc_insertion_point(message_implements:viam.app.v1.ResourceUsageCostsBySource)
+ ResourceUsageCostsBySourceOrBuilder {
+ private ResourceUsageCostsBySource() {
+ tierName_ = "";
}
- public static final int BRAND_FIELD_NUMBER = 1;
- private java.lang.String brand_;
+ private int bitField0_;
+ public static final int SOURCE_TYPE_FIELD_NUMBER = 1;
+ private int sourceType_;
/**
- * string brand = 1 [json_name = "brand"];
- * @return The brand.
+ * .viam.app.v1.SourceType source_type = 1 [json_name = "sourceType"];
+ * @return The enum numeric value on the wire for sourceType.
*/
@java.lang.Override
- public java.lang.String getBrand() {
- return brand_;
+ public int getSourceTypeValue() {
+ return sourceType_;
}
/**
- * string brand = 1 [json_name = "brand"];
- * @return The bytes for brand.
+ * .viam.app.v1.SourceType source_type = 1 [json_name = "sourceType"];
+ * @return The sourceType.
*/
@java.lang.Override
- public com.google.protobuf.ByteString
- getBrandBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(brand_);
+ public viam.app.v1.Billing.SourceType getSourceType() {
+ viam.app.v1.Billing.SourceType result = viam.app.v1.Billing.SourceType.forNumber(sourceType_);
+ return result == null ? viam.app.v1.Billing.SourceType.UNRECOGNIZED : result;
}
/**
- * string brand = 1 [json_name = "brand"];
- * @param value The brand to set.
+ * .viam.app.v1.SourceType source_type = 1 [json_name = "sourceType"];
+ * @param value The enum numeric value on the wire for sourceType to set.
*/
- private void setBrand(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
-
- brand_ = value;
+ private void setSourceTypeValue(int value) {
+ sourceType_ = value;
}
/**
- * string brand = 1 [json_name = "brand"];
+ * .viam.app.v1.SourceType source_type = 1 [json_name = "sourceType"];
+ * @param value The sourceType to set.
*/
- private void clearBrand() {
+ private void setSourceType(viam.app.v1.Billing.SourceType value) {
+ sourceType_ = value.getNumber();
- brand_ = getDefaultInstance().getBrand();
}
/**
- * string brand = 1 [json_name = "brand"];
- * @param value The bytes for brand to set.
+ * .viam.app.v1.SourceType source_type = 1 [json_name = "sourceType"];
*/
- private void setBrandBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- brand_ = value.toStringUtf8();
+ private void clearSourceType() {
+ sourceType_ = 0;
}
- public static final int LAST_FOUR_DIGITS_FIELD_NUMBER = 2;
- private java.lang.String lastFourDigits_;
+ public static final int RESOURCE_USAGE_COSTS_FIELD_NUMBER = 2;
+ private viam.app.v1.Billing.ResourceUsageCosts resourceUsageCosts_;
/**
- * string last_four_digits = 2 [json_name = "lastFourDigits"];
- * @return The lastFourDigits.
+ * .viam.app.v1.ResourceUsageCosts resource_usage_costs = 2 [json_name = "resourceUsageCosts"];
*/
@java.lang.Override
- public java.lang.String getLastFourDigits() {
- return lastFourDigits_;
+ public boolean hasResourceUsageCosts() {
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
- * string last_four_digits = 2 [json_name = "lastFourDigits"];
- * @return The bytes for lastFourDigits.
+ * .viam.app.v1.ResourceUsageCosts resource_usage_costs = 2 [json_name = "resourceUsageCosts"];
+ */
+ @java.lang.Override
+ public viam.app.v1.Billing.ResourceUsageCosts getResourceUsageCosts() {
+ return resourceUsageCosts_ == null ? viam.app.v1.Billing.ResourceUsageCosts.getDefaultInstance() : resourceUsageCosts_;
+ }
+ /**
+ * .viam.app.v1.ResourceUsageCosts resource_usage_costs = 2 [json_name = "resourceUsageCosts"];
+ */
+ private void setResourceUsageCosts(viam.app.v1.Billing.ResourceUsageCosts value) {
+ value.getClass();
+ resourceUsageCosts_ = value;
+ bitField0_ |= 0x00000001;
+ }
+ /**
+ * .viam.app.v1.ResourceUsageCosts resource_usage_costs = 2 [json_name = "resourceUsageCosts"];
+ */
+ @java.lang.SuppressWarnings({"ReferenceEquality"})
+ private void mergeResourceUsageCosts(viam.app.v1.Billing.ResourceUsageCosts value) {
+ value.getClass();
+ if (resourceUsageCosts_ != null &&
+ resourceUsageCosts_ != viam.app.v1.Billing.ResourceUsageCosts.getDefaultInstance()) {
+ resourceUsageCosts_ =
+ viam.app.v1.Billing.ResourceUsageCosts.newBuilder(resourceUsageCosts_).mergeFrom(value).buildPartial();
+ } else {
+ resourceUsageCosts_ = value;
+ }
+ bitField0_ |= 0x00000001;
+ }
+ /**
+ * .viam.app.v1.ResourceUsageCosts resource_usage_costs = 2 [json_name = "resourceUsageCosts"];
+ */
+ private void clearResourceUsageCosts() { resourceUsageCosts_ = null;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+
+ public static final int TIER_NAME_FIELD_NUMBER = 3;
+ private java.lang.String tierName_;
+ /**
+ * string tier_name = 3 [json_name = "tierName"];
+ * @return The tierName.
+ */
+ @java.lang.Override
+ public java.lang.String getTierName() {
+ return tierName_;
+ }
+ /**
+ * string tier_name = 3 [json_name = "tierName"];
+ * @return The bytes for tierName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
- getLastFourDigitsBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(lastFourDigits_);
+ getTierNameBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(tierName_);
}
/**
- * string last_four_digits = 2 [json_name = "lastFourDigits"];
- * @param value The lastFourDigits to set.
+ * string tier_name = 3 [json_name = "tierName"];
+ * @param value The tierName to set.
*/
- private void setLastFourDigits(
+ private void setTierName(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
- lastFourDigits_ = value;
+ tierName_ = value;
}
/**
- * string last_four_digits = 2 [json_name = "lastFourDigits"];
+ * string tier_name = 3 [json_name = "tierName"];
*/
- private void clearLastFourDigits() {
+ private void clearTierName() {
- lastFourDigits_ = getDefaultInstance().getLastFourDigits();
+ tierName_ = getDefaultInstance().getTierName();
}
/**
- * string last_four_digits = 2 [json_name = "lastFourDigits"];
- * @param value The bytes for lastFourDigits to set.
+ * string tier_name = 3 [json_name = "tierName"];
+ * @param value The bytes for tierName to set.
*/
- private void setLastFourDigitsBytes(
+ private void setTierNameBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
- lastFourDigits_ = value.toStringUtf8();
+ tierName_ = value.toStringUtf8();
}
- public static viam.app.v1.Billing.PaymentMethodCard parseFrom(
+ public static viam.app.v1.Billing.ResourceUsageCostsBySource parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
- public static viam.app.v1.Billing.PaymentMethodCard parseFrom(
+ public static viam.app.v1.Billing.ResourceUsageCostsBySource parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
- public static viam.app.v1.Billing.PaymentMethodCard parseFrom(
+ public static viam.app.v1.Billing.ResourceUsageCostsBySource parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
- public static viam.app.v1.Billing.PaymentMethodCard parseFrom(
+ public static viam.app.v1.Billing.ResourceUsageCostsBySource parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
- public static viam.app.v1.Billing.PaymentMethodCard parseFrom(byte[] data)
+ public static viam.app.v1.Billing.ResourceUsageCostsBySource parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
- public static viam.app.v1.Billing.PaymentMethodCard parseFrom(
+ public static viam.app.v1.Billing.ResourceUsageCostsBySource parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
- public static viam.app.v1.Billing.PaymentMethodCard parseFrom(java.io.InputStream input)
+ public static viam.app.v1.Billing.ResourceUsageCostsBySource parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
- public static viam.app.v1.Billing.PaymentMethodCard parseFrom(
+ public static viam.app.v1.Billing.ResourceUsageCostsBySource parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -2971,24 +2413,24 @@ public static viam.app.v1.Billing.PaymentMethodCard parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
- public static viam.app.v1.Billing.PaymentMethodCard parseDelimitedFrom(java.io.InputStream input)
+ public static viam.app.v1.Billing.ResourceUsageCostsBySource parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
- public static viam.app.v1.Billing.PaymentMethodCard parseDelimitedFrom(
+ public static viam.app.v1.Billing.ResourceUsageCostsBySource parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
- public static viam.app.v1.Billing.PaymentMethodCard parseFrom(
+ public static viam.app.v1.Billing.ResourceUsageCostsBySource parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
- public static viam.app.v1.Billing.PaymentMethodCard parseFrom(
+ public static viam.app.v1.Billing.ResourceUsageCostsBySource parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -2999,123 +2441,167 @@ public static viam.app.v1.Billing.PaymentMethodCard parseFrom(
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
- public static Builder newBuilder(viam.app.v1.Billing.PaymentMethodCard prototype) {
+ public static Builder newBuilder(viam.app.v1.Billing.ResourceUsageCostsBySource prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
- * Protobuf type {@code viam.app.v1.PaymentMethodCard}
+ * Protobuf type {@code viam.app.v1.ResourceUsageCostsBySource}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
- viam.app.v1.Billing.PaymentMethodCard, Builder> implements
- // @@protoc_insertion_point(builder_implements:viam.app.v1.PaymentMethodCard)
- viam.app.v1.Billing.PaymentMethodCardOrBuilder {
- // Construct using viam.app.v1.Billing.PaymentMethodCard.newBuilder()
+ viam.app.v1.Billing.ResourceUsageCostsBySource, Builder> implements
+ // @@protoc_insertion_point(builder_implements:viam.app.v1.ResourceUsageCostsBySource)
+ viam.app.v1.Billing.ResourceUsageCostsBySourceOrBuilder {
+ // Construct using viam.app.v1.Billing.ResourceUsageCostsBySource.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
-
-
+
+
+ /**
+ * .viam.app.v1.SourceType source_type = 1 [json_name = "sourceType"];
+ * @return The enum numeric value on the wire for sourceType.
+ */
+ @java.lang.Override
+ public int getSourceTypeValue() {
+ return instance.getSourceTypeValue();
+ }
+ /**
+ * .viam.app.v1.SourceType source_type = 1 [json_name = "sourceType"];
+ * @param value The sourceType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSourceTypeValue(int value) {
+ copyOnWrite();
+ instance.setSourceTypeValue(value);
+ return this;
+ }
/**
- * string brand = 1 [json_name = "brand"];
- * @return The brand.
+ * .viam.app.v1.SourceType source_type = 1 [json_name = "sourceType"];
+ * @return The sourceType.
*/
@java.lang.Override
- public java.lang.String getBrand() {
- return instance.getBrand();
+ public viam.app.v1.Billing.SourceType getSourceType() {
+ return instance.getSourceType();
}
/**
- * string brand = 1 [json_name = "brand"];
- * @return The bytes for brand.
+ * .viam.app.v1.SourceType source_type = 1 [json_name = "sourceType"];
+ * @param value The enum numeric value on the wire for sourceType to set.
+ * @return This builder for chaining.
*/
- @java.lang.Override
- public com.google.protobuf.ByteString
- getBrandBytes() {
- return instance.getBrandBytes();
+ public Builder setSourceType(viam.app.v1.Billing.SourceType value) {
+ copyOnWrite();
+ instance.setSourceType(value);
+ return this;
}
/**
- * string brand = 1 [json_name = "brand"];
- * @param value The brand to set.
+ * .viam.app.v1.SourceType source_type = 1 [json_name = "sourceType"];
* @return This builder for chaining.
*/
- public Builder setBrand(
- java.lang.String value) {
+ public Builder clearSourceType() {
copyOnWrite();
- instance.setBrand(value);
+ instance.clearSourceType();
return this;
}
+
/**
- * string brand = 1 [json_name = "brand"];
- * @return This builder for chaining.
+ * .viam.app.v1.ResourceUsageCosts resource_usage_costs = 2 [json_name = "resourceUsageCosts"];
*/
- public Builder clearBrand() {
+ @java.lang.Override
+ public boolean hasResourceUsageCosts() {
+ return instance.hasResourceUsageCosts();
+ }
+ /**
+ * .viam.app.v1.ResourceUsageCosts resource_usage_costs = 2 [json_name = "resourceUsageCosts"];
+ */
+ @java.lang.Override
+ public viam.app.v1.Billing.ResourceUsageCosts getResourceUsageCosts() {
+ return instance.getResourceUsageCosts();
+ }
+ /**
+ * .viam.app.v1.ResourceUsageCosts resource_usage_costs = 2 [json_name = "resourceUsageCosts"];
+ */
+ public Builder setResourceUsageCosts(viam.app.v1.Billing.ResourceUsageCosts value) {
copyOnWrite();
- instance.clearBrand();
+ instance.setResourceUsageCosts(value);
+ return this;
+ }
+ /**
+ * .viam.app.v1.ResourceUsageCosts resource_usage_costs = 2 [json_name = "resourceUsageCosts"];
+ */
+ public Builder setResourceUsageCosts(
+ viam.app.v1.Billing.ResourceUsageCosts.Builder builderForValue) {
+ copyOnWrite();
+ instance.setResourceUsageCosts(builderForValue.build());
return this;
}
/**
- * string brand = 1 [json_name = "brand"];
- * @param value The bytes for brand to set.
- * @return This builder for chaining.
+ * .viam.app.v1.ResourceUsageCosts resource_usage_costs = 2 [json_name = "resourceUsageCosts"];
*/
- public Builder setBrandBytes(
- com.google.protobuf.ByteString value) {
+ public Builder mergeResourceUsageCosts(viam.app.v1.Billing.ResourceUsageCosts value) {
copyOnWrite();
- instance.setBrandBytes(value);
+ instance.mergeResourceUsageCosts(value);
+ return this;
+ }
+ /**
+ * .viam.app.v1.ResourceUsageCosts resource_usage_costs = 2 [json_name = "resourceUsageCosts"];
+ */
+ public Builder clearResourceUsageCosts() { copyOnWrite();
+ instance.clearResourceUsageCosts();
return this;
}
/**
- * string last_four_digits = 2 [json_name = "lastFourDigits"];
- * @return The lastFourDigits.
+ * string tier_name = 3 [json_name = "tierName"];
+ * @return The tierName.
*/
@java.lang.Override
- public java.lang.String getLastFourDigits() {
- return instance.getLastFourDigits();
+ public java.lang.String getTierName() {
+ return instance.getTierName();
}
/**
- * string last_four_digits = 2 [json_name = "lastFourDigits"];
- * @return The bytes for lastFourDigits.
+ * string tier_name = 3 [json_name = "tierName"];
+ * @return The bytes for tierName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
- getLastFourDigitsBytes() {
- return instance.getLastFourDigitsBytes();
+ getTierNameBytes() {
+ return instance.getTierNameBytes();
}
/**
- * string last_four_digits = 2 [json_name = "lastFourDigits"];
- * @param value The lastFourDigits to set.
+ * string tier_name = 3 [json_name = "tierName"];
+ * @param value The tierName to set.
* @return This builder for chaining.
*/
- public Builder setLastFourDigits(
+ public Builder setTierName(
java.lang.String value) {
copyOnWrite();
- instance.setLastFourDigits(value);
+ instance.setTierName(value);
return this;
}
/**
- * string last_four_digits = 2 [json_name = "lastFourDigits"];
+ * string tier_name = 3 [json_name = "tierName"];
* @return This builder for chaining.
*/
- public Builder clearLastFourDigits() {
+ public Builder clearTierName() {
copyOnWrite();
- instance.clearLastFourDigits();
+ instance.clearTierName();
return this;
}
/**
- * string last_four_digits = 2 [json_name = "lastFourDigits"];
- * @param value The bytes for lastFourDigits to set.
+ * string tier_name = 3 [json_name = "tierName"];
+ * @param value The bytes for tierName to set.
* @return This builder for chaining.
*/
- public Builder setLastFourDigitsBytes(
+ public Builder setTierNameBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
- instance.setLastFourDigitsBytes(value);
+ instance.setTierNameBytes(value);
return this;
}
- // @@protoc_insertion_point(builder_scope:viam.app.v1.PaymentMethodCard)
+ // @@protoc_insertion_point(builder_scope:viam.app.v1.ResourceUsageCostsBySource)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
@@ -3124,19 +2610,21 @@ protected final java.lang.Object dynamicMethod(
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
- return new viam.app.v1.Billing.PaymentMethodCard();
+ return new viam.app.v1.Billing.ResourceUsageCostsBySource();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
- "brand_",
- "lastFourDigits_",
+ "bitField0_",
+ "sourceType_",
+ "resourceUsageCosts_",
+ "tierName_",
};
java.lang.String info =
- "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u0208\u0002\u0208" +
- "";
+ "\u0000\u0003\u0000\u0001\u0001\u0003\u0003\u0000\u0000\u0000\u0001\f\u0002\u1009" +
+ "\u0000\u0003\u0208";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
@@ -3144,13 +2632,13 @@ protected final java.lang.Object dynamicMethod(
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
- com.google.protobuf.Parser parser = PARSER;
+ com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
- synchronized (viam.app.v1.Billing.PaymentMethodCard.class) {
+ synchronized (viam.app.v1.Billing.ResourceUsageCostsBySource.class) {
parser = PARSER;
if (parser == null) {
parser =
- new DefaultInstanceBasedParser(
+ new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
@@ -3169,146 +2657,291 @@ protected final java.lang.Object dynamicMethod(
}
- // @@protoc_insertion_point(class_scope:viam.app.v1.PaymentMethodCard)
- private static final viam.app.v1.Billing.PaymentMethodCard DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:viam.app.v1.ResourceUsageCostsBySource)
+ private static final viam.app.v1.Billing.ResourceUsageCostsBySource DEFAULT_INSTANCE;
static {
- PaymentMethodCard defaultInstance = new PaymentMethodCard();
+ ResourceUsageCostsBySource defaultInstance = new ResourceUsageCostsBySource();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
- PaymentMethodCard.class, defaultInstance);
+ ResourceUsageCostsBySource.class, defaultInstance);
}
- public static viam.app.v1.Billing.PaymentMethodCard getDefaultInstance() {
+ public static viam.app.v1.Billing.ResourceUsageCostsBySource getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static volatile com.google.protobuf.Parser PARSER;
+ private static volatile com.google.protobuf.Parser PARSER;
- public static com.google.protobuf.Parser parser() {
+ public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
- public interface GetCurrentMonthUsageRequestOrBuilder extends
- // @@protoc_insertion_point(interface_extends:viam.app.v1.GetCurrentMonthUsageRequest)
+ public interface ResourceUsageCostsOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:viam.app.v1.ResourceUsageCosts)
com.google.protobuf.MessageLiteOrBuilder {
/**
- * string org_id = 1 [json_name = "orgId"];
- * @return The orgId.
+ * repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
*/
- java.lang.String getOrgId();
+ java.util.List
+ getUsageCostsList();
/**
- * string org_id = 1 [json_name = "orgId"];
- * @return The bytes for orgId.
+ * repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
*/
- com.google.protobuf.ByteString
- getOrgIdBytes();
+ viam.app.v1.Billing.UsageCost getUsageCosts(int index);
+ /**
+ * repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
+ */
+ int getUsageCostsCount();
+
+ /**
+ * double discount = 2 [json_name = "discount"];
+ * @return The discount.
+ */
+ double getDiscount();
+
+ /**
+ * double total_with_discount = 3 [json_name = "totalWithDiscount"];
+ * @return The totalWithDiscount.
+ */
+ double getTotalWithDiscount();
+
+ /**
+ * double total_without_discount = 4 [json_name = "totalWithoutDiscount"];
+ * @return The totalWithoutDiscount.
+ */
+ double getTotalWithoutDiscount();
}
/**
- * Protobuf type {@code viam.app.v1.GetCurrentMonthUsageRequest}
+ * Protobuf type {@code viam.app.v1.ResourceUsageCosts}
*/
- public static final class GetCurrentMonthUsageRequest extends
+ public static final class ResourceUsageCosts extends
com.google.protobuf.GeneratedMessageLite<
- GetCurrentMonthUsageRequest, GetCurrentMonthUsageRequest.Builder> implements
- // @@protoc_insertion_point(message_implements:viam.app.v1.GetCurrentMonthUsageRequest)
- GetCurrentMonthUsageRequestOrBuilder {
- private GetCurrentMonthUsageRequest() {
- orgId_ = "";
+ ResourceUsageCosts, ResourceUsageCosts.Builder> implements
+ // @@protoc_insertion_point(message_implements:viam.app.v1.ResourceUsageCosts)
+ ResourceUsageCostsOrBuilder {
+ private ResourceUsageCosts() {
+ usageCosts_ = emptyProtobufList();
}
- public static final int ORG_ID_FIELD_NUMBER = 1;
- private java.lang.String orgId_;
+ public static final int USAGE_COSTS_FIELD_NUMBER = 1;
+ private com.google.protobuf.Internal.ProtobufList usageCosts_;
/**
- * string org_id = 1 [json_name = "orgId"];
- * @return The orgId.
+ * repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
*/
@java.lang.Override
- public java.lang.String getOrgId() {
- return orgId_;
+ public java.util.List getUsageCostsList() {
+ return usageCosts_;
}
/**
- * string org_id = 1 [json_name = "orgId"];
- * @return The bytes for orgId.
+ * repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
+ */
+ public java.util.List extends viam.app.v1.Billing.UsageCostOrBuilder>
+ getUsageCostsOrBuilderList() {
+ return usageCosts_;
+ }
+ /**
+ * repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
*/
@java.lang.Override
- public com.google.protobuf.ByteString
- getOrgIdBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(orgId_);
+ public int getUsageCostsCount() {
+ return usageCosts_.size();
}
/**
- * string org_id = 1 [json_name = "orgId"];
- * @param value The orgId to set.
+ * repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
*/
- private void setOrgId(
- java.lang.String value) {
- java.lang.Class> valueClass = value.getClass();
-
- orgId_ = value;
+ @java.lang.Override
+ public viam.app.v1.Billing.UsageCost getUsageCosts(int index) {
+ return usageCosts_.get(index);
}
/**
- * string org_id = 1 [json_name = "orgId"];
+ * repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
*/
- private void clearOrgId() {
+ public viam.app.v1.Billing.UsageCostOrBuilder getUsageCostsOrBuilder(
+ int index) {
+ return usageCosts_.get(index);
+ }
+ private void ensureUsageCostsIsMutable() {
+ com.google.protobuf.Internal.ProtobufList tmp = usageCosts_;
+ if (!tmp.isModifiable()) {
+ usageCosts_ =
+ com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
+ }
+ }
- orgId_ = getDefaultInstance().getOrgId();
+ /**
+ * repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
+ */
+ private void setUsageCosts(
+ int index, viam.app.v1.Billing.UsageCost value) {
+ value.getClass();
+ ensureUsageCostsIsMutable();
+ usageCosts_.set(index, value);
}
/**
- * string org_id = 1 [json_name = "orgId"];
- * @param value The bytes for orgId to set.
+ * repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
*/
- private void setOrgIdBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- orgId_ = value.toStringUtf8();
+ private void addUsageCosts(viam.app.v1.Billing.UsageCost value) {
+ value.getClass();
+ ensureUsageCostsIsMutable();
+ usageCosts_.add(value);
+ }
+ /**
+ * repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
+ */
+ private void addUsageCosts(
+ int index, viam.app.v1.Billing.UsageCost value) {
+ value.getClass();
+ ensureUsageCostsIsMutable();
+ usageCosts_.add(index, value);
+ }
+ /**
+ * repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
+ */
+ private void addAllUsageCosts(
+ java.lang.Iterable extends viam.app.v1.Billing.UsageCost> values) {
+ ensureUsageCostsIsMutable();
+ com.google.protobuf.AbstractMessageLite.addAll(
+ values, usageCosts_);
+ }
+ /**
+ * repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
+ */
+ private void clearUsageCosts() {
+ usageCosts_ = emptyProtobufList();
+ }
+ /**
+ * repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
+ */
+ private void removeUsageCosts(int index) {
+ ensureUsageCostsIsMutable();
+ usageCosts_.remove(index);
+ }
+
+ public static final int DISCOUNT_FIELD_NUMBER = 2;
+ private double discount_;
+ /**
+ * double discount = 2 [json_name = "discount"];
+ * @return The discount.
+ */
+ @java.lang.Override
+ public double getDiscount() {
+ return discount_;
+ }
+ /**
+ * double discount = 2 [json_name = "discount"];
+ * @param value The discount to set.
+ */
+ private void setDiscount(double value) {
+
+ discount_ = value;
+ }
+ /**
+ * double discount = 2 [json_name = "discount"];
+ */
+ private void clearDiscount() {
+ discount_ = 0D;
}
- public static viam.app.v1.Billing.GetCurrentMonthUsageRequest parseFrom(
+ public static final int TOTAL_WITH_DISCOUNT_FIELD_NUMBER = 3;
+ private double totalWithDiscount_;
+ /**
+ * double total_with_discount = 3 [json_name = "totalWithDiscount"];
+ * @return The totalWithDiscount.
+ */
+ @java.lang.Override
+ public double getTotalWithDiscount() {
+ return totalWithDiscount_;
+ }
+ /**
+ * double total_with_discount = 3 [json_name = "totalWithDiscount"];
+ * @param value The totalWithDiscount to set.
+ */
+ private void setTotalWithDiscount(double value) {
+
+ totalWithDiscount_ = value;
+ }
+ /**
+ * double total_with_discount = 3 [json_name = "totalWithDiscount"];
+ */
+ private void clearTotalWithDiscount() {
+
+ totalWithDiscount_ = 0D;
+ }
+
+ public static final int TOTAL_WITHOUT_DISCOUNT_FIELD_NUMBER = 4;
+ private double totalWithoutDiscount_;
+ /**
+ * double total_without_discount = 4 [json_name = "totalWithoutDiscount"];
+ * @return The totalWithoutDiscount.
+ */
+ @java.lang.Override
+ public double getTotalWithoutDiscount() {
+ return totalWithoutDiscount_;
+ }
+ /**
+ * double total_without_discount = 4 [json_name = "totalWithoutDiscount"];
+ * @param value The totalWithoutDiscount to set.
+ */
+ private void setTotalWithoutDiscount(double value) {
+
+ totalWithoutDiscount_ = value;
+ }
+ /**
+ * double total_without_discount = 4 [json_name = "totalWithoutDiscount"];
+ */
+ private void clearTotalWithoutDiscount() {
+
+ totalWithoutDiscount_ = 0D;
+ }
+
+ public static viam.app.v1.Billing.ResourceUsageCosts parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
- public static viam.app.v1.Billing.GetCurrentMonthUsageRequest parseFrom(
+ public static viam.app.v1.Billing.ResourceUsageCosts parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
- public static viam.app.v1.Billing.GetCurrentMonthUsageRequest parseFrom(
+ public static viam.app.v1.Billing.ResourceUsageCosts parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
- public static viam.app.v1.Billing.GetCurrentMonthUsageRequest parseFrom(
+ public static viam.app.v1.Billing.ResourceUsageCosts parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
- public static viam.app.v1.Billing.GetCurrentMonthUsageRequest parseFrom(byte[] data)
+ public static viam.app.v1.Billing.ResourceUsageCosts parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
- public static viam.app.v1.Billing.GetCurrentMonthUsageRequest parseFrom(
+ public static viam.app.v1.Billing.ResourceUsageCosts parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
- public static viam.app.v1.Billing.GetCurrentMonthUsageRequest parseFrom(java.io.InputStream input)
+ public static viam.app.v1.Billing.ResourceUsageCosts parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
- public static viam.app.v1.Billing.GetCurrentMonthUsageRequest parseFrom(
+ public static viam.app.v1.Billing.ResourceUsageCosts parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -3316,24 +2949,24 @@ public static viam.app.v1.Billing.GetCurrentMonthUsageRequest parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
- public static viam.app.v1.Billing.GetCurrentMonthUsageRequest parseDelimitedFrom(java.io.InputStream input)
+ public static viam.app.v1.Billing.ResourceUsageCosts parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
- public static viam.app.v1.Billing.GetCurrentMonthUsageRequest parseDelimitedFrom(
+ public static viam.app.v1.Billing.ResourceUsageCosts parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
- public static viam.app.v1.Billing.GetCurrentMonthUsageRequest parseFrom(
+ public static viam.app.v1.Billing.ResourceUsageCosts parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
- public static viam.app.v1.Billing.GetCurrentMonthUsageRequest parseFrom(
+ public static viam.app.v1.Billing.ResourceUsageCosts parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -3344,74 +2977,211 @@ public static viam.app.v1.Billing.GetCurrentMonthUsageRequest parseFrom(
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
- public static Builder newBuilder(viam.app.v1.Billing.GetCurrentMonthUsageRequest prototype) {
+ public static Builder newBuilder(viam.app.v1.Billing.ResourceUsageCosts prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
- * Protobuf type {@code viam.app.v1.GetCurrentMonthUsageRequest}
+ * Protobuf type {@code viam.app.v1.ResourceUsageCosts}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
- viam.app.v1.Billing.GetCurrentMonthUsageRequest, Builder> implements
- // @@protoc_insertion_point(builder_implements:viam.app.v1.GetCurrentMonthUsageRequest)
- viam.app.v1.Billing.GetCurrentMonthUsageRequestOrBuilder {
- // Construct using viam.app.v1.Billing.GetCurrentMonthUsageRequest.newBuilder()
+ viam.app.v1.Billing.ResourceUsageCosts, Builder> implements
+ // @@protoc_insertion_point(builder_implements:viam.app.v1.ResourceUsageCosts)
+ viam.app.v1.Billing.ResourceUsageCostsOrBuilder {
+ // Construct using viam.app.v1.Billing.ResourceUsageCosts.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
-
+
+
+ /**
+ * repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
+ */
+ @java.lang.Override
+ public java.util.List getUsageCostsList() {
+ return java.util.Collections.unmodifiableList(
+ instance.getUsageCostsList());
+ }
+ /**
+ * repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
+ */
+ @java.lang.Override
+ public int getUsageCostsCount() {
+ return instance.getUsageCostsCount();
+ }/**
+ * repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
+ */
+ @java.lang.Override
+ public viam.app.v1.Billing.UsageCost getUsageCosts(int index) {
+ return instance.getUsageCosts(index);
+ }
+ /**
+ * repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
+ */
+ public Builder setUsageCosts(
+ int index, viam.app.v1.Billing.UsageCost value) {
+ copyOnWrite();
+ instance.setUsageCosts(index, value);
+ return this;
+ }
+ /**
+ * repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
+ */
+ public Builder setUsageCosts(
+ int index, viam.app.v1.Billing.UsageCost.Builder builderForValue) {
+ copyOnWrite();
+ instance.setUsageCosts(index,
+ builderForValue.build());
+ return this;
+ }
+ /**
+ * repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
+ */
+ public Builder addUsageCosts(viam.app.v1.Billing.UsageCost value) {
+ copyOnWrite();
+ instance.addUsageCosts(value);
+ return this;
+ }
+ /**
+ * repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
+ */
+ public Builder addUsageCosts(
+ int index, viam.app.v1.Billing.UsageCost value) {
+ copyOnWrite();
+ instance.addUsageCosts(index, value);
+ return this;
+ }
+ /**
+ * repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
+ */
+ public Builder addUsageCosts(
+ viam.app.v1.Billing.UsageCost.Builder builderForValue) {
+ copyOnWrite();
+ instance.addUsageCosts(builderForValue.build());
+ return this;
+ }
+ /**
+ * repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
+ */
+ public Builder addUsageCosts(
+ int index, viam.app.v1.Billing.UsageCost.Builder builderForValue) {
+ copyOnWrite();
+ instance.addUsageCosts(index,
+ builderForValue.build());
+ return this;
+ }
+ /**
+ * repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
+ */
+ public Builder addAllUsageCosts(
+ java.lang.Iterable extends viam.app.v1.Billing.UsageCost> values) {
+ copyOnWrite();
+ instance.addAllUsageCosts(values);
+ return this;
+ }
+ /**
+ * repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
+ */
+ public Builder clearUsageCosts() {
+ copyOnWrite();
+ instance.clearUsageCosts();
+ return this;
+ }
+ /**
+ * repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
+ */
+ public Builder removeUsageCosts(int index) {
+ copyOnWrite();
+ instance.removeUsageCosts(index);
+ return this;
+ }
/**
- * string org_id = 1 [json_name = "orgId"];
- * @return The orgId.
+ * double discount = 2 [json_name = "discount"];
+ * @return The discount.
*/
@java.lang.Override
- public java.lang.String getOrgId() {
- return instance.getOrgId();
+ public double getDiscount() {
+ return instance.getDiscount();
}
/**
- * string org_id = 1 [json_name = "orgId"];
- * @return The bytes for orgId.
+ * double discount = 2 [json_name = "discount"];
+ * @param value The discount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDiscount(double value) {
+ copyOnWrite();
+ instance.setDiscount(value);
+ return this;
+ }
+ /**
+ * double discount = 2 [json_name = "discount"];
+ * @return This builder for chaining.
+ */
+ public Builder clearDiscount() {
+ copyOnWrite();
+ instance.clearDiscount();
+ return this;
+ }
+
+ /**
+ * double total_with_discount = 3 [json_name = "totalWithDiscount"];
+ * @return The totalWithDiscount.
*/
@java.lang.Override
- public com.google.protobuf.ByteString
- getOrgIdBytes() {
- return instance.getOrgIdBytes();
+ public double getTotalWithDiscount() {
+ return instance.getTotalWithDiscount();
}
/**
- * string org_id = 1 [json_name = "orgId"];
- * @param value The orgId to set.
+ * double total_with_discount = 3 [json_name = "totalWithDiscount"];
+ * @param value The totalWithDiscount to set.
* @return This builder for chaining.
*/
- public Builder setOrgId(
- java.lang.String value) {
+ public Builder setTotalWithDiscount(double value) {
copyOnWrite();
- instance.setOrgId(value);
+ instance.setTotalWithDiscount(value);
return this;
}
/**
- * string org_id = 1 [json_name = "orgId"];
+ * double total_with_discount = 3 [json_name = "totalWithDiscount"];
* @return This builder for chaining.
*/
- public Builder clearOrgId() {
+ public Builder clearTotalWithDiscount() {
copyOnWrite();
- instance.clearOrgId();
+ instance.clearTotalWithDiscount();
return this;
}
+
/**
- * string org_id = 1 [json_name = "orgId"];
- * @param value The bytes for orgId to set.
+ * double total_without_discount = 4 [json_name = "totalWithoutDiscount"];
+ * @return The totalWithoutDiscount.
+ */
+ @java.lang.Override
+ public double getTotalWithoutDiscount() {
+ return instance.getTotalWithoutDiscount();
+ }
+ /**
+ * double total_without_discount = 4 [json_name = "totalWithoutDiscount"];
+ * @param value The totalWithoutDiscount to set.
* @return This builder for chaining.
*/
- public Builder setOrgIdBytes(
- com.google.protobuf.ByteString value) {
+ public Builder setTotalWithoutDiscount(double value) {
copyOnWrite();
- instance.setOrgIdBytes(value);
+ instance.setTotalWithoutDiscount(value);
+ return this;
+ }
+ /**
+ * double total_without_discount = 4 [json_name = "totalWithoutDiscount"];
+ * @return This builder for chaining.
+ */
+ public Builder clearTotalWithoutDiscount() {
+ copyOnWrite();
+ instance.clearTotalWithoutDiscount();
return this;
}
- // @@protoc_insertion_point(builder_scope:viam.app.v1.GetCurrentMonthUsageRequest)
+ // @@protoc_insertion_point(builder_scope:viam.app.v1.ResourceUsageCosts)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
@@ -3420,17 +3190,22 @@ protected final java.lang.Object dynamicMethod(
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
- return new viam.app.v1.Billing.GetCurrentMonthUsageRequest();
+ return new viam.app.v1.Billing.ResourceUsageCosts();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
- "orgId_",
+ "usageCosts_",
+ viam.app.v1.Billing.UsageCost.class,
+ "discount_",
+ "totalWithDiscount_",
+ "totalWithoutDiscount_",
};
java.lang.String info =
- "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\u0208";
+ "\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0001\u0000\u0001\u001b\u0002\u0000" +
+ "\u0003\u0000\u0004\u0000";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
@@ -3438,13 +3213,13 @@ protected final java.lang.Object dynamicMethod(
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
- com.google.protobuf.Parser parser = PARSER;
+ com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
- synchronized (viam.app.v1.Billing.GetCurrentMonthUsageRequest.class) {
+ synchronized (viam.app.v1.Billing.ResourceUsageCosts.class) {
parser = PARSER;
if (parser == null) {
parser =
- new DefaultInstanceBasedParser(
+ new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
@@ -3463,24 +3238,24 @@ protected final java.lang.Object dynamicMethod(
}
- // @@protoc_insertion_point(class_scope:viam.app.v1.GetCurrentMonthUsageRequest)
- private static final viam.app.v1.Billing.GetCurrentMonthUsageRequest DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:viam.app.v1.ResourceUsageCosts)
+ private static final viam.app.v1.Billing.ResourceUsageCosts DEFAULT_INSTANCE;
static {
- GetCurrentMonthUsageRequest defaultInstance = new GetCurrentMonthUsageRequest();
+ ResourceUsageCosts defaultInstance = new ResourceUsageCosts();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
- GetCurrentMonthUsageRequest.class, defaultInstance);
+ ResourceUsageCosts.class, defaultInstance);
}
- public static viam.app.v1.Billing.GetCurrentMonthUsageRequest getDefaultInstance() {
+ public static viam.app.v1.Billing.ResourceUsageCosts getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static volatile com.google.protobuf.Parser PARSER;
+ private static volatile com.google.protobuf.Parser PARSER;
- public static com.google.protobuf.Parser parser() {
+ public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
@@ -3512,70 +3287,116 @@ public interface GetCurrentMonthUsageResponseOrBuilder extends
com.google.protobuf.Timestamp getEndDate();
/**
- * double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost"];
+ * repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"];
+ */
+ java.util.List
+ getResourceUsageCostsBySourceList();
+ /**
+ * repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"];
+ */
+ viam.app.v1.Billing.ResourceUsageCostsBySource getResourceUsageCostsBySource(int index);
+ /**
+ * repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"];
+ */
+ int getResourceUsageCostsBySourceCount();
+
+ /**
+ * double subtotal = 15 [json_name = "subtotal"];
+ * @return The subtotal.
+ */
+ double getSubtotal();
+
+ /**
+ *
+ * all fields below are deprecated
+ *
+ *
+ * double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.cloud_storage_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=87
* @return The cloudStorageUsageCost.
*/
- double getCloudStorageUsageCost();
+ @java.lang.Deprecated double getCloudStorageUsageCost();
/**
- * double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost"];
+ * double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.data_upload_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=88
* @return The dataUploadUsageCost.
*/
- double getDataUploadUsageCost();
+ @java.lang.Deprecated double getDataUploadUsageCost();
/**
- * double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost"];
+ * double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.data_egres_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=89
* @return The dataEgresUsageCost.
*/
- double getDataEgresUsageCost();
+ @java.lang.Deprecated double getDataEgresUsageCost();
/**
- * double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost"];
+ * double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.remote_control_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=90
* @return The remoteControlUsageCost.
*/
- double getRemoteControlUsageCost();
+ @java.lang.Deprecated double getRemoteControlUsageCost();
/**
- * double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost"];
+ * double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.standard_compute_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=91
* @return The standardComputeUsageCost.
*/
- double getStandardComputeUsageCost();
+ @java.lang.Deprecated double getStandardComputeUsageCost();
/**
- * double discount_amount = 8 [json_name = "discountAmount"];
+ * double discount_amount = 8 [json_name = "discountAmount", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.discount_amount is deprecated.
+ * See app/v1/billing.proto;l=92
* @return The discountAmount.
*/
- double getDiscountAmount();
+ @java.lang.Deprecated double getDiscountAmount();
/**
- * double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount"];
+ * double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.total_usage_with_discount is deprecated.
+ * See app/v1/billing.proto;l=93
* @return The totalUsageWithDiscount.
*/
- double getTotalUsageWithDiscount();
+ @java.lang.Deprecated double getTotalUsageWithDiscount();
/**
- * double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount"];
+ * double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.total_usage_without_discount is deprecated.
+ * See app/v1/billing.proto;l=94
* @return The totalUsageWithoutDiscount.
*/
- double getTotalUsageWithoutDiscount();
+ @java.lang.Deprecated double getTotalUsageWithoutDiscount();
/**
- * double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost"];
+ * double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.per_machine_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=95
* @return The perMachineUsageCost.
*/
- double getPerMachineUsageCost();
+ @java.lang.Deprecated double getPerMachineUsageCost();
/**
- * double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost"];
+ * double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.binary_data_cloud_storage_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=96
* @return The binaryDataCloudStorageUsageCost.
*/
- double getBinaryDataCloudStorageUsageCost();
+ @java.lang.Deprecated double getBinaryDataCloudStorageUsageCost();
/**
- * double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost"];
+ * double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.other_cloud_storage_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=97
* @return The otherCloudStorageUsageCost.
*/
- double getOtherCloudStorageUsageCost();
+ @java.lang.Deprecated double getOtherCloudStorageUsageCost();
}
/**
* Protobuf type {@code viam.app.v1.GetCurrentMonthUsageResponse}
@@ -3586,6 +3407,7 @@ public static final class GetCurrentMonthUsageResponse extends
// @@protoc_insertion_point(message_implements:viam.app.v1.GetCurrentMonthUsageResponse)
GetCurrentMonthUsageResponseOrBuilder {
private GetCurrentMonthUsageResponse() {
+ resourceUsageCostsBySource_ = emptyProtobufList();
}
private int bitField0_;
public static final int START_DATE_FIELD_NUMBER = 1;
@@ -3680,18 +3502,150 @@ private void mergeEndDate(com.google.protobuf.Timestamp value) {
bitField0_ = (bitField0_ & ~0x00000002);
}
+ public static final int RESOURCE_USAGE_COSTS_BY_SOURCE_FIELD_NUMBER = 14;
+ private com.google.protobuf.Internal.ProtobufList resourceUsageCostsBySource_;
+ /**
+ * repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"];
+ */
+ @java.lang.Override
+ public java.util.List getResourceUsageCostsBySourceList() {
+ return resourceUsageCostsBySource_;
+ }
+ /**
+ * repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"];
+ */
+ public java.util.List extends viam.app.v1.Billing.ResourceUsageCostsBySourceOrBuilder>
+ getResourceUsageCostsBySourceOrBuilderList() {
+ return resourceUsageCostsBySource_;
+ }
+ /**
+ * repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"];
+ */
+ @java.lang.Override
+ public int getResourceUsageCostsBySourceCount() {
+ return resourceUsageCostsBySource_.size();
+ }
+ /**
+ * repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"];
+ */
+ @java.lang.Override
+ public viam.app.v1.Billing.ResourceUsageCostsBySource getResourceUsageCostsBySource(int index) {
+ return resourceUsageCostsBySource_.get(index);
+ }
+ /**
+ * repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"];
+ */
+ public viam.app.v1.Billing.ResourceUsageCostsBySourceOrBuilder getResourceUsageCostsBySourceOrBuilder(
+ int index) {
+ return resourceUsageCostsBySource_.get(index);
+ }
+ private void ensureResourceUsageCostsBySourceIsMutable() {
+ com.google.protobuf.Internal.ProtobufList tmp = resourceUsageCostsBySource_;
+ if (!tmp.isModifiable()) {
+ resourceUsageCostsBySource_ =
+ com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
+ }
+ }
+
+ /**
+ * repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"];
+ */
+ private void setResourceUsageCostsBySource(
+ int index, viam.app.v1.Billing.ResourceUsageCostsBySource value) {
+ value.getClass();
+ ensureResourceUsageCostsBySourceIsMutable();
+ resourceUsageCostsBySource_.set(index, value);
+ }
+ /**
+ * repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"];
+ */
+ private void addResourceUsageCostsBySource(viam.app.v1.Billing.ResourceUsageCostsBySource value) {
+ value.getClass();
+ ensureResourceUsageCostsBySourceIsMutable();
+ resourceUsageCostsBySource_.add(value);
+ }
+ /**
+ * repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"];
+ */
+ private void addResourceUsageCostsBySource(
+ int index, viam.app.v1.Billing.ResourceUsageCostsBySource value) {
+ value.getClass();
+ ensureResourceUsageCostsBySourceIsMutable();
+ resourceUsageCostsBySource_.add(index, value);
+ }
+ /**
+ * repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"];
+ */
+ private void addAllResourceUsageCostsBySource(
+ java.lang.Iterable extends viam.app.v1.Billing.ResourceUsageCostsBySource> values) {
+ ensureResourceUsageCostsBySourceIsMutable();
+ com.google.protobuf.AbstractMessageLite.addAll(
+ values, resourceUsageCostsBySource_);
+ }
+ /**
+ * repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"];
+ */
+ private void clearResourceUsageCostsBySource() {
+ resourceUsageCostsBySource_ = emptyProtobufList();
+ }
+ /**
+ * repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"];
+ */
+ private void removeResourceUsageCostsBySource(int index) {
+ ensureResourceUsageCostsBySourceIsMutable();
+ resourceUsageCostsBySource_.remove(index);
+ }
+
+ public static final int SUBTOTAL_FIELD_NUMBER = 15;
+ private double subtotal_;
+ /**
+ * double subtotal = 15 [json_name = "subtotal"];
+ * @return The subtotal.
+ */
+ @java.lang.Override
+ public double getSubtotal() {
+ return subtotal_;
+ }
+ /**
+ * double subtotal = 15 [json_name = "subtotal"];
+ * @param value The subtotal to set.
+ */
+ private void setSubtotal(double value) {
+
+ subtotal_ = value;
+ }
+ /**
+ * double subtotal = 15 [json_name = "subtotal"];
+ */
+ private void clearSubtotal() {
+
+ subtotal_ = 0D;
+ }
+
public static final int CLOUD_STORAGE_USAGE_COST_FIELD_NUMBER = 3;
private double cloudStorageUsageCost_;
/**
- * double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost"];
+ *
+ * all fields below are deprecated
+ *
+ *
+ * double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.cloud_storage_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=87
* @return The cloudStorageUsageCost.
*/
@java.lang.Override
- public double getCloudStorageUsageCost() {
+ @java.lang.Deprecated public double getCloudStorageUsageCost() {
return cloudStorageUsageCost_;
}
/**
- * double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost"];
+ *
+ * all fields below are deprecated
+ *
+ *
+ * double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.cloud_storage_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=87
* @param value The cloudStorageUsageCost to set.
*/
private void setCloudStorageUsageCost(double value) {
@@ -3699,7 +3653,13 @@ private void setCloudStorageUsageCost(double value) {
cloudStorageUsageCost_ = value;
}
/**
- * double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost"];
+ *
+ * all fields below are deprecated
+ *
+ *
+ * double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.cloud_storage_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=87
*/
private void clearCloudStorageUsageCost() {
@@ -3709,15 +3669,19 @@ private void clearCloudStorageUsageCost() {
public static final int DATA_UPLOAD_USAGE_COST_FIELD_NUMBER = 4;
private double dataUploadUsageCost_;
/**
- * double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost"];
+ * double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.data_upload_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=88
* @return The dataUploadUsageCost.
*/
@java.lang.Override
- public double getDataUploadUsageCost() {
+ @java.lang.Deprecated public double getDataUploadUsageCost() {
return dataUploadUsageCost_;
}
/**
- * double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost"];
+ * double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.data_upload_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=88
* @param value The dataUploadUsageCost to set.
*/
private void setDataUploadUsageCost(double value) {
@@ -3725,7 +3689,9 @@ private void setDataUploadUsageCost(double value) {
dataUploadUsageCost_ = value;
}
/**
- * double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost"];
+ * double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.data_upload_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=88
*/
private void clearDataUploadUsageCost() {
@@ -3735,15 +3701,19 @@ private void clearDataUploadUsageCost() {
public static final int DATA_EGRES_USAGE_COST_FIELD_NUMBER = 5;
private double dataEgresUsageCost_;
/**
- * double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost"];
+ * double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.data_egres_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=89
* @return The dataEgresUsageCost.
*/
@java.lang.Override
- public double getDataEgresUsageCost() {
+ @java.lang.Deprecated public double getDataEgresUsageCost() {
return dataEgresUsageCost_;
}
/**
- * double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost"];
+ * double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.data_egres_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=89
* @param value The dataEgresUsageCost to set.
*/
private void setDataEgresUsageCost(double value) {
@@ -3751,7 +3721,9 @@ private void setDataEgresUsageCost(double value) {
dataEgresUsageCost_ = value;
}
/**
- * double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost"];
+ * double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.data_egres_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=89
*/
private void clearDataEgresUsageCost() {
@@ -3761,15 +3733,19 @@ private void clearDataEgresUsageCost() {
public static final int REMOTE_CONTROL_USAGE_COST_FIELD_NUMBER = 6;
private double remoteControlUsageCost_;
/**
- * double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost"];
+ * double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.remote_control_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=90
* @return The remoteControlUsageCost.
*/
@java.lang.Override
- public double getRemoteControlUsageCost() {
+ @java.lang.Deprecated public double getRemoteControlUsageCost() {
return remoteControlUsageCost_;
}
/**
- * double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost"];
+ * double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.remote_control_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=90
* @param value The remoteControlUsageCost to set.
*/
private void setRemoteControlUsageCost(double value) {
@@ -3777,7 +3753,9 @@ private void setRemoteControlUsageCost(double value) {
remoteControlUsageCost_ = value;
}
/**
- * double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost"];
+ * double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.remote_control_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=90
*/
private void clearRemoteControlUsageCost() {
@@ -3787,15 +3765,19 @@ private void clearRemoteControlUsageCost() {
public static final int STANDARD_COMPUTE_USAGE_COST_FIELD_NUMBER = 7;
private double standardComputeUsageCost_;
/**
- * double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost"];
+ * double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.standard_compute_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=91
* @return The standardComputeUsageCost.
*/
@java.lang.Override
- public double getStandardComputeUsageCost() {
+ @java.lang.Deprecated public double getStandardComputeUsageCost() {
return standardComputeUsageCost_;
}
/**
- * double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost"];
+ * double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.standard_compute_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=91
* @param value The standardComputeUsageCost to set.
*/
private void setStandardComputeUsageCost(double value) {
@@ -3803,7 +3785,9 @@ private void setStandardComputeUsageCost(double value) {
standardComputeUsageCost_ = value;
}
/**
- * double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost"];
+ * double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.standard_compute_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=91
*/
private void clearStandardComputeUsageCost() {
@@ -3813,15 +3797,19 @@ private void clearStandardComputeUsageCost() {
public static final int DISCOUNT_AMOUNT_FIELD_NUMBER = 8;
private double discountAmount_;
/**
- * double discount_amount = 8 [json_name = "discountAmount"];
+ * double discount_amount = 8 [json_name = "discountAmount", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.discount_amount is deprecated.
+ * See app/v1/billing.proto;l=92
* @return The discountAmount.
*/
@java.lang.Override
- public double getDiscountAmount() {
+ @java.lang.Deprecated public double getDiscountAmount() {
return discountAmount_;
}
/**
- * double discount_amount = 8 [json_name = "discountAmount"];
+ * double discount_amount = 8 [json_name = "discountAmount", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.discount_amount is deprecated.
+ * See app/v1/billing.proto;l=92
* @param value The discountAmount to set.
*/
private void setDiscountAmount(double value) {
@@ -3829,7 +3817,9 @@ private void setDiscountAmount(double value) {
discountAmount_ = value;
}
/**
- * double discount_amount = 8 [json_name = "discountAmount"];
+ * double discount_amount = 8 [json_name = "discountAmount", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.discount_amount is deprecated.
+ * See app/v1/billing.proto;l=92
*/
private void clearDiscountAmount() {
@@ -3839,15 +3829,19 @@ private void clearDiscountAmount() {
public static final int TOTAL_USAGE_WITH_DISCOUNT_FIELD_NUMBER = 9;
private double totalUsageWithDiscount_;
/**
- * double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount"];
+ * double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.total_usage_with_discount is deprecated.
+ * See app/v1/billing.proto;l=93
* @return The totalUsageWithDiscount.
*/
@java.lang.Override
- public double getTotalUsageWithDiscount() {
+ @java.lang.Deprecated public double getTotalUsageWithDiscount() {
return totalUsageWithDiscount_;
}
/**
- * double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount"];
+ * double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.total_usage_with_discount is deprecated.
+ * See app/v1/billing.proto;l=93
* @param value The totalUsageWithDiscount to set.
*/
private void setTotalUsageWithDiscount(double value) {
@@ -3855,7 +3849,9 @@ private void setTotalUsageWithDiscount(double value) {
totalUsageWithDiscount_ = value;
}
/**
- * double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount"];
+ * double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.total_usage_with_discount is deprecated.
+ * See app/v1/billing.proto;l=93
*/
private void clearTotalUsageWithDiscount() {
@@ -3865,15 +3861,19 @@ private void clearTotalUsageWithDiscount() {
public static final int TOTAL_USAGE_WITHOUT_DISCOUNT_FIELD_NUMBER = 10;
private double totalUsageWithoutDiscount_;
/**
- * double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount"];
+ * double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.total_usage_without_discount is deprecated.
+ * See app/v1/billing.proto;l=94
* @return The totalUsageWithoutDiscount.
*/
@java.lang.Override
- public double getTotalUsageWithoutDiscount() {
+ @java.lang.Deprecated public double getTotalUsageWithoutDiscount() {
return totalUsageWithoutDiscount_;
}
/**
- * double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount"];
+ * double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.total_usage_without_discount is deprecated.
+ * See app/v1/billing.proto;l=94
* @param value The totalUsageWithoutDiscount to set.
*/
private void setTotalUsageWithoutDiscount(double value) {
@@ -3881,7 +3881,9 @@ private void setTotalUsageWithoutDiscount(double value) {
totalUsageWithoutDiscount_ = value;
}
/**
- * double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount"];
+ * double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.total_usage_without_discount is deprecated.
+ * See app/v1/billing.proto;l=94
*/
private void clearTotalUsageWithoutDiscount() {
@@ -3891,15 +3893,19 @@ private void clearTotalUsageWithoutDiscount() {
public static final int PER_MACHINE_USAGE_COST_FIELD_NUMBER = 11;
private double perMachineUsageCost_;
/**
- * double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost"];
+ * double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.per_machine_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=95
* @return The perMachineUsageCost.
*/
@java.lang.Override
- public double getPerMachineUsageCost() {
+ @java.lang.Deprecated public double getPerMachineUsageCost() {
return perMachineUsageCost_;
}
/**
- * double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost"];
+ * double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.per_machine_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=95
* @param value The perMachineUsageCost to set.
*/
private void setPerMachineUsageCost(double value) {
@@ -3907,7 +3913,9 @@ private void setPerMachineUsageCost(double value) {
perMachineUsageCost_ = value;
}
/**
- * double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost"];
+ * double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.per_machine_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=95
*/
private void clearPerMachineUsageCost() {
@@ -3917,15 +3925,19 @@ private void clearPerMachineUsageCost() {
public static final int BINARY_DATA_CLOUD_STORAGE_USAGE_COST_FIELD_NUMBER = 12;
private double binaryDataCloudStorageUsageCost_;
/**
- * double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost"];
+ * double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.binary_data_cloud_storage_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=96
* @return The binaryDataCloudStorageUsageCost.
*/
@java.lang.Override
- public double getBinaryDataCloudStorageUsageCost() {
+ @java.lang.Deprecated public double getBinaryDataCloudStorageUsageCost() {
return binaryDataCloudStorageUsageCost_;
}
/**
- * double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost"];
+ * double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.binary_data_cloud_storage_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=96
* @param value The binaryDataCloudStorageUsageCost to set.
*/
private void setBinaryDataCloudStorageUsageCost(double value) {
@@ -3933,7 +3945,9 @@ private void setBinaryDataCloudStorageUsageCost(double value) {
binaryDataCloudStorageUsageCost_ = value;
}
/**
- * double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost"];
+ * double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.binary_data_cloud_storage_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=96
*/
private void clearBinaryDataCloudStorageUsageCost() {
@@ -3943,15 +3957,19 @@ private void clearBinaryDataCloudStorageUsageCost() {
public static final int OTHER_CLOUD_STORAGE_USAGE_COST_FIELD_NUMBER = 13;
private double otherCloudStorageUsageCost_;
/**
- * double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost"];
+ * double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.other_cloud_storage_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=97
* @return The otherCloudStorageUsageCost.
*/
@java.lang.Override
- public double getOtherCloudStorageUsageCost() {
+ @java.lang.Deprecated public double getOtherCloudStorageUsageCost() {
return otherCloudStorageUsageCost_;
}
/**
- * double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost"];
+ * double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.other_cloud_storage_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=97
* @param value The otherCloudStorageUsageCost to set.
*/
private void setOtherCloudStorageUsageCost(double value) {
@@ -3959,7 +3977,9 @@ private void setOtherCloudStorageUsageCost(double value) {
otherCloudStorageUsageCost_ = value;
}
/**
- * double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost"];
+ * double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.other_cloud_storage_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=97
*/
private void clearOtherCloudStorageUsageCost() {
@@ -4158,308 +4178,516 @@ public Builder mergeEndDate(com.google.protobuf.Timestamp value) {
}
/**
- * double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost"];
+ * repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"];
+ */
+ @java.lang.Override
+ public java.util.List getResourceUsageCostsBySourceList() {
+ return java.util.Collections.unmodifiableList(
+ instance.getResourceUsageCostsBySourceList());
+ }
+ /**
+ * repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"];
+ */
+ @java.lang.Override
+ public int getResourceUsageCostsBySourceCount() {
+ return instance.getResourceUsageCostsBySourceCount();
+ }/**
+ * repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"];
+ */
+ @java.lang.Override
+ public viam.app.v1.Billing.ResourceUsageCostsBySource getResourceUsageCostsBySource(int index) {
+ return instance.getResourceUsageCostsBySource(index);
+ }
+ /**
+ * repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"];
+ */
+ public Builder setResourceUsageCostsBySource(
+ int index, viam.app.v1.Billing.ResourceUsageCostsBySource value) {
+ copyOnWrite();
+ instance.setResourceUsageCostsBySource(index, value);
+ return this;
+ }
+ /**
+ * repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"];
+ */
+ public Builder setResourceUsageCostsBySource(
+ int index, viam.app.v1.Billing.ResourceUsageCostsBySource.Builder builderForValue) {
+ copyOnWrite();
+ instance.setResourceUsageCostsBySource(index,
+ builderForValue.build());
+ return this;
+ }
+ /**
+ * repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"];
+ */
+ public Builder addResourceUsageCostsBySource(viam.app.v1.Billing.ResourceUsageCostsBySource value) {
+ copyOnWrite();
+ instance.addResourceUsageCostsBySource(value);
+ return this;
+ }
+ /**
+ * repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"];
+ */
+ public Builder addResourceUsageCostsBySource(
+ int index, viam.app.v1.Billing.ResourceUsageCostsBySource value) {
+ copyOnWrite();
+ instance.addResourceUsageCostsBySource(index, value);
+ return this;
+ }
+ /**
+ * repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"];
+ */
+ public Builder addResourceUsageCostsBySource(
+ viam.app.v1.Billing.ResourceUsageCostsBySource.Builder builderForValue) {
+ copyOnWrite();
+ instance.addResourceUsageCostsBySource(builderForValue.build());
+ return this;
+ }
+ /**
+ * repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"];
+ */
+ public Builder addResourceUsageCostsBySource(
+ int index, viam.app.v1.Billing.ResourceUsageCostsBySource.Builder builderForValue) {
+ copyOnWrite();
+ instance.addResourceUsageCostsBySource(index,
+ builderForValue.build());
+ return this;
+ }
+ /**
+ * repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"];
+ */
+ public Builder addAllResourceUsageCostsBySource(
+ java.lang.Iterable extends viam.app.v1.Billing.ResourceUsageCostsBySource> values) {
+ copyOnWrite();
+ instance.addAllResourceUsageCostsBySource(values);
+ return this;
+ }
+ /**
+ * repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"];
+ */
+ public Builder clearResourceUsageCostsBySource() {
+ copyOnWrite();
+ instance.clearResourceUsageCostsBySource();
+ return this;
+ }
+ /**
+ * repeated .viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14 [json_name = "resourceUsageCostsBySource"];
+ */
+ public Builder removeResourceUsageCostsBySource(int index) {
+ copyOnWrite();
+ instance.removeResourceUsageCostsBySource(index);
+ return this;
+ }
+
+ /**
+ * double subtotal = 15 [json_name = "subtotal"];
+ * @return The subtotal.
+ */
+ @java.lang.Override
+ public double getSubtotal() {
+ return instance.getSubtotal();
+ }
+ /**
+ * double subtotal = 15 [json_name = "subtotal"];
+ * @param value The subtotal to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSubtotal(double value) {
+ copyOnWrite();
+ instance.setSubtotal(value);
+ return this;
+ }
+ /**
+ * double subtotal = 15 [json_name = "subtotal"];
+ * @return This builder for chaining.
+ */
+ public Builder clearSubtotal() {
+ copyOnWrite();
+ instance.clearSubtotal();
+ return this;
+ }
+
+ /**
+ *
+ * all fields below are deprecated
+ *
+ *
+ * double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.cloud_storage_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=87
* @return The cloudStorageUsageCost.
*/
@java.lang.Override
- public double getCloudStorageUsageCost() {
+ @java.lang.Deprecated public double getCloudStorageUsageCost() {
return instance.getCloudStorageUsageCost();
}
/**
- * double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost"];
+ *
+ * all fields below are deprecated
+ *
+ *
+ * double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.cloud_storage_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=87
* @param value The cloudStorageUsageCost to set.
* @return This builder for chaining.
*/
- public Builder setCloudStorageUsageCost(double value) {
+ @java.lang.Deprecated public Builder setCloudStorageUsageCost(double value) {
copyOnWrite();
instance.setCloudStorageUsageCost(value);
return this;
}
/**
- * double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost"];
+ *
+ * all fields below are deprecated
+ *
+ *
+ * double cloud_storage_usage_cost = 3 [json_name = "cloudStorageUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.cloud_storage_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=87
* @return This builder for chaining.
*/
- public Builder clearCloudStorageUsageCost() {
+ @java.lang.Deprecated public Builder clearCloudStorageUsageCost() {
copyOnWrite();
instance.clearCloudStorageUsageCost();
return this;
}
/**
- * double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost"];
+ * double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.data_upload_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=88
* @return The dataUploadUsageCost.
*/
@java.lang.Override
- public double getDataUploadUsageCost() {
+ @java.lang.Deprecated public double getDataUploadUsageCost() {
return instance.getDataUploadUsageCost();
}
/**
- * double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost"];
+ * double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.data_upload_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=88
* @param value The dataUploadUsageCost to set.
* @return This builder for chaining.
*/
- public Builder setDataUploadUsageCost(double value) {
+ @java.lang.Deprecated public Builder setDataUploadUsageCost(double value) {
copyOnWrite();
instance.setDataUploadUsageCost(value);
return this;
}
/**
- * double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost"];
+ * double data_upload_usage_cost = 4 [json_name = "dataUploadUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.data_upload_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=88
* @return This builder for chaining.
*/
- public Builder clearDataUploadUsageCost() {
+ @java.lang.Deprecated public Builder clearDataUploadUsageCost() {
copyOnWrite();
instance.clearDataUploadUsageCost();
return this;
}
/**
- * double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost"];
+ * double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.data_egres_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=89
* @return The dataEgresUsageCost.
*/
@java.lang.Override
- public double getDataEgresUsageCost() {
+ @java.lang.Deprecated public double getDataEgresUsageCost() {
return instance.getDataEgresUsageCost();
}
/**
- * double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost"];
+ * double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.data_egres_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=89
* @param value The dataEgresUsageCost to set.
* @return This builder for chaining.
*/
- public Builder setDataEgresUsageCost(double value) {
+ @java.lang.Deprecated public Builder setDataEgresUsageCost(double value) {
copyOnWrite();
instance.setDataEgresUsageCost(value);
return this;
}
/**
- * double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost"];
+ * double data_egres_usage_cost = 5 [json_name = "dataEgresUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.data_egres_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=89
* @return This builder for chaining.
*/
- public Builder clearDataEgresUsageCost() {
+ @java.lang.Deprecated public Builder clearDataEgresUsageCost() {
copyOnWrite();
instance.clearDataEgresUsageCost();
return this;
}
/**
- * double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost"];
+ * double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.remote_control_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=90
* @return The remoteControlUsageCost.
*/
@java.lang.Override
- public double getRemoteControlUsageCost() {
+ @java.lang.Deprecated public double getRemoteControlUsageCost() {
return instance.getRemoteControlUsageCost();
}
/**
- * double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost"];
+ * double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.remote_control_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=90
* @param value The remoteControlUsageCost to set.
* @return This builder for chaining.
*/
- public Builder setRemoteControlUsageCost(double value) {
+ @java.lang.Deprecated public Builder setRemoteControlUsageCost(double value) {
copyOnWrite();
instance.setRemoteControlUsageCost(value);
return this;
}
/**
- * double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost"];
+ * double remote_control_usage_cost = 6 [json_name = "remoteControlUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.remote_control_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=90
* @return This builder for chaining.
*/
- public Builder clearRemoteControlUsageCost() {
+ @java.lang.Deprecated public Builder clearRemoteControlUsageCost() {
copyOnWrite();
instance.clearRemoteControlUsageCost();
return this;
}
/**
- * double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost"];
+ * double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.standard_compute_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=91
* @return The standardComputeUsageCost.
*/
@java.lang.Override
- public double getStandardComputeUsageCost() {
+ @java.lang.Deprecated public double getStandardComputeUsageCost() {
return instance.getStandardComputeUsageCost();
}
/**
- * double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost"];
+ * double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.standard_compute_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=91
* @param value The standardComputeUsageCost to set.
* @return This builder for chaining.
*/
- public Builder setStandardComputeUsageCost(double value) {
+ @java.lang.Deprecated public Builder setStandardComputeUsageCost(double value) {
copyOnWrite();
instance.setStandardComputeUsageCost(value);
return this;
}
/**
- * double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost"];
+ * double standard_compute_usage_cost = 7 [json_name = "standardComputeUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.standard_compute_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=91
* @return This builder for chaining.
*/
- public Builder clearStandardComputeUsageCost() {
+ @java.lang.Deprecated public Builder clearStandardComputeUsageCost() {
copyOnWrite();
instance.clearStandardComputeUsageCost();
return this;
}
/**
- * double discount_amount = 8 [json_name = "discountAmount"];
+ * double discount_amount = 8 [json_name = "discountAmount", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.discount_amount is deprecated.
+ * See app/v1/billing.proto;l=92
* @return The discountAmount.
*/
@java.lang.Override
- public double getDiscountAmount() {
+ @java.lang.Deprecated public double getDiscountAmount() {
return instance.getDiscountAmount();
}
/**
- * double discount_amount = 8 [json_name = "discountAmount"];
+ * double discount_amount = 8 [json_name = "discountAmount", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.discount_amount is deprecated.
+ * See app/v1/billing.proto;l=92
* @param value The discountAmount to set.
* @return This builder for chaining.
*/
- public Builder setDiscountAmount(double value) {
+ @java.lang.Deprecated public Builder setDiscountAmount(double value) {
copyOnWrite();
instance.setDiscountAmount(value);
return this;
}
/**
- * double discount_amount = 8 [json_name = "discountAmount"];
+ * double discount_amount = 8 [json_name = "discountAmount", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.discount_amount is deprecated.
+ * See app/v1/billing.proto;l=92
* @return This builder for chaining.
*/
- public Builder clearDiscountAmount() {
+ @java.lang.Deprecated public Builder clearDiscountAmount() {
copyOnWrite();
instance.clearDiscountAmount();
return this;
}
/**
- * double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount"];
+ * double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.total_usage_with_discount is deprecated.
+ * See app/v1/billing.proto;l=93
* @return The totalUsageWithDiscount.
*/
@java.lang.Override
- public double getTotalUsageWithDiscount() {
+ @java.lang.Deprecated public double getTotalUsageWithDiscount() {
return instance.getTotalUsageWithDiscount();
}
/**
- * double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount"];
+ * double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.total_usage_with_discount is deprecated.
+ * See app/v1/billing.proto;l=93
* @param value The totalUsageWithDiscount to set.
* @return This builder for chaining.
*/
- public Builder setTotalUsageWithDiscount(double value) {
+ @java.lang.Deprecated public Builder setTotalUsageWithDiscount(double value) {
copyOnWrite();
instance.setTotalUsageWithDiscount(value);
return this;
}
/**
- * double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount"];
+ * double total_usage_with_discount = 9 [json_name = "totalUsageWithDiscount", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.total_usage_with_discount is deprecated.
+ * See app/v1/billing.proto;l=93
* @return This builder for chaining.
*/
- public Builder clearTotalUsageWithDiscount() {
+ @java.lang.Deprecated public Builder clearTotalUsageWithDiscount() {
copyOnWrite();
instance.clearTotalUsageWithDiscount();
return this;
}
/**
- * double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount"];
+ * double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.total_usage_without_discount is deprecated.
+ * See app/v1/billing.proto;l=94
* @return The totalUsageWithoutDiscount.
*/
@java.lang.Override
- public double getTotalUsageWithoutDiscount() {
+ @java.lang.Deprecated public double getTotalUsageWithoutDiscount() {
return instance.getTotalUsageWithoutDiscount();
}
/**
- * double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount"];
+ * double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.total_usage_without_discount is deprecated.
+ * See app/v1/billing.proto;l=94
* @param value The totalUsageWithoutDiscount to set.
* @return This builder for chaining.
*/
- public Builder setTotalUsageWithoutDiscount(double value) {
+ @java.lang.Deprecated public Builder setTotalUsageWithoutDiscount(double value) {
copyOnWrite();
instance.setTotalUsageWithoutDiscount(value);
return this;
}
/**
- * double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount"];
+ * double total_usage_without_discount = 10 [json_name = "totalUsageWithoutDiscount", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.total_usage_without_discount is deprecated.
+ * See app/v1/billing.proto;l=94
* @return This builder for chaining.
*/
- public Builder clearTotalUsageWithoutDiscount() {
+ @java.lang.Deprecated public Builder clearTotalUsageWithoutDiscount() {
copyOnWrite();
instance.clearTotalUsageWithoutDiscount();
return this;
}
/**
- * double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost"];
+ * double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.per_machine_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=95
* @return The perMachineUsageCost.
*/
@java.lang.Override
- public double getPerMachineUsageCost() {
+ @java.lang.Deprecated public double getPerMachineUsageCost() {
return instance.getPerMachineUsageCost();
}
/**
- * double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost"];
+ * double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.per_machine_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=95
* @param value The perMachineUsageCost to set.
* @return This builder for chaining.
*/
- public Builder setPerMachineUsageCost(double value) {
+ @java.lang.Deprecated public Builder setPerMachineUsageCost(double value) {
copyOnWrite();
instance.setPerMachineUsageCost(value);
return this;
}
/**
- * double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost"];
+ * double per_machine_usage_cost = 11 [json_name = "perMachineUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.per_machine_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=95
* @return This builder for chaining.
*/
- public Builder clearPerMachineUsageCost() {
+ @java.lang.Deprecated public Builder clearPerMachineUsageCost() {
copyOnWrite();
instance.clearPerMachineUsageCost();
return this;
}
/**
- * double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost"];
+ * double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.binary_data_cloud_storage_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=96
* @return The binaryDataCloudStorageUsageCost.
*/
@java.lang.Override
- public double getBinaryDataCloudStorageUsageCost() {
+ @java.lang.Deprecated public double getBinaryDataCloudStorageUsageCost() {
return instance.getBinaryDataCloudStorageUsageCost();
}
/**
- * double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost"];
+ * double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.binary_data_cloud_storage_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=96
* @param value The binaryDataCloudStorageUsageCost to set.
* @return This builder for chaining.
*/
- public Builder setBinaryDataCloudStorageUsageCost(double value) {
+ @java.lang.Deprecated public Builder setBinaryDataCloudStorageUsageCost(double value) {
copyOnWrite();
instance.setBinaryDataCloudStorageUsageCost(value);
return this;
}
/**
- * double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost"];
+ * double binary_data_cloud_storage_usage_cost = 12 [json_name = "binaryDataCloudStorageUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.binary_data_cloud_storage_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=96
* @return This builder for chaining.
*/
- public Builder clearBinaryDataCloudStorageUsageCost() {
+ @java.lang.Deprecated public Builder clearBinaryDataCloudStorageUsageCost() {
copyOnWrite();
instance.clearBinaryDataCloudStorageUsageCost();
return this;
}
/**
- * double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost"];
+ * double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.other_cloud_storage_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=97
* @return The otherCloudStorageUsageCost.
*/
@java.lang.Override
- public double getOtherCloudStorageUsageCost() {
+ @java.lang.Deprecated public double getOtherCloudStorageUsageCost() {
return instance.getOtherCloudStorageUsageCost();
}
/**
- * double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost"];
+ * double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.other_cloud_storage_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=97
* @param value The otherCloudStorageUsageCost to set.
* @return This builder for chaining.
*/
- public Builder setOtherCloudStorageUsageCost(double value) {
+ @java.lang.Deprecated public Builder setOtherCloudStorageUsageCost(double value) {
copyOnWrite();
instance.setOtherCloudStorageUsageCost(value);
return this;
}
/**
- * double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost"];
+ * double other_cloud_storage_usage_cost = 13 [json_name = "otherCloudStorageUsageCost", deprecated = true];
+ * @deprecated viam.app.v1.GetCurrentMonthUsageResponse.other_cloud_storage_usage_cost is deprecated.
+ * See app/v1/billing.proto;l=97
* @return This builder for chaining.
*/
- public Builder clearOtherCloudStorageUsageCost() {
+ @java.lang.Deprecated public Builder clearOtherCloudStorageUsageCost() {
copyOnWrite();
instance.clearOtherCloudStorageUsageCost();
return this;
@@ -4495,11 +4723,14 @@ protected final java.lang.Object dynamicMethod(
"perMachineUsageCost_",
"binaryDataCloudStorageUsageCost_",
"otherCloudStorageUsageCost_",
+ "resourceUsageCostsBySource_",
+ viam.app.v1.Billing.ResourceUsageCostsBySource.class,
+ "subtotal_",
};
java.lang.String info =
- "\u0000\r\u0000\u0001\u0001\r\r\u0000\u0000\u0000\u0001\u1009\u0000\u0002\u1009\u0001" +
- "\u0003\u0000\u0004\u0000\u0005\u0000\u0006\u0000\u0007\u0000\b\u0000\t\u0000\n\u0000" +
- "\u000b\u0000\f\u0000\r\u0000";
+ "\u0000\u000f\u0000\u0001\u0001\u000f\u000f\u0000\u0001\u0000\u0001\u1009\u0000\u0002" +
+ "\u1009\u0001\u0003\u0000\u0004\u0000\u0005\u0000\u0006\u0000\u0007\u0000\b\u0000" +
+ "\t\u0000\n\u0000\u000b\u0000\f\u0000\r\u0000\u000e\u001b\u000f\u0000";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
diff --git a/core/sdk/src/main/resources/protofds/viam.api b/core/sdk/src/main/resources/protofds/viam.api
index 35ec9fcb4..bc59547ae 100644
Binary files a/core/sdk/src/main/resources/protofds/viam.api and b/core/sdk/src/main/resources/protofds/viam.api differ