yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/billing/v1/billing_account_service.proto
package yandex.cloud.api.billing.v1;
public final class BillingAccountServiceOuterClass {
private BillingAccountServiceOuterClass() {}
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 GetBillingAccountRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.billing.v1.GetBillingAccountRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the billing account to return.
* To get the billing account ID, use [BillingAccountService.List] request.
*
*
* string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The id.
*/
java.lang.String getId();
/**
*
* ID of the billing account to return.
* To get the billing account ID, use [BillingAccountService.List] request.
*
*
* string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.billing.v1.GetBillingAccountRequest}
*/
public static final class GetBillingAccountRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.billing.v1.GetBillingAccountRequest)
GetBillingAccountRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetBillingAccountRequest.newBuilder() to construct.
private GetBillingAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetBillingAccountRequest() {
id_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetBillingAccountRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetBillingAccountRequest(
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;
}
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.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_GetBillingAccountRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_GetBillingAccountRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.GetBillingAccountRequest.class, yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.GetBillingAccountRequest.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* ID of the billing account to return.
* To get the billing account ID, use [BillingAccountService.List] request.
*
*
* string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @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 billing account to return.
* To get the billing account ID, use [BillingAccountService.List] request.
*
*
* string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @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;
}
}
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_);
}
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_);
}
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.BillingAccountServiceOuterClass.GetBillingAccountRequest)) {
return super.equals(obj);
}
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.GetBillingAccountRequest other = (yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.GetBillingAccountRequest) obj;
if (!getId()
.equals(other.getId())) 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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.GetBillingAccountRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.GetBillingAccountRequest 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.BillingAccountServiceOuterClass.GetBillingAccountRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.GetBillingAccountRequest 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.BillingAccountServiceOuterClass.GetBillingAccountRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.GetBillingAccountRequest 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.BillingAccountServiceOuterClass.GetBillingAccountRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.GetBillingAccountRequest 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.BillingAccountServiceOuterClass.GetBillingAccountRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.GetBillingAccountRequest 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.BillingAccountServiceOuterClass.GetBillingAccountRequest 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.BillingAccountServiceOuterClass.GetBillingAccountRequest 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.BillingAccountServiceOuterClass.GetBillingAccountRequest 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;
}
/**
* Protobuf type {@code yandex.cloud.billing.v1.GetBillingAccountRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.billing.v1.GetBillingAccountRequest)
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.GetBillingAccountRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_GetBillingAccountRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_GetBillingAccountRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.GetBillingAccountRequest.class, yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.GetBillingAccountRequest.Builder.class);
}
// Construct using yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.GetBillingAccountRequest.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_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_GetBillingAccountRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.GetBillingAccountRequest getDefaultInstanceForType() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.GetBillingAccountRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.GetBillingAccountRequest build() {
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.GetBillingAccountRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.GetBillingAccountRequest buildPartial() {
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.GetBillingAccountRequest result = new yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.GetBillingAccountRequest(this);
result.id_ = id_;
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.BillingAccountServiceOuterClass.GetBillingAccountRequest) {
return mergeFrom((yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.GetBillingAccountRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.GetBillingAccountRequest other) {
if (other == yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.GetBillingAccountRequest.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
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.BillingAccountServiceOuterClass.GetBillingAccountRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.GetBillingAccountRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object id_ = "";
/**
*
* ID of the billing account to return.
* To get the billing account ID, use [BillingAccountService.List] request.
*
*
* string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @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 billing account to return.
* To get the billing account ID, use [BillingAccountService.List] request.
*
*
* string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @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 billing account to return.
* To get the billing account ID, use [BillingAccountService.List] request.
*
*
* string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @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 billing account to return.
* To get the billing account ID, use [BillingAccountService.List] request.
*
*
* string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* ID of the billing account to return.
* To get the billing account ID, use [BillingAccountService.List] request.
*
*
* string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @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;
}
@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.GetBillingAccountRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.billing.v1.GetBillingAccountRequest)
private static final yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.GetBillingAccountRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.GetBillingAccountRequest();
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.GetBillingAccountRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetBillingAccountRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetBillingAccountRequest(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.BillingAccountServiceOuterClass.GetBillingAccountRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListBillingAccountsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.billing.v1.ListBillingAccountsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size],
* the service returns a [ListBillingAccountsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return The pageSize.
*/
long getPageSize();
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListBillingAccountsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
java.lang.String getPageToken();
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListBillingAccountsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
com.google.protobuf.ByteString
getPageTokenBytes();
}
/**
* Protobuf type {@code yandex.cloud.billing.v1.ListBillingAccountsRequest}
*/
public static final class ListBillingAccountsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.billing.v1.ListBillingAccountsRequest)
ListBillingAccountsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListBillingAccountsRequest.newBuilder() to construct.
private ListBillingAccountsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListBillingAccountsRequest() {
pageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListBillingAccountsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListBillingAccountsRequest(
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 16: {
pageSize_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
pageToken_ = 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.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListBillingAccountsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListBillingAccountsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsRequest.class, yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsRequest.Builder.class);
}
public static final int PAGE_SIZE_FIELD_NUMBER = 2;
private long pageSize_;
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size],
* the service returns a [ListBillingAccountsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
private volatile java.lang.Object pageToken_;
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListBillingAccountsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
@java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
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();
pageToken_ = s;
return s;
}
}
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListBillingAccountsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = 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 (pageSize_ != 0L) {
output.writeInt64(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (pageSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
}
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.BillingAccountServiceOuterClass.ListBillingAccountsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsRequest other = (yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsRequest) obj;
if (getPageSize()
!= other.getPageSize()) return false;
if (!getPageToken()
.equals(other.getPageToken())) 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) + PAGE_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPageSize());
hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getPageToken().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsRequest 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.BillingAccountServiceOuterClass.ListBillingAccountsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsRequest 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.BillingAccountServiceOuterClass.ListBillingAccountsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsRequest 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.BillingAccountServiceOuterClass.ListBillingAccountsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsRequest 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.BillingAccountServiceOuterClass.ListBillingAccountsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsRequest 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.BillingAccountServiceOuterClass.ListBillingAccountsRequest 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.BillingAccountServiceOuterClass.ListBillingAccountsRequest 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.BillingAccountServiceOuterClass.ListBillingAccountsRequest 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;
}
/**
* Protobuf type {@code yandex.cloud.billing.v1.ListBillingAccountsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.billing.v1.ListBillingAccountsRequest)
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListBillingAccountsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListBillingAccountsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsRequest.class, yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsRequest.Builder.class);
}
// Construct using yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsRequest.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();
pageSize_ = 0L;
pageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListBillingAccountsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsRequest getDefaultInstanceForType() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsRequest build() {
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsRequest buildPartial() {
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsRequest result = new yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsRequest(this);
result.pageSize_ = pageSize_;
result.pageToken_ = pageToken_;
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.BillingAccountServiceOuterClass.ListBillingAccountsRequest) {
return mergeFrom((yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsRequest other) {
if (other == yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsRequest.getDefaultInstance()) return this;
if (other.getPageSize() != 0L) {
setPageSize(other.getPageSize());
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
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.BillingAccountServiceOuterClass.ListBillingAccountsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long pageSize_ ;
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size],
* the service returns a [ListBillingAccountsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size],
* the service returns a [ListBillingAccountsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @param value The pageSize to set.
* @return This builder for chaining.
*/
public Builder setPageSize(long value) {
pageSize_ = value;
onChanged();
return this;
}
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size],
* the service returns a [ListBillingAccountsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return This builder for chaining.
*/
public Builder clearPageSize() {
pageSize_ = 0L;
onChanged();
return this;
}
private java.lang.Object pageToken_ = "";
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListBillingAccountsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListBillingAccountsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListBillingAccountsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @param value The pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pageToken_ = value;
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListBillingAccountsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return This builder for chaining.
*/
public Builder clearPageToken() {
pageToken_ = getDefaultInstance().getPageToken();
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListBillingAccountsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @param value The bytes for pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pageToken_ = 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.ListBillingAccountsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.billing.v1.ListBillingAccountsRequest)
private static final yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsRequest();
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListBillingAccountsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListBillingAccountsRequest(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.BillingAccountServiceOuterClass.ListBillingAccountsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListBillingAccountsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.billing.v1.ListBillingAccountsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of billing accounts.
*
*
* repeated .yandex.cloud.billing.v1.BillingAccount billing_accounts = 1;
*/
java.util.List
getBillingAccountsList();
/**
*
* List of billing accounts.
*
*
* repeated .yandex.cloud.billing.v1.BillingAccount billing_accounts = 1;
*/
yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount getBillingAccounts(int index);
/**
*
* List of billing accounts.
*
*
* repeated .yandex.cloud.billing.v1.BillingAccount billing_accounts = 1;
*/
int getBillingAccountsCount();
/**
*
* List of billing accounts.
*
*
* repeated .yandex.cloud.billing.v1.BillingAccount billing_accounts = 1;
*/
java.util.List extends yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccountOrBuilder>
getBillingAccountsOrBuilderList();
/**
*
* List of billing accounts.
*
*
* repeated .yandex.cloud.billing.v1.BillingAccount billing_accounts = 1;
*/
yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccountOrBuilder getBillingAccountsOrBuilder(
int index);
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListBillingAccountsRequest.page_size], use
* [next_page_token] as the value
* for the [ListBillingAccountsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
java.lang.String getNextPageToken();
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListBillingAccountsRequest.page_size], use
* [next_page_token] as the value
* for the [ListBillingAccountsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
com.google.protobuf.ByteString
getNextPageTokenBytes();
}
/**
* Protobuf type {@code yandex.cloud.billing.v1.ListBillingAccountsResponse}
*/
public static final class ListBillingAccountsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.billing.v1.ListBillingAccountsResponse)
ListBillingAccountsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListBillingAccountsResponse.newBuilder() to construct.
private ListBillingAccountsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListBillingAccountsResponse() {
billingAccounts_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListBillingAccountsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListBillingAccountsResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
billingAccounts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
billingAccounts_.add(
input.readMessage(yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount.parser(), extensionRegistry));
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
nextPageToken_ = 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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
billingAccounts_ = java.util.Collections.unmodifiableList(billingAccounts_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListBillingAccountsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListBillingAccountsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsResponse.class, yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsResponse.Builder.class);
}
public static final int BILLING_ACCOUNTS_FIELD_NUMBER = 1;
private java.util.List billingAccounts_;
/**
*
* List of billing accounts.
*
*
* repeated .yandex.cloud.billing.v1.BillingAccount billing_accounts = 1;
*/
@java.lang.Override
public java.util.List getBillingAccountsList() {
return billingAccounts_;
}
/**
*
* List of billing accounts.
*
*
* repeated .yandex.cloud.billing.v1.BillingAccount billing_accounts = 1;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccountOrBuilder>
getBillingAccountsOrBuilderList() {
return billingAccounts_;
}
/**
*
* List of billing accounts.
*
*
* repeated .yandex.cloud.billing.v1.BillingAccount billing_accounts = 1;
*/
@java.lang.Override
public int getBillingAccountsCount() {
return billingAccounts_.size();
}
/**
*
* List of billing accounts.
*
*
* repeated .yandex.cloud.billing.v1.BillingAccount billing_accounts = 1;
*/
@java.lang.Override
public yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount getBillingAccounts(int index) {
return billingAccounts_.get(index);
}
/**
*
* List of billing accounts.
*
*
* repeated .yandex.cloud.billing.v1.BillingAccount billing_accounts = 1;
*/
@java.lang.Override
public yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccountOrBuilder getBillingAccountsOrBuilder(
int index) {
return billingAccounts_.get(index);
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
private volatile java.lang.Object nextPageToken_;
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListBillingAccountsRequest.page_size], use
* [next_page_token] as the value
* for the [ListBillingAccountsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
@java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
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();
nextPageToken_ = s;
return s;
}
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListBillingAccountsRequest.page_size], use
* [next_page_token] as the value
* for the [ListBillingAccountsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = 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 {
for (int i = 0; i < billingAccounts_.size(); i++) {
output.writeMessage(1, billingAccounts_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < billingAccounts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, billingAccounts_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
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.BillingAccountServiceOuterClass.ListBillingAccountsResponse)) {
return super.equals(obj);
}
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsResponse other = (yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsResponse) obj;
if (!getBillingAccountsList()
.equals(other.getBillingAccountsList())) return false;
if (!getNextPageToken()
.equals(other.getNextPageToken())) 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 (getBillingAccountsCount() > 0) {
hash = (37 * hash) + BILLING_ACCOUNTS_FIELD_NUMBER;
hash = (53 * hash) + getBillingAccountsList().hashCode();
}
hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getNextPageToken().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsResponse 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.BillingAccountServiceOuterClass.ListBillingAccountsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsResponse 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.BillingAccountServiceOuterClass.ListBillingAccountsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsResponse 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.BillingAccountServiceOuterClass.ListBillingAccountsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsResponse 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.BillingAccountServiceOuterClass.ListBillingAccountsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsResponse 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.BillingAccountServiceOuterClass.ListBillingAccountsResponse 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.BillingAccountServiceOuterClass.ListBillingAccountsResponse 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.BillingAccountServiceOuterClass.ListBillingAccountsResponse 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;
}
/**
* Protobuf type {@code yandex.cloud.billing.v1.ListBillingAccountsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.billing.v1.ListBillingAccountsResponse)
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListBillingAccountsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListBillingAccountsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsResponse.class, yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsResponse.Builder.class);
}
// Construct using yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getBillingAccountsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (billingAccountsBuilder_ == null) {
billingAccounts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
billingAccountsBuilder_.clear();
}
nextPageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListBillingAccountsResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsResponse getDefaultInstanceForType() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsResponse build() {
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsResponse buildPartial() {
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsResponse result = new yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsResponse(this);
int from_bitField0_ = bitField0_;
if (billingAccountsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
billingAccounts_ = java.util.Collections.unmodifiableList(billingAccounts_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.billingAccounts_ = billingAccounts_;
} else {
result.billingAccounts_ = billingAccountsBuilder_.build();
}
result.nextPageToken_ = nextPageToken_;
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.BillingAccountServiceOuterClass.ListBillingAccountsResponse) {
return mergeFrom((yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsResponse other) {
if (other == yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsResponse.getDefaultInstance()) return this;
if (billingAccountsBuilder_ == null) {
if (!other.billingAccounts_.isEmpty()) {
if (billingAccounts_.isEmpty()) {
billingAccounts_ = other.billingAccounts_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureBillingAccountsIsMutable();
billingAccounts_.addAll(other.billingAccounts_);
}
onChanged();
}
} else {
if (!other.billingAccounts_.isEmpty()) {
if (billingAccountsBuilder_.isEmpty()) {
billingAccountsBuilder_.dispose();
billingAccountsBuilder_ = null;
billingAccounts_ = other.billingAccounts_;
bitField0_ = (bitField0_ & ~0x00000001);
billingAccountsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getBillingAccountsFieldBuilder() : null;
} else {
billingAccountsBuilder_.addAllMessages(other.billingAccounts_);
}
}
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
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.BillingAccountServiceOuterClass.ListBillingAccountsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List billingAccounts_ =
java.util.Collections.emptyList();
private void ensureBillingAccountsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
billingAccounts_ = new java.util.ArrayList(billingAccounts_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount, yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount.Builder, yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccountOrBuilder> billingAccountsBuilder_;
/**
*
* List of billing accounts.
*
*
* repeated .yandex.cloud.billing.v1.BillingAccount billing_accounts = 1;
*/
public java.util.List getBillingAccountsList() {
if (billingAccountsBuilder_ == null) {
return java.util.Collections.unmodifiableList(billingAccounts_);
} else {
return billingAccountsBuilder_.getMessageList();
}
}
/**
*
* List of billing accounts.
*
*
* repeated .yandex.cloud.billing.v1.BillingAccount billing_accounts = 1;
*/
public int getBillingAccountsCount() {
if (billingAccountsBuilder_ == null) {
return billingAccounts_.size();
} else {
return billingAccountsBuilder_.getCount();
}
}
/**
*
* List of billing accounts.
*
*
* repeated .yandex.cloud.billing.v1.BillingAccount billing_accounts = 1;
*/
public yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount getBillingAccounts(int index) {
if (billingAccountsBuilder_ == null) {
return billingAccounts_.get(index);
} else {
return billingAccountsBuilder_.getMessage(index);
}
}
/**
*
* List of billing accounts.
*
*
* repeated .yandex.cloud.billing.v1.BillingAccount billing_accounts = 1;
*/
public Builder setBillingAccounts(
int index, yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount value) {
if (billingAccountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBillingAccountsIsMutable();
billingAccounts_.set(index, value);
onChanged();
} else {
billingAccountsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of billing accounts.
*
*
* repeated .yandex.cloud.billing.v1.BillingAccount billing_accounts = 1;
*/
public Builder setBillingAccounts(
int index, yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount.Builder builderForValue) {
if (billingAccountsBuilder_ == null) {
ensureBillingAccountsIsMutable();
billingAccounts_.set(index, builderForValue.build());
onChanged();
} else {
billingAccountsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of billing accounts.
*
*
* repeated .yandex.cloud.billing.v1.BillingAccount billing_accounts = 1;
*/
public Builder addBillingAccounts(yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount value) {
if (billingAccountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBillingAccountsIsMutable();
billingAccounts_.add(value);
onChanged();
} else {
billingAccountsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of billing accounts.
*
*
* repeated .yandex.cloud.billing.v1.BillingAccount billing_accounts = 1;
*/
public Builder addBillingAccounts(
int index, yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount value) {
if (billingAccountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBillingAccountsIsMutable();
billingAccounts_.add(index, value);
onChanged();
} else {
billingAccountsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of billing accounts.
*
*
* repeated .yandex.cloud.billing.v1.BillingAccount billing_accounts = 1;
*/
public Builder addBillingAccounts(
yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount.Builder builderForValue) {
if (billingAccountsBuilder_ == null) {
ensureBillingAccountsIsMutable();
billingAccounts_.add(builderForValue.build());
onChanged();
} else {
billingAccountsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of billing accounts.
*
*
* repeated .yandex.cloud.billing.v1.BillingAccount billing_accounts = 1;
*/
public Builder addBillingAccounts(
int index, yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount.Builder builderForValue) {
if (billingAccountsBuilder_ == null) {
ensureBillingAccountsIsMutable();
billingAccounts_.add(index, builderForValue.build());
onChanged();
} else {
billingAccountsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of billing accounts.
*
*
* repeated .yandex.cloud.billing.v1.BillingAccount billing_accounts = 1;
*/
public Builder addAllBillingAccounts(
java.lang.Iterable extends yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount> values) {
if (billingAccountsBuilder_ == null) {
ensureBillingAccountsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, billingAccounts_);
onChanged();
} else {
billingAccountsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of billing accounts.
*
*
* repeated .yandex.cloud.billing.v1.BillingAccount billing_accounts = 1;
*/
public Builder clearBillingAccounts() {
if (billingAccountsBuilder_ == null) {
billingAccounts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
billingAccountsBuilder_.clear();
}
return this;
}
/**
*
* List of billing accounts.
*
*
* repeated .yandex.cloud.billing.v1.BillingAccount billing_accounts = 1;
*/
public Builder removeBillingAccounts(int index) {
if (billingAccountsBuilder_ == null) {
ensureBillingAccountsIsMutable();
billingAccounts_.remove(index);
onChanged();
} else {
billingAccountsBuilder_.remove(index);
}
return this;
}
/**
*
* List of billing accounts.
*
*
* repeated .yandex.cloud.billing.v1.BillingAccount billing_accounts = 1;
*/
public yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount.Builder getBillingAccountsBuilder(
int index) {
return getBillingAccountsFieldBuilder().getBuilder(index);
}
/**
*
* List of billing accounts.
*
*
* repeated .yandex.cloud.billing.v1.BillingAccount billing_accounts = 1;
*/
public yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccountOrBuilder getBillingAccountsOrBuilder(
int index) {
if (billingAccountsBuilder_ == null) {
return billingAccounts_.get(index); } else {
return billingAccountsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of billing accounts.
*
*
* repeated .yandex.cloud.billing.v1.BillingAccount billing_accounts = 1;
*/
public java.util.List extends yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccountOrBuilder>
getBillingAccountsOrBuilderList() {
if (billingAccountsBuilder_ != null) {
return billingAccountsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(billingAccounts_);
}
}
/**
*
* List of billing accounts.
*
*
* repeated .yandex.cloud.billing.v1.BillingAccount billing_accounts = 1;
*/
public yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount.Builder addBillingAccountsBuilder() {
return getBillingAccountsFieldBuilder().addBuilder(
yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount.getDefaultInstance());
}
/**
*
* List of billing accounts.
*
*
* repeated .yandex.cloud.billing.v1.BillingAccount billing_accounts = 1;
*/
public yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount.Builder addBillingAccountsBuilder(
int index) {
return getBillingAccountsFieldBuilder().addBuilder(
index, yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount.getDefaultInstance());
}
/**
*
* List of billing accounts.
*
*
* repeated .yandex.cloud.billing.v1.BillingAccount billing_accounts = 1;
*/
public java.util.List
getBillingAccountsBuilderList() {
return getBillingAccountsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount, yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount.Builder, yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccountOrBuilder>
getBillingAccountsFieldBuilder() {
if (billingAccountsBuilder_ == null) {
billingAccountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount, yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount.Builder, yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccountOrBuilder>(
billingAccounts_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
billingAccounts_ = null;
}
return billingAccountsBuilder_;
}
private java.lang.Object nextPageToken_ = "";
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListBillingAccountsRequest.page_size], use
* [next_page_token] as the value
* for the [ListBillingAccountsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListBillingAccountsRequest.page_size], use
* [next_page_token] as the value
* for the [ListBillingAccountsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListBillingAccountsRequest.page_size], use
* [next_page_token] as the value
* for the [ListBillingAccountsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @param value The nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nextPageToken_ = value;
onChanged();
return this;
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListBillingAccountsRequest.page_size], use
* [next_page_token] as the value
* for the [ListBillingAccountsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
nextPageToken_ = getDefaultInstance().getNextPageToken();
onChanged();
return this;
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListBillingAccountsRequest.page_size], use
* [next_page_token] as the value
* for the [ListBillingAccountsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @param value The bytes for nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nextPageToken_ = 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.ListBillingAccountsResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.billing.v1.ListBillingAccountsResponse)
private static final yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsResponse();
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillingAccountsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListBillingAccountsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListBillingAccountsResponse(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.BillingAccountServiceOuterClass.ListBillingAccountsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListBillableObjectBindingsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.billing.v1.ListBillableObjectBindingsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the billing account to list associated billable object bindings.
* To get the billing account ID, use [BillingAccountService.List] request.
*
*
* string billing_account_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The billingAccountId.
*/
java.lang.String getBillingAccountId();
/**
*
* ID of the billing account to list associated billable object bindings.
* To get the billing account ID, use [BillingAccountService.List] request.
*
*
* string billing_account_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for billingAccountId.
*/
com.google.protobuf.ByteString
getBillingAccountIdBytes();
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size],
* the service returns a [ListBillableObjectBindingsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return The pageSize.
*/
long getPageSize();
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListBillableObjectBindingsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
java.lang.String getPageToken();
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListBillableObjectBindingsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
com.google.protobuf.ByteString
getPageTokenBytes();
}
/**
* Protobuf type {@code yandex.cloud.billing.v1.ListBillableObjectBindingsRequest}
*/
public static final class ListBillableObjectBindingsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.billing.v1.ListBillableObjectBindingsRequest)
ListBillableObjectBindingsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListBillableObjectBindingsRequest.newBuilder() to construct.
private ListBillableObjectBindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListBillableObjectBindingsRequest() {
billingAccountId_ = "";
pageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListBillableObjectBindingsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListBillableObjectBindingsRequest(
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();
billingAccountId_ = s;
break;
}
case 16: {
pageSize_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
pageToken_ = 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.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListBillableObjectBindingsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListBillableObjectBindingsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest.class, yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest.Builder.class);
}
public static final int BILLING_ACCOUNT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object billingAccountId_;
/**
*
* ID of the billing account to list associated billable object bindings.
* To get the billing account ID, use [BillingAccountService.List] request.
*
*
* string billing_account_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The billingAccountId.
*/
@java.lang.Override
public java.lang.String getBillingAccountId() {
java.lang.Object ref = billingAccountId_;
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();
billingAccountId_ = s;
return s;
}
}
/**
*
* ID of the billing account to list associated billable object bindings.
* To get the billing account ID, use [BillingAccountService.List] request.
*
*
* string billing_account_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for billingAccountId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBillingAccountIdBytes() {
java.lang.Object ref = billingAccountId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
billingAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAGE_SIZE_FIELD_NUMBER = 2;
private long pageSize_;
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size],
* the service returns a [ListBillableObjectBindingsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
private volatile java.lang.Object pageToken_;
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListBillableObjectBindingsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
@java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
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();
pageToken_ = s;
return s;
}
}
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListBillableObjectBindingsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = 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(billingAccountId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, billingAccountId_);
}
if (pageSize_ != 0L) {
output.writeInt64(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
}
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(billingAccountId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, billingAccountId_);
}
if (pageSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
}
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.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest other = (yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest) obj;
if (!getBillingAccountId()
.equals(other.getBillingAccountId())) return false;
if (getPageSize()
!= other.getPageSize()) return false;
if (!getPageToken()
.equals(other.getPageToken())) 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) + BILLING_ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getBillingAccountId().hashCode();
hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPageSize());
hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getPageToken().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest 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.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest 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.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest 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.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest 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.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest 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.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest 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.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest 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.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest 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;
}
/**
* Protobuf type {@code yandex.cloud.billing.v1.ListBillableObjectBindingsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.billing.v1.ListBillableObjectBindingsRequest)
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListBillableObjectBindingsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListBillableObjectBindingsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest.class, yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest.Builder.class);
}
// Construct using yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest.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();
billingAccountId_ = "";
pageSize_ = 0L;
pageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListBillableObjectBindingsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest getDefaultInstanceForType() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest build() {
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest buildPartial() {
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest result = new yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest(this);
result.billingAccountId_ = billingAccountId_;
result.pageSize_ = pageSize_;
result.pageToken_ = pageToken_;
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.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest) {
return mergeFrom((yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest other) {
if (other == yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest.getDefaultInstance()) return this;
if (!other.getBillingAccountId().isEmpty()) {
billingAccountId_ = other.billingAccountId_;
onChanged();
}
if (other.getPageSize() != 0L) {
setPageSize(other.getPageSize());
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
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.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object billingAccountId_ = "";
/**
*
* ID of the billing account to list associated billable object bindings.
* To get the billing account ID, use [BillingAccountService.List] request.
*
*
* string billing_account_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The billingAccountId.
*/
public java.lang.String getBillingAccountId() {
java.lang.Object ref = billingAccountId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
billingAccountId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the billing account to list associated billable object bindings.
* To get the billing account ID, use [BillingAccountService.List] request.
*
*
* string billing_account_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for billingAccountId.
*/
public com.google.protobuf.ByteString
getBillingAccountIdBytes() {
java.lang.Object ref = billingAccountId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
billingAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the billing account to list associated billable object bindings.
* To get the billing account ID, use [BillingAccountService.List] request.
*
*
* string billing_account_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The billingAccountId to set.
* @return This builder for chaining.
*/
public Builder setBillingAccountId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
billingAccountId_ = value;
onChanged();
return this;
}
/**
*
* ID of the billing account to list associated billable object bindings.
* To get the billing account ID, use [BillingAccountService.List] request.
*
*
* string billing_account_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearBillingAccountId() {
billingAccountId_ = getDefaultInstance().getBillingAccountId();
onChanged();
return this;
}
/**
*
* ID of the billing account to list associated billable object bindings.
* To get the billing account ID, use [BillingAccountService.List] request.
*
*
* string billing_account_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for billingAccountId to set.
* @return This builder for chaining.
*/
public Builder setBillingAccountIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
billingAccountId_ = value;
onChanged();
return this;
}
private long pageSize_ ;
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size],
* the service returns a [ListBillableObjectBindingsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size],
* the service returns a [ListBillableObjectBindingsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @param value The pageSize to set.
* @return This builder for chaining.
*/
public Builder setPageSize(long value) {
pageSize_ = value;
onChanged();
return this;
}
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size],
* the service returns a [ListBillableObjectBindingsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return This builder for chaining.
*/
public Builder clearPageSize() {
pageSize_ = 0L;
onChanged();
return this;
}
private java.lang.Object pageToken_ = "";
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListBillableObjectBindingsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListBillableObjectBindingsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListBillableObjectBindingsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @param value The pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pageToken_ = value;
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListBillableObjectBindingsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return This builder for chaining.
*/
public Builder clearPageToken() {
pageToken_ = getDefaultInstance().getPageToken();
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListBillableObjectBindingsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @param value The bytes for pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pageToken_ = 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.ListBillableObjectBindingsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.billing.v1.ListBillableObjectBindingsRequest)
private static final yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest();
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListBillableObjectBindingsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListBillableObjectBindingsRequest(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.BillingAccountServiceOuterClass.ListBillableObjectBindingsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListBillableObjectBindingsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.billing.v1.ListBillableObjectBindingsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of billable object bindings.
*
*
* repeated .yandex.cloud.billing.v1.BillableObjectBinding billable_object_bindings = 1;
*/
java.util.List
getBillableObjectBindingsList();
/**
*
* List of billable object bindings.
*
*
* repeated .yandex.cloud.billing.v1.BillableObjectBinding billable_object_bindings = 1;
*/
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding getBillableObjectBindings(int index);
/**
*
* List of billable object bindings.
*
*
* repeated .yandex.cloud.billing.v1.BillableObjectBinding billable_object_bindings = 1;
*/
int getBillableObjectBindingsCount();
/**
*
* List of billable object bindings.
*
*
* repeated .yandex.cloud.billing.v1.BillableObjectBinding billable_object_bindings = 1;
*/
java.util.List extends yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBindingOrBuilder>
getBillableObjectBindingsOrBuilderList();
/**
*
* List of billable object bindings.
*
*
* repeated .yandex.cloud.billing.v1.BillableObjectBinding billable_object_bindings = 1;
*/
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBindingOrBuilder getBillableObjectBindingsOrBuilder(
int index);
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListBillableObjectBindingsRequest.page_size], use
* [next_page_token] as the value
* for the [ListBillableObjectBindingsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
java.lang.String getNextPageToken();
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListBillableObjectBindingsRequest.page_size], use
* [next_page_token] as the value
* for the [ListBillableObjectBindingsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
com.google.protobuf.ByteString
getNextPageTokenBytes();
}
/**
* Protobuf type {@code yandex.cloud.billing.v1.ListBillableObjectBindingsResponse}
*/
public static final class ListBillableObjectBindingsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.billing.v1.ListBillableObjectBindingsResponse)
ListBillableObjectBindingsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListBillableObjectBindingsResponse.newBuilder() to construct.
private ListBillableObjectBindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListBillableObjectBindingsResponse() {
billableObjectBindings_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListBillableObjectBindingsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListBillableObjectBindingsResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
billableObjectBindings_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
billableObjectBindings_.add(
input.readMessage(yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding.parser(), extensionRegistry));
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
nextPageToken_ = 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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
billableObjectBindings_ = java.util.Collections.unmodifiableList(billableObjectBindings_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListBillableObjectBindingsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListBillableObjectBindingsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse.class, yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse.Builder.class);
}
public static final int BILLABLE_OBJECT_BINDINGS_FIELD_NUMBER = 1;
private java.util.List billableObjectBindings_;
/**
*
* List of billable object bindings.
*
*
* repeated .yandex.cloud.billing.v1.BillableObjectBinding billable_object_bindings = 1;
*/
@java.lang.Override
public java.util.List getBillableObjectBindingsList() {
return billableObjectBindings_;
}
/**
*
* List of billable object bindings.
*
*
* repeated .yandex.cloud.billing.v1.BillableObjectBinding billable_object_bindings = 1;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBindingOrBuilder>
getBillableObjectBindingsOrBuilderList() {
return billableObjectBindings_;
}
/**
*
* List of billable object bindings.
*
*
* repeated .yandex.cloud.billing.v1.BillableObjectBinding billable_object_bindings = 1;
*/
@java.lang.Override
public int getBillableObjectBindingsCount() {
return billableObjectBindings_.size();
}
/**
*
* List of billable object bindings.
*
*
* repeated .yandex.cloud.billing.v1.BillableObjectBinding billable_object_bindings = 1;
*/
@java.lang.Override
public yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding getBillableObjectBindings(int index) {
return billableObjectBindings_.get(index);
}
/**
*
* List of billable object bindings.
*
*
* repeated .yandex.cloud.billing.v1.BillableObjectBinding billable_object_bindings = 1;
*/
@java.lang.Override
public yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBindingOrBuilder getBillableObjectBindingsOrBuilder(
int index) {
return billableObjectBindings_.get(index);
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
private volatile java.lang.Object nextPageToken_;
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListBillableObjectBindingsRequest.page_size], use
* [next_page_token] as the value
* for the [ListBillableObjectBindingsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
@java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
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();
nextPageToken_ = s;
return s;
}
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListBillableObjectBindingsRequest.page_size], use
* [next_page_token] as the value
* for the [ListBillableObjectBindingsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = 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 {
for (int i = 0; i < billableObjectBindings_.size(); i++) {
output.writeMessage(1, billableObjectBindings_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < billableObjectBindings_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, billableObjectBindings_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
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.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse)) {
return super.equals(obj);
}
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse other = (yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse) obj;
if (!getBillableObjectBindingsList()
.equals(other.getBillableObjectBindingsList())) return false;
if (!getNextPageToken()
.equals(other.getNextPageToken())) 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 (getBillableObjectBindingsCount() > 0) {
hash = (37 * hash) + BILLABLE_OBJECT_BINDINGS_FIELD_NUMBER;
hash = (53 * hash) + getBillableObjectBindingsList().hashCode();
}
hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getNextPageToken().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse 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.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse 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.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse 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.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse 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.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse 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.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse 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.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse 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.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse 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;
}
/**
* Protobuf type {@code yandex.cloud.billing.v1.ListBillableObjectBindingsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.billing.v1.ListBillableObjectBindingsResponse)
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListBillableObjectBindingsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListBillableObjectBindingsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse.class, yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse.Builder.class);
}
// Construct using yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getBillableObjectBindingsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (billableObjectBindingsBuilder_ == null) {
billableObjectBindings_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
billableObjectBindingsBuilder_.clear();
}
nextPageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListBillableObjectBindingsResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse getDefaultInstanceForType() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse build() {
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse buildPartial() {
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse result = new yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse(this);
int from_bitField0_ = bitField0_;
if (billableObjectBindingsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
billableObjectBindings_ = java.util.Collections.unmodifiableList(billableObjectBindings_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.billableObjectBindings_ = billableObjectBindings_;
} else {
result.billableObjectBindings_ = billableObjectBindingsBuilder_.build();
}
result.nextPageToken_ = nextPageToken_;
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.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse) {
return mergeFrom((yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse other) {
if (other == yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse.getDefaultInstance()) return this;
if (billableObjectBindingsBuilder_ == null) {
if (!other.billableObjectBindings_.isEmpty()) {
if (billableObjectBindings_.isEmpty()) {
billableObjectBindings_ = other.billableObjectBindings_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureBillableObjectBindingsIsMutable();
billableObjectBindings_.addAll(other.billableObjectBindings_);
}
onChanged();
}
} else {
if (!other.billableObjectBindings_.isEmpty()) {
if (billableObjectBindingsBuilder_.isEmpty()) {
billableObjectBindingsBuilder_.dispose();
billableObjectBindingsBuilder_ = null;
billableObjectBindings_ = other.billableObjectBindings_;
bitField0_ = (bitField0_ & ~0x00000001);
billableObjectBindingsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getBillableObjectBindingsFieldBuilder() : null;
} else {
billableObjectBindingsBuilder_.addAllMessages(other.billableObjectBindings_);
}
}
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
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.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List billableObjectBindings_ =
java.util.Collections.emptyList();
private void ensureBillableObjectBindingsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
billableObjectBindings_ = new java.util.ArrayList(billableObjectBindings_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding, yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding.Builder, yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBindingOrBuilder> billableObjectBindingsBuilder_;
/**
*
* List of billable object bindings.
*
*
* repeated .yandex.cloud.billing.v1.BillableObjectBinding billable_object_bindings = 1;
*/
public java.util.List getBillableObjectBindingsList() {
if (billableObjectBindingsBuilder_ == null) {
return java.util.Collections.unmodifiableList(billableObjectBindings_);
} else {
return billableObjectBindingsBuilder_.getMessageList();
}
}
/**
*
* List of billable object bindings.
*
*
* repeated .yandex.cloud.billing.v1.BillableObjectBinding billable_object_bindings = 1;
*/
public int getBillableObjectBindingsCount() {
if (billableObjectBindingsBuilder_ == null) {
return billableObjectBindings_.size();
} else {
return billableObjectBindingsBuilder_.getCount();
}
}
/**
*
* List of billable object bindings.
*
*
* repeated .yandex.cloud.billing.v1.BillableObjectBinding billable_object_bindings = 1;
*/
public yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding getBillableObjectBindings(int index) {
if (billableObjectBindingsBuilder_ == null) {
return billableObjectBindings_.get(index);
} else {
return billableObjectBindingsBuilder_.getMessage(index);
}
}
/**
*
* List of billable object bindings.
*
*
* repeated .yandex.cloud.billing.v1.BillableObjectBinding billable_object_bindings = 1;
*/
public Builder setBillableObjectBindings(
int index, yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding value) {
if (billableObjectBindingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBillableObjectBindingsIsMutable();
billableObjectBindings_.set(index, value);
onChanged();
} else {
billableObjectBindingsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of billable object bindings.
*
*
* repeated .yandex.cloud.billing.v1.BillableObjectBinding billable_object_bindings = 1;
*/
public Builder setBillableObjectBindings(
int index, yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding.Builder builderForValue) {
if (billableObjectBindingsBuilder_ == null) {
ensureBillableObjectBindingsIsMutable();
billableObjectBindings_.set(index, builderForValue.build());
onChanged();
} else {
billableObjectBindingsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of billable object bindings.
*
*
* repeated .yandex.cloud.billing.v1.BillableObjectBinding billable_object_bindings = 1;
*/
public Builder addBillableObjectBindings(yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding value) {
if (billableObjectBindingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBillableObjectBindingsIsMutable();
billableObjectBindings_.add(value);
onChanged();
} else {
billableObjectBindingsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of billable object bindings.
*
*
* repeated .yandex.cloud.billing.v1.BillableObjectBinding billable_object_bindings = 1;
*/
public Builder addBillableObjectBindings(
int index, yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding value) {
if (billableObjectBindingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBillableObjectBindingsIsMutable();
billableObjectBindings_.add(index, value);
onChanged();
} else {
billableObjectBindingsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of billable object bindings.
*
*
* repeated .yandex.cloud.billing.v1.BillableObjectBinding billable_object_bindings = 1;
*/
public Builder addBillableObjectBindings(
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding.Builder builderForValue) {
if (billableObjectBindingsBuilder_ == null) {
ensureBillableObjectBindingsIsMutable();
billableObjectBindings_.add(builderForValue.build());
onChanged();
} else {
billableObjectBindingsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of billable object bindings.
*
*
* repeated .yandex.cloud.billing.v1.BillableObjectBinding billable_object_bindings = 1;
*/
public Builder addBillableObjectBindings(
int index, yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding.Builder builderForValue) {
if (billableObjectBindingsBuilder_ == null) {
ensureBillableObjectBindingsIsMutable();
billableObjectBindings_.add(index, builderForValue.build());
onChanged();
} else {
billableObjectBindingsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of billable object bindings.
*
*
* repeated .yandex.cloud.billing.v1.BillableObjectBinding billable_object_bindings = 1;
*/
public Builder addAllBillableObjectBindings(
java.lang.Iterable extends yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding> values) {
if (billableObjectBindingsBuilder_ == null) {
ensureBillableObjectBindingsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, billableObjectBindings_);
onChanged();
} else {
billableObjectBindingsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of billable object bindings.
*
*
* repeated .yandex.cloud.billing.v1.BillableObjectBinding billable_object_bindings = 1;
*/
public Builder clearBillableObjectBindings() {
if (billableObjectBindingsBuilder_ == null) {
billableObjectBindings_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
billableObjectBindingsBuilder_.clear();
}
return this;
}
/**
*
* List of billable object bindings.
*
*
* repeated .yandex.cloud.billing.v1.BillableObjectBinding billable_object_bindings = 1;
*/
public Builder removeBillableObjectBindings(int index) {
if (billableObjectBindingsBuilder_ == null) {
ensureBillableObjectBindingsIsMutable();
billableObjectBindings_.remove(index);
onChanged();
} else {
billableObjectBindingsBuilder_.remove(index);
}
return this;
}
/**
*
* List of billable object bindings.
*
*
* repeated .yandex.cloud.billing.v1.BillableObjectBinding billable_object_bindings = 1;
*/
public yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding.Builder getBillableObjectBindingsBuilder(
int index) {
return getBillableObjectBindingsFieldBuilder().getBuilder(index);
}
/**
*
* List of billable object bindings.
*
*
* repeated .yandex.cloud.billing.v1.BillableObjectBinding billable_object_bindings = 1;
*/
public yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBindingOrBuilder getBillableObjectBindingsOrBuilder(
int index) {
if (billableObjectBindingsBuilder_ == null) {
return billableObjectBindings_.get(index); } else {
return billableObjectBindingsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of billable object bindings.
*
*
* repeated .yandex.cloud.billing.v1.BillableObjectBinding billable_object_bindings = 1;
*/
public java.util.List extends yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBindingOrBuilder>
getBillableObjectBindingsOrBuilderList() {
if (billableObjectBindingsBuilder_ != null) {
return billableObjectBindingsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(billableObjectBindings_);
}
}
/**
*
* List of billable object bindings.
*
*
* repeated .yandex.cloud.billing.v1.BillableObjectBinding billable_object_bindings = 1;
*/
public yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding.Builder addBillableObjectBindingsBuilder() {
return getBillableObjectBindingsFieldBuilder().addBuilder(
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding.getDefaultInstance());
}
/**
*
* List of billable object bindings.
*
*
* repeated .yandex.cloud.billing.v1.BillableObjectBinding billable_object_bindings = 1;
*/
public yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding.Builder addBillableObjectBindingsBuilder(
int index) {
return getBillableObjectBindingsFieldBuilder().addBuilder(
index, yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding.getDefaultInstance());
}
/**
*
* List of billable object bindings.
*
*
* repeated .yandex.cloud.billing.v1.BillableObjectBinding billable_object_bindings = 1;
*/
public java.util.List
getBillableObjectBindingsBuilderList() {
return getBillableObjectBindingsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding, yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding.Builder, yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBindingOrBuilder>
getBillableObjectBindingsFieldBuilder() {
if (billableObjectBindingsBuilder_ == null) {
billableObjectBindingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding, yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBinding.Builder, yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectBindingOrBuilder>(
billableObjectBindings_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
billableObjectBindings_ = null;
}
return billableObjectBindingsBuilder_;
}
private java.lang.Object nextPageToken_ = "";
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListBillableObjectBindingsRequest.page_size], use
* [next_page_token] as the value
* for the [ListBillableObjectBindingsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListBillableObjectBindingsRequest.page_size], use
* [next_page_token] as the value
* for the [ListBillableObjectBindingsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListBillableObjectBindingsRequest.page_size], use
* [next_page_token] as the value
* for the [ListBillableObjectBindingsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @param value The nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nextPageToken_ = value;
onChanged();
return this;
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListBillableObjectBindingsRequest.page_size], use
* [next_page_token] as the value
* for the [ListBillableObjectBindingsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
nextPageToken_ = getDefaultInstance().getNextPageToken();
onChanged();
return this;
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListBillableObjectBindingsRequest.page_size], use
* [next_page_token] as the value
* for the [ListBillableObjectBindingsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @param value The bytes for nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nextPageToken_ = 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.ListBillableObjectBindingsResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.billing.v1.ListBillableObjectBindingsResponse)
private static final yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse();
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListBillableObjectBindingsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListBillableObjectBindingsResponse(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.BillingAccountServiceOuterClass.ListBillableObjectBindingsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BindBillableObjectRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.billing.v1.BindBillableObjectRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the billing account to bind billable object.
* To get the billing account ID, use [BillingAccountService.List] request.
*
*
* string billing_account_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The billingAccountId.
*/
java.lang.String getBillingAccountId();
/**
*
* ID of the billing account to bind billable object.
* To get the billing account ID, use [BillingAccountService.List] request.
*
*
* string billing_account_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for billingAccountId.
*/
com.google.protobuf.ByteString
getBillingAccountIdBytes();
/**
*
* [yandex.cloud.billing.v1.BillableObject] to bind with billing account.
*
*
* .yandex.cloud.billing.v1.BillableObject billable_object = 2;
* @return Whether the billableObject field is set.
*/
boolean hasBillableObject();
/**
*
* [yandex.cloud.billing.v1.BillableObject] to bind with billing account.
*
*
* .yandex.cloud.billing.v1.BillableObject billable_object = 2;
* @return The billableObject.
*/
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject getBillableObject();
/**
*
* [yandex.cloud.billing.v1.BillableObject] to bind with billing account.
*
*
* .yandex.cloud.billing.v1.BillableObject billable_object = 2;
*/
yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObjectOrBuilder getBillableObjectOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.billing.v1.BindBillableObjectRequest}
*/
public static final class BindBillableObjectRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.billing.v1.BindBillableObjectRequest)
BindBillableObjectRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use BindBillableObjectRequest.newBuilder() to construct.
private BindBillableObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BindBillableObjectRequest() {
billingAccountId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BindBillableObjectRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BindBillableObjectRequest(
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();
billingAccountId_ = s;
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.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_BindBillableObjectRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_BindBillableObjectRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectRequest.class, yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectRequest.Builder.class);
}
public static final int BILLING_ACCOUNT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object billingAccountId_;
/**
*
* ID of the billing account to bind billable object.
* To get the billing account ID, use [BillingAccountService.List] request.
*
*
* string billing_account_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The billingAccountId.
*/
@java.lang.Override
public java.lang.String getBillingAccountId() {
java.lang.Object ref = billingAccountId_;
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();
billingAccountId_ = s;
return s;
}
}
/**
*
* ID of the billing account to bind billable object.
* To get the billing account ID, use [BillingAccountService.List] request.
*
*
* string billing_account_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for billingAccountId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBillingAccountIdBytes() {
java.lang.Object ref = billingAccountId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
billingAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BILLABLE_OBJECT_FIELD_NUMBER = 2;
private yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject billableObject_;
/**
*
* [yandex.cloud.billing.v1.BillableObject] to bind with 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;
}
/**
*
* [yandex.cloud.billing.v1.BillableObject] to bind with 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_;
}
/**
*
* [yandex.cloud.billing.v1.BillableObject] to bind with 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingAccountId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, billingAccountId_);
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingAccountId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, billingAccountId_);
}
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.BillingAccountServiceOuterClass.BindBillableObjectRequest)) {
return super.equals(obj);
}
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectRequest other = (yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectRequest) obj;
if (!getBillingAccountId()
.equals(other.getBillingAccountId())) 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();
hash = (37 * hash) + BILLING_ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getBillingAccountId().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.BillingAccountServiceOuterClass.BindBillableObjectRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectRequest 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.BillingAccountServiceOuterClass.BindBillableObjectRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectRequest 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.BillingAccountServiceOuterClass.BindBillableObjectRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectRequest 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.BillingAccountServiceOuterClass.BindBillableObjectRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectRequest 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.BillingAccountServiceOuterClass.BindBillableObjectRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectRequest 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.BillingAccountServiceOuterClass.BindBillableObjectRequest 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.BillingAccountServiceOuterClass.BindBillableObjectRequest 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.BillingAccountServiceOuterClass.BindBillableObjectRequest 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;
}
/**
* Protobuf type {@code yandex.cloud.billing.v1.BindBillableObjectRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.billing.v1.BindBillableObjectRequest)
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_BindBillableObjectRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_BindBillableObjectRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectRequest.class, yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectRequest.Builder.class);
}
// Construct using yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectRequest.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();
billingAccountId_ = "";
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.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_BindBillableObjectRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectRequest getDefaultInstanceForType() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectRequest build() {
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectRequest buildPartial() {
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectRequest result = new yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectRequest(this);
result.billingAccountId_ = billingAccountId_;
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.BillingAccountServiceOuterClass.BindBillableObjectRequest) {
return mergeFrom((yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectRequest other) {
if (other == yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectRequest.getDefaultInstance()) return this;
if (!other.getBillingAccountId().isEmpty()) {
billingAccountId_ = other.billingAccountId_;
onChanged();
}
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.BillingAccountServiceOuterClass.BindBillableObjectRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object billingAccountId_ = "";
/**
*
* ID of the billing account to bind billable object.
* To get the billing account ID, use [BillingAccountService.List] request.
*
*
* string billing_account_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The billingAccountId.
*/
public java.lang.String getBillingAccountId() {
java.lang.Object ref = billingAccountId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
billingAccountId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the billing account to bind billable object.
* To get the billing account ID, use [BillingAccountService.List] request.
*
*
* string billing_account_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for billingAccountId.
*/
public com.google.protobuf.ByteString
getBillingAccountIdBytes() {
java.lang.Object ref = billingAccountId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
billingAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the billing account to bind billable object.
* To get the billing account ID, use [BillingAccountService.List] request.
*
*
* string billing_account_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The billingAccountId to set.
* @return This builder for chaining.
*/
public Builder setBillingAccountId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
billingAccountId_ = value;
onChanged();
return this;
}
/**
*
* ID of the billing account to bind billable object.
* To get the billing account ID, use [BillingAccountService.List] request.
*
*
* string billing_account_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearBillingAccountId() {
billingAccountId_ = getDefaultInstance().getBillingAccountId();
onChanged();
return this;
}
/**
*
* ID of the billing account to bind billable object.
* To get the billing account ID, use [BillingAccountService.List] request.
*
*
* string billing_account_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for billingAccountId to set.
* @return This builder for chaining.
*/
public Builder setBillingAccountIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
billingAccountId_ = value;
onChanged();
return this;
}
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_;
/**
*
* [yandex.cloud.billing.v1.BillableObject] to bind with 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;
}
/**
*
* [yandex.cloud.billing.v1.BillableObject] to bind with 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();
}
}
/**
*
* [yandex.cloud.billing.v1.BillableObject] to bind with 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;
}
/**
*
* [yandex.cloud.billing.v1.BillableObject] to bind with 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;
}
/**
*
* [yandex.cloud.billing.v1.BillableObject] to bind with 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;
}
/**
*
* [yandex.cloud.billing.v1.BillableObject] to bind with 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;
}
/**
*
* [yandex.cloud.billing.v1.BillableObject] to bind with billing account.
*
*
* .yandex.cloud.billing.v1.BillableObject billable_object = 2;
*/
public yandex.cloud.api.billing.v1.BillableObjectOuterClass.BillableObject.Builder getBillableObjectBuilder() {
onChanged();
return getBillableObjectFieldBuilder().getBuilder();
}
/**
*
* [yandex.cloud.billing.v1.BillableObject] to bind with 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_;
}
}
/**
*
* [yandex.cloud.billing.v1.BillableObject] to bind with 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.BindBillableObjectRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.billing.v1.BindBillableObjectRequest)
private static final yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectRequest();
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BindBillableObjectRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BindBillableObjectRequest(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.BillingAccountServiceOuterClass.BindBillableObjectRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BindBillableObjectMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.billing.v1.BindBillableObjectMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the [yandex.cloud.billing.v1.BillableObject] that was bound to billing account.
*
*
* string billable_object_id = 1;
* @return The billableObjectId.
*/
java.lang.String getBillableObjectId();
/**
*
* ID of the [yandex.cloud.billing.v1.BillableObject] that was bound to billing account.
*
*
* string billable_object_id = 1;
* @return The bytes for billableObjectId.
*/
com.google.protobuf.ByteString
getBillableObjectIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.billing.v1.BindBillableObjectMetadata}
*/
public static final class BindBillableObjectMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.billing.v1.BindBillableObjectMetadata)
BindBillableObjectMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use BindBillableObjectMetadata.newBuilder() to construct.
private BindBillableObjectMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BindBillableObjectMetadata() {
billableObjectId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BindBillableObjectMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BindBillableObjectMetadata(
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();
billableObjectId_ = 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.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_BindBillableObjectMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_BindBillableObjectMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectMetadata.class, yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectMetadata.Builder.class);
}
public static final int BILLABLE_OBJECT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object billableObjectId_;
/**
*
* ID of the [yandex.cloud.billing.v1.BillableObject] that was bound to billing account.
*
*
* string billable_object_id = 1;
* @return The billableObjectId.
*/
@java.lang.Override
public java.lang.String getBillableObjectId() {
java.lang.Object ref = billableObjectId_;
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();
billableObjectId_ = s;
return s;
}
}
/**
*
* ID of the [yandex.cloud.billing.v1.BillableObject] that was bound to billing account.
*
*
* string billable_object_id = 1;
* @return The bytes for billableObjectId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBillableObjectIdBytes() {
java.lang.Object ref = billableObjectId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
billableObjectId_ = 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(billableObjectId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, billableObjectId_);
}
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(billableObjectId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, billableObjectId_);
}
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.BillingAccountServiceOuterClass.BindBillableObjectMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectMetadata other = (yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectMetadata) obj;
if (!getBillableObjectId()
.equals(other.getBillableObjectId())) 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) + BILLABLE_OBJECT_ID_FIELD_NUMBER;
hash = (53 * hash) + getBillableObjectId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectMetadata 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.BillingAccountServiceOuterClass.BindBillableObjectMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectMetadata 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.BillingAccountServiceOuterClass.BindBillableObjectMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectMetadata 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.BillingAccountServiceOuterClass.BindBillableObjectMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectMetadata 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.BillingAccountServiceOuterClass.BindBillableObjectMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectMetadata 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.BillingAccountServiceOuterClass.BindBillableObjectMetadata 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.BillingAccountServiceOuterClass.BindBillableObjectMetadata 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.BillingAccountServiceOuterClass.BindBillableObjectMetadata 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;
}
/**
* Protobuf type {@code yandex.cloud.billing.v1.BindBillableObjectMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.billing.v1.BindBillableObjectMetadata)
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_BindBillableObjectMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_BindBillableObjectMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectMetadata.class, yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectMetadata.Builder.class);
}
// Construct using yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectMetadata.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();
billableObjectId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.internal_static_yandex_cloud_billing_v1_BindBillableObjectMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectMetadata getDefaultInstanceForType() {
return yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectMetadata build() {
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectMetadata buildPartial() {
yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectMetadata result = new yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectMetadata(this);
result.billableObjectId_ = billableObjectId_;
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.BillingAccountServiceOuterClass.BindBillableObjectMetadata) {
return mergeFrom((yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectMetadata other) {
if (other == yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectMetadata.getDefaultInstance()) return this;
if (!other.getBillableObjectId().isEmpty()) {
billableObjectId_ = other.billableObjectId_;
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.BillingAccountServiceOuterClass.BindBillableObjectMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object billableObjectId_ = "";
/**
*
* ID of the [yandex.cloud.billing.v1.BillableObject] that was bound to billing account.
*
*
* string billable_object_id = 1;
* @return The billableObjectId.
*/
public java.lang.String getBillableObjectId() {
java.lang.Object ref = billableObjectId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
billableObjectId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the [yandex.cloud.billing.v1.BillableObject] that was bound to billing account.
*
*
* string billable_object_id = 1;
* @return The bytes for billableObjectId.
*/
public com.google.protobuf.ByteString
getBillableObjectIdBytes() {
java.lang.Object ref = billableObjectId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
billableObjectId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the [yandex.cloud.billing.v1.BillableObject] that was bound to billing account.
*
*
* string billable_object_id = 1;
* @param value The billableObjectId to set.
* @return This builder for chaining.
*/
public Builder setBillableObjectId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
billableObjectId_ = value;
onChanged();
return this;
}
/**
*
* ID of the [yandex.cloud.billing.v1.BillableObject] that was bound to billing account.
*
*
* string billable_object_id = 1;
* @return This builder for chaining.
*/
public Builder clearBillableObjectId() {
billableObjectId_ = getDefaultInstance().getBillableObjectId();
onChanged();
return this;
}
/**
*
* ID of the [yandex.cloud.billing.v1.BillableObject] that was bound to billing account.
*
*
* string billable_object_id = 1;
* @param value The bytes for billableObjectId to set.
* @return This builder for chaining.
*/
public Builder setBillableObjectIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
billableObjectId_ = 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.BindBillableObjectMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.billing.v1.BindBillableObjectMetadata)
private static final yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectMetadata();
}
public static yandex.cloud.api.billing.v1.BillingAccountServiceOuterClass.BindBillableObjectMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BindBillableObjectMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BindBillableObjectMetadata(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.BillingAccountServiceOuterClass.BindBillableObjectMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_billing_v1_GetBillingAccountRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_billing_v1_GetBillingAccountRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_billing_v1_ListBillingAccountsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_billing_v1_ListBillingAccountsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_billing_v1_ListBillingAccountsResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_billing_v1_ListBillingAccountsResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_billing_v1_ListBillableObjectBindingsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_billing_v1_ListBillableObjectBindingsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_billing_v1_ListBillableObjectBindingsResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_billing_v1_ListBillableObjectBindingsResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_billing_v1_BindBillableObjectRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_billing_v1_BindBillableObjectRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_billing_v1_BindBillableObjectMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_billing_v1_BindBillableObjectMetadata_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n5yandex/cloud/billing/v1/billing_accoun" +
"t_service.proto\022\027yandex.cloud.billing.v1" +
"\032\034google/api/annotations.proto\032 yandex/c" +
"loud/access/access.proto\032-yandex/cloud/b" +
"illing/v1/billing_account.proto\032-yandex/" +
"cloud/billing/v1/billable_object.proto\032&" +
"yandex/cloud/operation/operation.proto\032 " +
"yandex/cloud/api/operation.proto\032\035yandex" +
"/cloud/validation.proto\"4\n\030GetBillingAcc" +
"ountRequest\022\030\n\002id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\"Z\n" +
"\032ListBillingAccountsRequest\022\035\n\tpage_size" +
"\030\002 \001(\003B\n\372\3071\006<=1000\022\035\n\npage_token\030\003 \001(\tB\t" +
"\212\3101\005<=100\"y\n\033ListBillingAccountsResponse" +
"\022A\n\020billing_accounts\030\001 \003(\0132\'.yandex.clou" +
"d.billing.v1.BillingAccount\022\027\n\017next_page" +
"_token\030\002 \001(\t\"\213\001\n!ListBillableObjectBindi" +
"ngsRequest\022(\n\022billing_account_id\030\001 \001(\tB\014" +
"\350\3071\001\212\3101\004<=50\022\035\n\tpage_size\030\002 \001(\003B\n\372\3071\006<=1" +
"000\022\035\n\npage_token\030\003 \001(\tB\t\212\3101\005<=100\"\217\001\n\"L" +
"istBillableObjectBindingsResponse\022P\n\030bil" +
"lable_object_bindings\030\001 \003(\0132..yandex.clo" +
"ud.billing.v1.BillableObjectBinding\022\027\n\017n" +
"ext_page_token\030\002 \001(\t\"\207\001\n\031BindBillableObj" +
"ectRequest\022(\n\022billing_account_id\030\001 \001(\tB\014" +
"\350\3071\001\212\3101\004<=50\022@\n\017billable_object\030\002 \001(\0132\'." +
"yandex.cloud.billing.v1.BillableObject\"8" +
"\n\032BindBillableObjectMetadata\022\032\n\022billable" +
"_object_id\030\001 \001(\t2\331\t\n\025BillingAccountServi" +
"ce\022\213\001\n\003Get\0221.yandex.cloud.billing.v1.Get" +
"BillingAccountRequest\032\'.yandex.cloud.bil" +
"ling.v1.BillingAccount\"(\202\323\344\223\002\"\022 /billing" +
"/v1/billingAccounts/{id}\022\226\001\n\004List\0223.yand" +
"ex.cloud.billing.v1.ListBillingAccountsR" +
"equest\0324.yandex.cloud.billing.v1.ListBil" +
"lingAccountsResponse\"#\202\323\344\223\002\035\022\033/billing/v" +
"1/billingAccounts\022\346\001\n\032ListBillableObject" +
"Bindings\022:.yandex.cloud.billing.v1.ListB" +
"illableObjectBindingsRequest\032;.yandex.cl" +
"oud.billing.v1.ListBillableObjectBinding" +
"sResponse\"O\202\323\344\223\002I\022G/billing/v1/billingAc" +
"counts/{billing_account_id}/billableObje" +
"ctBindings\022\367\001\n\022BindBillableObject\0222.yand" +
"ex.cloud.billing.v1.BindBillableObjectRe" +
"quest\032!.yandex.cloud.operation.Operation" +
"\"\211\001\202\323\344\223\002L\"G/billing/v1/billingAccounts/{" +
"billing_account_id}/billableObjectBindin" +
"gs:\001*\262\322*3\n\032BindBillableObjectMetadata\022\025B" +
"illableObjectBinding\022\273\001\n\022ListAccessBindi" +
"ngs\022..yandex.cloud.access.ListAccessBind" +
"ingsRequest\032/.yandex.cloud.access.ListAc" +
"cessBindingsResponse\"D\202\323\344\223\002>\022/billing/v1/billingAccounts/{" +
"resource_id}:updateAccessBindings:\001*\262\322*<" +
"\n#access.UpdateAccessBindingsMetadata\022\025g" +
"oogle.protobuf.EmptyBb\n\033yandex.cloud.api" +
".billing.v1ZCgithub.com/yandex-cloud/go-" +
"genproto/yandex/cloud/billing/v1;billing" +
"b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.AnnotationsProto.getDescriptor(),
yandex.cloud.api.access.Access.getDescriptor(),
yandex.cloud.api.billing.v1.BillingAccountOuterClass.getDescriptor(),
yandex.cloud.api.billing.v1.BillableObjectOuterClass.getDescriptor(),
yandex.cloud.api.operation.OperationOuterClass.getDescriptor(),
yandex.cloud.api.OperationOuterClass.getDescriptor(),
yandex.cloud.api.Validation.getDescriptor(),
});
internal_static_yandex_cloud_billing_v1_GetBillingAccountRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_billing_v1_GetBillingAccountRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_billing_v1_GetBillingAccountRequest_descriptor,
new java.lang.String[] { "Id", });
internal_static_yandex_cloud_billing_v1_ListBillingAccountsRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_yandex_cloud_billing_v1_ListBillingAccountsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_billing_v1_ListBillingAccountsRequest_descriptor,
new java.lang.String[] { "PageSize", "PageToken", });
internal_static_yandex_cloud_billing_v1_ListBillingAccountsResponse_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_yandex_cloud_billing_v1_ListBillingAccountsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_billing_v1_ListBillingAccountsResponse_descriptor,
new java.lang.String[] { "BillingAccounts", "NextPageToken", });
internal_static_yandex_cloud_billing_v1_ListBillableObjectBindingsRequest_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_yandex_cloud_billing_v1_ListBillableObjectBindingsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_billing_v1_ListBillableObjectBindingsRequest_descriptor,
new java.lang.String[] { "BillingAccountId", "PageSize", "PageToken", });
internal_static_yandex_cloud_billing_v1_ListBillableObjectBindingsResponse_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_yandex_cloud_billing_v1_ListBillableObjectBindingsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_billing_v1_ListBillableObjectBindingsResponse_descriptor,
new java.lang.String[] { "BillableObjectBindings", "NextPageToken", });
internal_static_yandex_cloud_billing_v1_BindBillableObjectRequest_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_yandex_cloud_billing_v1_BindBillableObjectRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_billing_v1_BindBillableObjectRequest_descriptor,
new java.lang.String[] { "BillingAccountId", "BillableObject", });
internal_static_yandex_cloud_billing_v1_BindBillableObjectMetadata_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_yandex_cloud_billing_v1_BindBillableObjectMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_billing_v1_BindBillableObjectMetadata_descriptor,
new java.lang.String[] { "BillableObjectId", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.AnnotationsProto.http);
registry.add(yandex.cloud.api.OperationOuterClass.operation);
registry.add(yandex.cloud.api.Validation.length);
registry.add(yandex.cloud.api.Validation.required);
registry.add(yandex.cloud.api.Validation.value);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.api.AnnotationsProto.getDescriptor();
yandex.cloud.api.access.Access.getDescriptor();
yandex.cloud.api.billing.v1.BillingAccountOuterClass.getDescriptor();
yandex.cloud.api.billing.v1.BillableObjectOuterClass.getDescriptor();
yandex.cloud.api.operation.OperationOuterClass.getDescriptor();
yandex.cloud.api.OperationOuterClass.getDescriptor();
yandex.cloud.api.Validation.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy