yandex.cloud.api.billing.v1.BillableObjectOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/billing/v1/billable_object.proto
package yandex.cloud.api.billing.v1;
public final class BillableObjectOuterClass {
private BillableObjectOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface BillableObjectOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.billing.v1.BillableObject)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the object in other service.
*
*
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
*
* ID of the object in other service.
*
*
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
*
* Billable object type. Can be one of the following:
* * `cloud`
*
*
* string type = 2;
* @return The type.
*/
java.lang.String getType();
/**
*
* Billable object type. Can be one of the following:
* * `cloud`
*
*
* string type = 2;
* @return The bytes for type.
*/
com.google.protobuf.ByteString
getTypeBytes();
}
/**
*
* Represents a link to an object in other service.
* This object is being billed in the scope of a billing account.
*
*
* Protobuf type {@code yandex.cloud.billing.v1.BillableObject}
*/
public static final class BillableObject extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.billing.v1.BillableObject)
BillableObjectOrBuilder {
private static final long serialVersionUID = 0L;
// Use BillableObject.newBuilder() to construct.
private BillableObject(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BillableObject() {
id_ = "";
type_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BillableObject();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BillableObject(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
type_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.billing.v1.BillableObjectOuterClass.internal_static_yandex_cloud_billing_v1_BillableObject_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.billing.v1.BillableObjectOuterClass.internal_static_yandex_cloud_billing_v1_BillableObject_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject.class, yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* ID of the object in other service.
*
*
* string id = 1;
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
*
* ID of the object in other service.
*
*
* string id = 1;
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 2;
private volatile java.lang.Object type_;
/**
*
* Billable object type. Can be one of the following:
* * `cloud`
*
*
* string type = 2;
* @return The type.
*/
@java.lang.Override
public java.lang.String getType() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
}
}
/**
*
* Billable object type. Can be one of the following:
* * `cloud`
*
*
* string type = 2;
* @return The bytes for type.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject)) {
return super.equals(obj);
}
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject other = (yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getType()
.equals(other.getType())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Represents a link to an object in other service.
* This object is being billed in the scope of a billing account.
*
*
* Protobuf type {@code yandex.cloud.billing.v1.BillableObject}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.billing.v1.BillableObject)
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.billing.v1.BillableObjectOuterClass.internal_static_yandex_cloud_billing_v1_BillableObject_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.billing.v1.BillableObjectOuterClass.internal_static_yandex_cloud_billing_v1_BillableObject_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject.class, yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject.Builder.class);
}
// Construct using yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
type_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.billing.v1.BillableObjectOuterClass.internal_static_yandex_cloud_billing_v1_BillableObject_descriptor;
}
@java.lang.Override
public yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject getDefaultInstanceForType() {
return yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject build() {
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject buildPartial() {
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject result = new yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject(this);
result.id_ = id_;
result.type_ = type_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject) {
return mergeFrom((yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject other) {
if (other == yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getType().isEmpty()) {
type_ = other.type_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object id_ = "";
/**
*
* ID of the object in other service.
*
*
* string id = 1;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the object in other service.
*
*
* string id = 1;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the object in other service.
*
*
* string id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* ID of the object in other service.
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* ID of the object in other service.
*
*
* string id = 1;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private java.lang.Object type_ = "";
/**
*
* Billable object type. Can be one of the following:
* * `cloud`
*
*
* string type = 2;
* @return The type.
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Billable object type. Can be one of the following:
* * `cloud`
*
*
* string type = 2;
* @return The bytes for type.
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Billable object type. Can be one of the following:
* * `cloud`
*
*
* string type = 2;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
return this;
}
/**
*
* Billable object type. Can be one of the following:
* * `cloud`
*
*
* string type = 2;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
onChanged();
return this;
}
/**
*
* Billable object type. Can be one of the following:
* * `cloud`
*
*
* string type = 2;
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
type_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.billing.v1.BillableObject)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.billing.v1.BillableObject)
private static final yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject();
}
public static yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BillableObject parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BillableObject(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BillableObjectBindingOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.billing.v1.BillableObjectBinding)
com.google.protobuf.MessageOrBuilder {
/**
*
* Timestamp when binding was created.
*
*
* .google.protobuf.Timestamp effective_time = 1;
* @return Whether the effectiveTime field is set.
*/
boolean hasEffectiveTime();
/**
*
* Timestamp when binding was created.
*
*
* .google.protobuf.Timestamp effective_time = 1;
* @return The effectiveTime.
*/
com.google.protobuf.Timestamp getEffectiveTime();
/**
*
* Timestamp when binding was created.
*
*
* .google.protobuf.Timestamp effective_time = 1;
*/
com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder();
/**
*
* Object that is bound to billing account.
*
*
* .yandex.cloud.billing.v1.BillableObject billable_object = 2;
* @return Whether the billableObject field is set.
*/
boolean hasBillableObject();
/**
*
* Object that is bound to billing account.
*
*
* .yandex.cloud.billing.v1.BillableObject billable_object = 2;
* @return The billableObject.
*/
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject getBillableObject();
/**
*
* Object that is bound to billing account.
*
*
* .yandex.cloud.billing.v1.BillableObject billable_object = 2;
*/
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectOrBuilder getBillableObjectOrBuilder();
}
/**
*
* Represents a binding of the BillableObject to a BillingAccount.
*
*
* Protobuf type {@code yandex.cloud.billing.v1.BillableObjectBinding}
*/
public static final class BillableObjectBinding extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.billing.v1.BillableObjectBinding)
BillableObjectBindingOrBuilder {
private static final long serialVersionUID = 0L;
// Use BillableObjectBinding.newBuilder() to construct.
private BillableObjectBinding(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BillableObjectBinding() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BillableObjectBinding();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BillableObjectBinding(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (effectiveTime_ != null) {
subBuilder = effectiveTime_.toBuilder();
}
effectiveTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(effectiveTime_);
effectiveTime_ = subBuilder.buildPartial();
}
break;
}
case 18: {
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject.Builder subBuilder = null;
if (billableObject_ != null) {
subBuilder = billableObject_.toBuilder();
}
billableObject_ = input.readMessage(yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(billableObject_);
billableObject_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.billing.v1.BillableObjectOuterClass.internal_static_yandex_cloud_billing_v1_BillableObjectBinding_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.billing.v1.BillableObjectOuterClass.internal_static_yandex_cloud_billing_v1_BillableObjectBinding_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding.class, yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding.Builder.class);
}
public static final int EFFECTIVE_TIME_FIELD_NUMBER = 1;
private com.google.protobuf.Timestamp effectiveTime_;
/**
*
* Timestamp when binding was created.
*
*
* .google.protobuf.Timestamp effective_time = 1;
* @return Whether the effectiveTime field is set.
*/
@java.lang.Override
public boolean hasEffectiveTime() {
return effectiveTime_ != null;
}
/**
*
* Timestamp when binding was created.
*
*
* .google.protobuf.Timestamp effective_time = 1;
* @return The effectiveTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getEffectiveTime() {
return effectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_;
}
/**
*
* Timestamp when binding was created.
*
*
* .google.protobuf.Timestamp effective_time = 1;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() {
return getEffectiveTime();
}
public static final int BILLABLE_OBJECT_FIELD_NUMBER = 2;
private yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject billableObject_;
/**
*
* Object that is bound to billing account.
*
*
* .yandex.cloud.billing.v1.BillableObject billable_object = 2;
* @return Whether the billableObject field is set.
*/
@java.lang.Override
public boolean hasBillableObject() {
return billableObject_ != null;
}
/**
*
* Object that is bound to billing account.
*
*
* .yandex.cloud.billing.v1.BillableObject billable_object = 2;
* @return The billableObject.
*/
@java.lang.Override
public yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject getBillableObject() {
return billableObject_ == null ? yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject.getDefaultInstance() : billableObject_;
}
/**
*
* Object that is bound to billing account.
*
*
* .yandex.cloud.billing.v1.BillableObject billable_object = 2;
*/
@java.lang.Override
public yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectOrBuilder getBillableObjectOrBuilder() {
return getBillableObject();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (effectiveTime_ != null) {
output.writeMessage(1, getEffectiveTime());
}
if (billableObject_ != null) {
output.writeMessage(2, getBillableObject());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (effectiveTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getEffectiveTime());
}
if (billableObject_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getBillableObject());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding)) {
return super.equals(obj);
}
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding other = (yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding) obj;
if (hasEffectiveTime() != other.hasEffectiveTime()) return false;
if (hasEffectiveTime()) {
if (!getEffectiveTime()
.equals(other.getEffectiveTime())) return false;
}
if (hasBillableObject() != other.hasBillableObject()) return false;
if (hasBillableObject()) {
if (!getBillableObject()
.equals(other.getBillableObject())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasEffectiveTime()) {
hash = (37 * hash) + EFFECTIVE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getEffectiveTime().hashCode();
}
if (hasBillableObject()) {
hash = (37 * hash) + BILLABLE_OBJECT_FIELD_NUMBER;
hash = (53 * hash) + getBillableObject().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Represents a binding of the BillableObject to a BillingAccount.
*
*
* Protobuf type {@code yandex.cloud.billing.v1.BillableObjectBinding}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.billing.v1.BillableObjectBinding)
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBindingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.billing.v1.BillableObjectOuterClass.internal_static_yandex_cloud_billing_v1_BillableObjectBinding_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.billing.v1.BillableObjectOuterClass.internal_static_yandex_cloud_billing_v1_BillableObjectBinding_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding.class, yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding.Builder.class);
}
// Construct using yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (effectiveTimeBuilder_ == null) {
effectiveTime_ = null;
} else {
effectiveTime_ = null;
effectiveTimeBuilder_ = null;
}
if (billableObjectBuilder_ == null) {
billableObject_ = null;
} else {
billableObject_ = null;
billableObjectBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.billing.v1.BillableObjectOuterClass.internal_static_yandex_cloud_billing_v1_BillableObjectBinding_descriptor;
}
@java.lang.Override
public yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding getDefaultInstanceForType() {
return yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding build() {
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding buildPartial() {
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding result = new yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding(this);
if (effectiveTimeBuilder_ == null) {
result.effectiveTime_ = effectiveTime_;
} else {
result.effectiveTime_ = effectiveTimeBuilder_.build();
}
if (billableObjectBuilder_ == null) {
result.billableObject_ = billableObject_;
} else {
result.billableObject_ = billableObjectBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding) {
return mergeFrom((yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding other) {
if (other == yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding.getDefaultInstance()) return this;
if (other.hasEffectiveTime()) {
mergeEffectiveTime(other.getEffectiveTime());
}
if (other.hasBillableObject()) {
mergeBillableObject(other.getBillableObject());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.Timestamp effectiveTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> effectiveTimeBuilder_;
/**
*
* Timestamp when binding was created.
*
*
* .google.protobuf.Timestamp effective_time = 1;
* @return Whether the effectiveTime field is set.
*/
public boolean hasEffectiveTime() {
return effectiveTimeBuilder_ != null || effectiveTime_ != null;
}
/**
*
* Timestamp when binding was created.
*
*
* .google.protobuf.Timestamp effective_time = 1;
* @return The effectiveTime.
*/
public com.google.protobuf.Timestamp getEffectiveTime() {
if (effectiveTimeBuilder_ == null) {
return effectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_;
} else {
return effectiveTimeBuilder_.getMessage();
}
}
/**
*
* Timestamp when binding was created.
*
*
* .google.protobuf.Timestamp effective_time = 1;
*/
public Builder setEffectiveTime(com.google.protobuf.Timestamp value) {
if (effectiveTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
effectiveTime_ = value;
onChanged();
} else {
effectiveTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
* Timestamp when binding was created.
*
*
* .google.protobuf.Timestamp effective_time = 1;
*/
public Builder setEffectiveTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (effectiveTimeBuilder_ == null) {
effectiveTime_ = builderForValue.build();
onChanged();
} else {
effectiveTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Timestamp when binding was created.
*
*
* .google.protobuf.Timestamp effective_time = 1;
*/
public Builder mergeEffectiveTime(com.google.protobuf.Timestamp value) {
if (effectiveTimeBuilder_ == null) {
if (effectiveTime_ != null) {
effectiveTime_ =
com.google.protobuf.Timestamp.newBuilder(effectiveTime_).mergeFrom(value).buildPartial();
} else {
effectiveTime_ = value;
}
onChanged();
} else {
effectiveTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Timestamp when binding was created.
*
*
* .google.protobuf.Timestamp effective_time = 1;
*/
public Builder clearEffectiveTime() {
if (effectiveTimeBuilder_ == null) {
effectiveTime_ = null;
onChanged();
} else {
effectiveTime_ = null;
effectiveTimeBuilder_ = null;
}
return this;
}
/**
*
* Timestamp when binding was created.
*
*
* .google.protobuf.Timestamp effective_time = 1;
*/
public com.google.protobuf.Timestamp.Builder getEffectiveTimeBuilder() {
onChanged();
return getEffectiveTimeFieldBuilder().getBuilder();
}
/**
*
* Timestamp when binding was created.
*
*
* .google.protobuf.Timestamp effective_time = 1;
*/
public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() {
if (effectiveTimeBuilder_ != null) {
return effectiveTimeBuilder_.getMessageOrBuilder();
} else {
return effectiveTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_;
}
}
/**
*
* Timestamp when binding was created.
*
*
* .google.protobuf.Timestamp effective_time = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getEffectiveTimeFieldBuilder() {
if (effectiveTimeBuilder_ == null) {
effectiveTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getEffectiveTime(),
getParentForChildren(),
isClean());
effectiveTime_ = null;
}
return effectiveTimeBuilder_;
}
private yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject billableObject_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject, yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject.Builder, yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectOrBuilder> billableObjectBuilder_;
/**
*
* Object that is bound to billing account.
*
*
* .yandex.cloud.billing.v1.BillableObject billable_object = 2;
* @return Whether the billableObject field is set.
*/
public boolean hasBillableObject() {
return billableObjectBuilder_ != null || billableObject_ != null;
}
/**
*
* Object that is bound to billing account.
*
*
* .yandex.cloud.billing.v1.BillableObject billable_object = 2;
* @return The billableObject.
*/
public yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject getBillableObject() {
if (billableObjectBuilder_ == null) {
return billableObject_ == null ? yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject.getDefaultInstance() : billableObject_;
} else {
return billableObjectBuilder_.getMessage();
}
}
/**
*
* Object that is bound to billing account.
*
*
* .yandex.cloud.billing.v1.BillableObject billable_object = 2;
*/
public Builder setBillableObject(yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject value) {
if (billableObjectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
billableObject_ = value;
onChanged();
} else {
billableObjectBuilder_.setMessage(value);
}
return this;
}
/**
*
* Object that is bound to billing account.
*
*
* .yandex.cloud.billing.v1.BillableObject billable_object = 2;
*/
public Builder setBillableObject(
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject.Builder builderForValue) {
if (billableObjectBuilder_ == null) {
billableObject_ = builderForValue.build();
onChanged();
} else {
billableObjectBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Object that is bound to billing account.
*
*
* .yandex.cloud.billing.v1.BillableObject billable_object = 2;
*/
public Builder mergeBillableObject(yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject value) {
if (billableObjectBuilder_ == null) {
if (billableObject_ != null) {
billableObject_ =
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject.newBuilder(billableObject_).mergeFrom(value).buildPartial();
} else {
billableObject_ = value;
}
onChanged();
} else {
billableObjectBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Object that is bound to billing account.
*
*
* .yandex.cloud.billing.v1.BillableObject billable_object = 2;
*/
public Builder clearBillableObject() {
if (billableObjectBuilder_ == null) {
billableObject_ = null;
onChanged();
} else {
billableObject_ = null;
billableObjectBuilder_ = null;
}
return this;
}
/**
*
* Object that is bound to billing account.
*
*
* .yandex.cloud.billing.v1.BillableObject billable_object = 2;
*/
public yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject.Builder getBillableObjectBuilder() {
onChanged();
return getBillableObjectFieldBuilder().getBuilder();
}
/**
*
* Object that is bound to billing account.
*
*
* .yandex.cloud.billing.v1.BillableObject billable_object = 2;
*/
public yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectOrBuilder getBillableObjectOrBuilder() {
if (billableObjectBuilder_ != null) {
return billableObjectBuilder_.getMessageOrBuilder();
} else {
return billableObject_ == null ?
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject.getDefaultInstance() : billableObject_;
}
}
/**
*
* Object that is bound to billing account.
*
*
* .yandex.cloud.billing.v1.BillableObject billable_object = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject, yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject.Builder, yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectOrBuilder>
getBillableObjectFieldBuilder() {
if (billableObjectBuilder_ == null) {
billableObjectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject, yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject.Builder, yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectOrBuilder>(
getBillableObject(),
getParentForChildren(),
isClean());
billableObject_ = null;
}
return billableObjectBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.billing.v1.BillableObjectBinding)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.billing.v1.BillableObjectBinding)
private static final yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding();
}
public static yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BillableObjectBinding parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BillableObjectBinding(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_billing_v1_BillableObject_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_billing_v1_BillableObject_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_billing_v1_BillableObjectBinding_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_billing_v1_BillableObjectBinding_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n-yandex/cloud/billing/v1/billable_objec" +
"t.proto\022\027yandex.cloud.billing.v1\032\037google" +
"/protobuf/timestamp.proto\"*\n\016BillableObj" +
"ect\022\n\n\002id\030\001 \001(\t\022\014\n\004type\030\002 \001(\t\"\215\001\n\025Billab" +
"leObjectBinding\0222\n\016effective_time\030\001 \001(\0132" +
"\032.google.protobuf.Timestamp\022@\n\017billable_" +
"object\030\002 \001(\0132\'.yandex.cloud.billing.v1.B" +
"illableObjectBb\n\033yandex.cloud.api.billin" +
"g.v1ZCgithub.com/yandex-cloud/go-genprot" +
"o/yandex/cloud/billing/v1;billingb\006proto" +
"3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.TimestampProto.getDescriptor(),
});
internal_static_yandex_cloud_billing_v1_BillableObject_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_billing_v1_BillableObject_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_billing_v1_BillableObject_descriptor,
new java.lang.String[] { "Id", "Type", });
internal_static_yandex_cloud_billing_v1_BillableObjectBinding_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_yandex_cloud_billing_v1_BillableObjectBinding_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_billing_v1_BillableObjectBinding_descriptor,
new java.lang.String[] { "EffectiveTime", "BillableObject", });
com.google.protobuf.TimestampProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy