All Downloads are FREE. Search and download functionalities are using the official Maven repository.

yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/datasphere/v2/community_service.proto

package yandex.cloud.api.datasphere.v2;

public final class CommunityServiceOuterClass {
  private CommunityServiceOuterClass() {}
  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 CreateCommunityRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.datasphere.v2.CreateCommunityRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Name of the community.
     * 
* * string name = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9\320\201\321\221\320\220-\321\217]\\S{1,61}[a-zA-Z0-9\320\201\321\221\320\220-\321\217]", (.yandex.cloud.length) = "<=63"]; * @return The name. */ java.lang.String getName(); /** *
     * Name of the community.
     * 
* * string name = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9\320\201\321\221\320\220-\321\217]\\S{1,61}[a-zA-Z0-9\320\201\321\221\320\220-\321\217]", (.yandex.cloud.length) = "<=63"]; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Description of the community.
     * 
* * string description = 2; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the community.
     * 
* * string description = 2; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * ID of the organization where community should be created.
     * 
* * string organization_id = 3 [(.yandex.cloud.required) = true]; * @return The organizationId. */ java.lang.String getOrganizationId(); /** *
     * ID of the organization where community should be created.
     * 
* * string organization_id = 3 [(.yandex.cloud.required) = true]; * @return The bytes for organizationId. */ com.google.protobuf.ByteString getOrganizationIdBytes(); /** *
     * ID of the billing account for the created community. Optional, billing account could be bound to community later.
     * 
* * string billing_account_id = 4; * @return The billingAccountId. */ java.lang.String getBillingAccountId(); /** *
     * ID of the billing account for the created community. Optional, billing account could be bound to community later.
     * 
* * string billing_account_id = 4; * @return The bytes for billingAccountId. */ com.google.protobuf.ByteString getBillingAccountIdBytes(); /** *
     * Labels of the community.
     * 
* * map<string, string> labels = 5; */ int getLabelsCount(); /** *
     * Labels of the community.
     * 
* * map<string, string> labels = 5; */ boolean containsLabels( java.lang.String key); /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** *
     * Labels of the community.
     * 
* * map<string, string> labels = 5; */ java.util.Map getLabelsMap(); /** *
     * Labels of the community.
     * 
* * map<string, string> labels = 5; */ java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * Labels of the community.
     * 
* * map<string, string> labels = 5; */ java.lang.String getLabelsOrThrow( java.lang.String key); } /** * Protobuf type {@code yandex.cloud.datasphere.v2.CreateCommunityRequest} */ public static final class CreateCommunityRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.datasphere.v2.CreateCommunityRequest) CreateCommunityRequestOrBuilder { private static final long serialVersionUID = 0L; // Use CreateCommunityRequest.newBuilder() to construct. private CreateCommunityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateCommunityRequest() { name_ = ""; description_ = ""; organizationId_ = ""; billingAccountId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreateCommunityRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreateCommunityRequest( 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: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); organizationId_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); billingAccountId_ = s; break; } case 42: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); labels_.getMutableMap().put( labels__.getKey(), labels__.getValue()); 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.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_CreateCommunityRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_CreateCommunityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest.class, yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * Name of the community.
     * 
* * string name = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9\320\201\321\221\320\220-\321\217]\\S{1,61}[a-zA-Z0-9\320\201\321\221\320\220-\321\217]", (.yandex.cloud.length) = "<=63"]; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
     * Name of the community.
     * 
* * string name = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9\320\201\321\221\320\220-\321\217]\\S{1,61}[a-zA-Z0-9\320\201\321\221\320\220-\321\217]", (.yandex.cloud.length) = "<=63"]; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** *
     * Description of the community.
     * 
* * string description = 2; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; } } /** *
     * Description of the community.
     * 
* * string description = 2; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ORGANIZATION_ID_FIELD_NUMBER = 3; private volatile java.lang.Object organizationId_; /** *
     * ID of the organization where community should be created.
     * 
* * string organization_id = 3 [(.yandex.cloud.required) = true]; * @return The organizationId. */ @java.lang.Override public java.lang.String getOrganizationId() { java.lang.Object ref = organizationId_; 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(); organizationId_ = s; return s; } } /** *
     * ID of the organization where community should be created.
     * 
* * string organization_id = 3 [(.yandex.cloud.required) = true]; * @return The bytes for organizationId. */ @java.lang.Override public com.google.protobuf.ByteString getOrganizationIdBytes() { java.lang.Object ref = organizationId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); organizationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BILLING_ACCOUNT_ID_FIELD_NUMBER = 4; private volatile java.lang.Object billingAccountId_; /** *
     * ID of the billing account for the created community. Optional, billing account could be bound to community later.
     * 
* * string billing_account_id = 4; * @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 for the created community. Optional, billing account could be bound to community later.
     * 
* * string billing_account_id = 4; * @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 LABELS_FIELD_NUMBER = 5; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_CreateCommunityRequest_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
     * Labels of the community.
     * 
* * map<string, string> labels = 5; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
     * Labels of the community.
     * 
* * map<string, string> labels = 5; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * Labels of the community.
     * 
* * map<string, string> labels = 5; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Labels of the community.
     * 
* * map<string, string> labels = 5; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } 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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organizationId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, organizationId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingAccountId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, billingAccountId_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); 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(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organizationId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, organizationId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingAccountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, billingAccountId_); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, labels__); } 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.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest)) { return super.equals(obj); } yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest other = (yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest) obj; if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!getOrganizationId() .equals(other.getOrganizationId())) return false; if (!getBillingAccountId() .equals(other.getBillingAccountId())) return false; if (!internalGetLabels().equals( other.internalGetLabels())) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; hash = (53 * hash) + getOrganizationId().hashCode(); hash = (37 * hash) + BILLING_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getBillingAccountId().hashCode(); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest 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.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest 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.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest 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.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest 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.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest 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.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest 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.datasphere.v2.CreateCommunityRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.datasphere.v2.CreateCommunityRequest) yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_CreateCommunityRequest_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 5: return internalGetMutableLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_CreateCommunityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest.class, yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest.Builder.class); } // Construct using yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest.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(); name_ = ""; description_ = ""; organizationId_ = ""; billingAccountId_ = ""; internalGetMutableLabels().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_CreateCommunityRequest_descriptor; } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest getDefaultInstanceForType() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest build() { yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest buildPartial() { yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest result = new yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.description_ = description_; result.organizationId_ = organizationId_; result.billingAccountId_ = billingAccountId_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); 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.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest) { return mergeFrom((yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest other) { if (other == yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (!other.getOrganizationId().isEmpty()) { organizationId_ = other.organizationId_; onChanged(); } if (!other.getBillingAccountId().isEmpty()) { billingAccountId_ = other.billingAccountId_; onChanged(); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); 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.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * Name of the community.
       * 
* * string name = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9\320\201\321\221\320\220-\321\217]\\S{1,61}[a-zA-Z0-9\320\201\321\221\320\220-\321\217]", (.yandex.cloud.length) = "<=63"]; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the community.
       * 
* * string name = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9\320\201\321\221\320\220-\321\217]\\S{1,61}[a-zA-Z0-9\320\201\321\221\320\220-\321\217]", (.yandex.cloud.length) = "<=63"]; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the community.
       * 
* * string name = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9\320\201\321\221\320\220-\321\217]\\S{1,61}[a-zA-Z0-9\320\201\321\221\320\220-\321\217]", (.yandex.cloud.length) = "<=63"]; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Name of the community.
       * 
* * string name = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9\320\201\321\221\320\220-\321\217]\\S{1,61}[a-zA-Z0-9\320\201\321\221\320\220-\321\217]", (.yandex.cloud.length) = "<=63"]; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the community.
       * 
* * string name = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9\320\201\321\221\320\220-\321\217]\\S{1,61}[a-zA-Z0-9\320\201\321\221\320\220-\321\217]", (.yandex.cloud.length) = "<=63"]; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * Description of the community.
       * 
* * string description = 2; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Description of the community.
       * 
* * string description = 2; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Description of the community.
       * 
* * string description = 2; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
       * Description of the community.
       * 
* * string description = 2; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Description of the community.
       * 
* * string description = 2; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private java.lang.Object organizationId_ = ""; /** *
       * ID of the organization where community should be created.
       * 
* * string organization_id = 3 [(.yandex.cloud.required) = true]; * @return The organizationId. */ public java.lang.String getOrganizationId() { java.lang.Object ref = organizationId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organizationId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the organization where community should be created.
       * 
* * string organization_id = 3 [(.yandex.cloud.required) = true]; * @return The bytes for organizationId. */ public com.google.protobuf.ByteString getOrganizationIdBytes() { java.lang.Object ref = organizationId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); organizationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the organization where community should be created.
       * 
* * string organization_id = 3 [(.yandex.cloud.required) = true]; * @param value The organizationId to set. * @return This builder for chaining. */ public Builder setOrganizationId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } organizationId_ = value; onChanged(); return this; } /** *
       * ID of the organization where community should be created.
       * 
* * string organization_id = 3 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearOrganizationId() { organizationId_ = getDefaultInstance().getOrganizationId(); onChanged(); return this; } /** *
       * ID of the organization where community should be created.
       * 
* * string organization_id = 3 [(.yandex.cloud.required) = true]; * @param value The bytes for organizationId to set. * @return This builder for chaining. */ public Builder setOrganizationIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); organizationId_ = value; onChanged(); return this; } private java.lang.Object billingAccountId_ = ""; /** *
       * ID of the billing account for the created community. Optional, billing account could be bound to community later.
       * 
* * string billing_account_id = 4; * @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 for the created community. Optional, billing account could be bound to community later.
       * 
* * string billing_account_id = 4; * @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 for the created community. Optional, billing account could be bound to community later.
       * 
* * string billing_account_id = 4; * @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 for the created community. Optional, billing account could be bound to community later.
       * 
* * string billing_account_id = 4; * @return This builder for chaining. */ public Builder clearBillingAccountId() { billingAccountId_ = getDefaultInstance().getBillingAccountId(); onChanged(); return this; } /** *
       * ID of the billing account for the created community. Optional, billing account could be bound to community later.
       * 
* * string billing_account_id = 4; * @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 com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { onChanged();; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
       * Labels of the community.
       * 
* * map<string, string> labels = 5; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
       * Labels of the community.
       * 
* * map<string, string> labels = 5; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * Labels of the community.
       * 
* * map<string, string> labels = 5; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Labels of the community.
       * 
* * map<string, string> labels = 5; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { internalGetMutableLabels().getMutableMap() .clear(); return this; } /** *
       * Labels of the community.
       * 
* * map<string, string> labels = 5; */ public Builder removeLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** *
       * Labels of the community.
       * 
* * map<string, string> labels = 5; */ public Builder putLabels( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap() .put(key, value); return this; } /** *
       * Labels of the community.
       * 
* * map<string, string> labels = 5; */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); 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.datasphere.v2.CreateCommunityRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.datasphere.v2.CreateCommunityRequest) private static final yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest(); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreateCommunityRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreateCommunityRequest(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.datasphere.v2.CommunityServiceOuterClass.CreateCommunityRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateCommunityMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.datasphere.v2.CreateCommunityMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the community that is being created.
     * 
* * string community_id = 1; * @return The communityId. */ java.lang.String getCommunityId(); /** *
     * ID of the community that is being created.
     * 
* * string community_id = 1; * @return The bytes for communityId. */ com.google.protobuf.ByteString getCommunityIdBytes(); } /** * Protobuf type {@code yandex.cloud.datasphere.v2.CreateCommunityMetadata} */ public static final class CreateCommunityMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.datasphere.v2.CreateCommunityMetadata) CreateCommunityMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use CreateCommunityMetadata.newBuilder() to construct. private CreateCommunityMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateCommunityMetadata() { communityId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreateCommunityMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreateCommunityMetadata( 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(); communityId_ = 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.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_CreateCommunityMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_CreateCommunityMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata.class, yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata.Builder.class); } public static final int COMMUNITY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object communityId_; /** *
     * ID of the community that is being created.
     * 
* * string community_id = 1; * @return The communityId. */ @java.lang.Override public java.lang.String getCommunityId() { java.lang.Object ref = communityId_; 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(); communityId_ = s; return s; } } /** *
     * ID of the community that is being created.
     * 
* * string community_id = 1; * @return The bytes for communityId. */ @java.lang.Override public com.google.protobuf.ByteString getCommunityIdBytes() { java.lang.Object ref = communityId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); communityId_ = 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(communityId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, communityId_); } 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(communityId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, communityId_); } 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.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata)) { return super.equals(obj); } yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata other = (yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata) obj; if (!getCommunityId() .equals(other.getCommunityId())) 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) + COMMUNITY_ID_FIELD_NUMBER; hash = (53 * hash) + getCommunityId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata 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.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata 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.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata 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.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata 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.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata 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.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata 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.datasphere.v2.CreateCommunityMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.datasphere.v2.CreateCommunityMetadata) yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_CreateCommunityMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_CreateCommunityMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata.class, yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata.Builder.class); } // Construct using yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata.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(); communityId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_CreateCommunityMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata getDefaultInstanceForType() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata build() { yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata buildPartial() { yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata result = new yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata(this); result.communityId_ = communityId_; 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.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata) { return mergeFrom((yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata other) { if (other == yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata.getDefaultInstance()) return this; if (!other.getCommunityId().isEmpty()) { communityId_ = other.communityId_; 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.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object communityId_ = ""; /** *
       * ID of the community that is being created.
       * 
* * string community_id = 1; * @return The communityId. */ public java.lang.String getCommunityId() { java.lang.Object ref = communityId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); communityId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the community that is being created.
       * 
* * string community_id = 1; * @return The bytes for communityId. */ public com.google.protobuf.ByteString getCommunityIdBytes() { java.lang.Object ref = communityId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); communityId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the community that is being created.
       * 
* * string community_id = 1; * @param value The communityId to set. * @return This builder for chaining. */ public Builder setCommunityId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } communityId_ = value; onChanged(); return this; } /** *
       * ID of the community that is being created.
       * 
* * string community_id = 1; * @return This builder for chaining. */ public Builder clearCommunityId() { communityId_ = getDefaultInstance().getCommunityId(); onChanged(); return this; } /** *
       * ID of the community that is being created.
       * 
* * string community_id = 1; * @param value The bytes for communityId to set. * @return This builder for chaining. */ public Builder setCommunityIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); communityId_ = 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.datasphere.v2.CreateCommunityMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.datasphere.v2.CreateCommunityMetadata) private static final yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata(); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreateCommunityMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreateCommunityMetadata(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.datasphere.v2.CommunityServiceOuterClass.CreateCommunityMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetCommunityRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.datasphere.v2.GetCommunityRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the community.
     * 
* * string community_id = 1 [(.yandex.cloud.required) = true]; * @return The communityId. */ java.lang.String getCommunityId(); /** *
     * ID of the community.
     * 
* * string community_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for communityId. */ com.google.protobuf.ByteString getCommunityIdBytes(); } /** * Protobuf type {@code yandex.cloud.datasphere.v2.GetCommunityRequest} */ public static final class GetCommunityRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.datasphere.v2.GetCommunityRequest) GetCommunityRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetCommunityRequest.newBuilder() to construct. private GetCommunityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetCommunityRequest() { communityId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GetCommunityRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetCommunityRequest( 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(); communityId_ = 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.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_GetCommunityRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_GetCommunityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest.class, yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest.Builder.class); } public static final int COMMUNITY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object communityId_; /** *
     * ID of the community.
     * 
* * string community_id = 1 [(.yandex.cloud.required) = true]; * @return The communityId. */ @java.lang.Override public java.lang.String getCommunityId() { java.lang.Object ref = communityId_; 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(); communityId_ = s; return s; } } /** *
     * ID of the community.
     * 
* * string community_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for communityId. */ @java.lang.Override public com.google.protobuf.ByteString getCommunityIdBytes() { java.lang.Object ref = communityId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); communityId_ = 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(communityId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, communityId_); } 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(communityId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, communityId_); } 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.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest)) { return super.equals(obj); } yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest other = (yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest) obj; if (!getCommunityId() .equals(other.getCommunityId())) 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) + COMMUNITY_ID_FIELD_NUMBER; hash = (53 * hash) + getCommunityId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest 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.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest 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.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest 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.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest 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.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest 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.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest 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.datasphere.v2.GetCommunityRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.datasphere.v2.GetCommunityRequest) yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_GetCommunityRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_GetCommunityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest.class, yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest.Builder.class); } // Construct using yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest.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(); communityId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_GetCommunityRequest_descriptor; } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest getDefaultInstanceForType() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest build() { yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest buildPartial() { yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest result = new yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest(this); result.communityId_ = communityId_; 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.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest) { return mergeFrom((yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest other) { if (other == yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest.getDefaultInstance()) return this; if (!other.getCommunityId().isEmpty()) { communityId_ = other.communityId_; 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.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object communityId_ = ""; /** *
       * ID of the community.
       * 
* * string community_id = 1 [(.yandex.cloud.required) = true]; * @return The communityId. */ public java.lang.String getCommunityId() { java.lang.Object ref = communityId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); communityId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the community.
       * 
* * string community_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for communityId. */ public com.google.protobuf.ByteString getCommunityIdBytes() { java.lang.Object ref = communityId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); communityId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the community.
       * 
* * string community_id = 1 [(.yandex.cloud.required) = true]; * @param value The communityId to set. * @return This builder for chaining. */ public Builder setCommunityId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } communityId_ = value; onChanged(); return this; } /** *
       * ID of the community.
       * 
* * string community_id = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearCommunityId() { communityId_ = getDefaultInstance().getCommunityId(); onChanged(); return this; } /** *
       * ID of the community.
       * 
* * string community_id = 1 [(.yandex.cloud.required) = true]; * @param value The bytes for communityId to set. * @return This builder for chaining. */ public Builder setCommunityIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); communityId_ = 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.datasphere.v2.GetCommunityRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.datasphere.v2.GetCommunityRequest) private static final yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest(); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetCommunityRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetCommunityRequest(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.datasphere.v2.CommunityServiceOuterClass.GetCommunityRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateCommunityRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.datasphere.v2.UpdateCommunityRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the community.
     * 
* * string community_id = 1 [(.yandex.cloud.required) = true]; * @return The communityId. */ java.lang.String getCommunityId(); /** *
     * ID of the community.
     * 
* * string community_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for communityId. */ com.google.protobuf.ByteString getCommunityIdBytes(); /** *
     * Field mask that specifies which fields of the Community resource are going to be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 2; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** *
     * Field mask that specifies which fields of the Community resource are going to be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 2; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** *
     * Field mask that specifies which fields of the Community resource are going to be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 2; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** *
     * Name of the community.
     * 
* * string name = 3; * @return The name. */ java.lang.String getName(); /** *
     * Name of the community.
     * 
* * string name = 3; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Description of the community.
     * 
* * string description = 4; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the community.
     * 
* * string description = 4; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Labels of the community.
     * 
* * map<string, string> labels = 5; */ int getLabelsCount(); /** *
     * Labels of the community.
     * 
* * map<string, string> labels = 5; */ boolean containsLabels( java.lang.String key); /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** *
     * Labels of the community.
     * 
* * map<string, string> labels = 5; */ java.util.Map getLabelsMap(); /** *
     * Labels of the community.
     * 
* * map<string, string> labels = 5; */ java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * Labels of the community.
     * 
* * map<string, string> labels = 5; */ java.lang.String getLabelsOrThrow( java.lang.String key); } /** * Protobuf type {@code yandex.cloud.datasphere.v2.UpdateCommunityRequest} */ public static final class UpdateCommunityRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.datasphere.v2.UpdateCommunityRequest) UpdateCommunityRequestOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateCommunityRequest.newBuilder() to construct. private UpdateCommunityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateCommunityRequest() { communityId_ = ""; name_ = ""; description_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdateCommunityRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateCommunityRequest( 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: { java.lang.String s = input.readStringRequireUtf8(); communityId_ = s; break; } case 18: { com.google.protobuf.FieldMask.Builder subBuilder = null; if (updateMask_ != null) { subBuilder = updateMask_.toBuilder(); } updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(updateMask_); updateMask_ = subBuilder.buildPartial(); } break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 42: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); labels_.getMutableMap().put( labels__.getKey(), labels__.getValue()); 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.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_UpdateCommunityRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_UpdateCommunityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest.class, yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest.Builder.class); } public static final int COMMUNITY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object communityId_; /** *
     * ID of the community.
     * 
* * string community_id = 1 [(.yandex.cloud.required) = true]; * @return The communityId. */ @java.lang.Override public java.lang.String getCommunityId() { java.lang.Object ref = communityId_; 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(); communityId_ = s; return s; } } /** *
     * ID of the community.
     * 
* * string community_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for communityId. */ @java.lang.Override public com.google.protobuf.ByteString getCommunityIdBytes() { java.lang.Object ref = communityId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); communityId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** *
     * Field mask that specifies which fields of the Community resource are going to be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 2; * @return Whether the updateMask field is set. */ @java.lang.Override public boolean hasUpdateMask() { return updateMask_ != null; } /** *
     * Field mask that specifies which fields of the Community resource are going to be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 2; * @return The updateMask. */ @java.lang.Override public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** *
     * Field mask that specifies which fields of the Community resource are going to be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 2; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return getUpdateMask(); } public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** *
     * Name of the community.
     * 
* * string name = 3; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
     * Name of the community.
     * 
* * string name = 3; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 4; private volatile java.lang.Object description_; /** *
     * Description of the community.
     * 
* * string description = 4; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; } } /** *
     * Description of the community.
     * 
* * string description = 4; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABELS_FIELD_NUMBER = 5; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_UpdateCommunityRequest_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
     * Labels of the community.
     * 
* * map<string, string> labels = 5; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
     * Labels of the community.
     * 
* * map<string, string> labels = 5; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * Labels of the community.
     * 
* * map<string, string> labels = 5; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Labels of the community.
     * 
* * map<string, string> labels = 5; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } 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(communityId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, communityId_); } if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); 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(communityId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, communityId_); } if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, labels__); } 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.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest)) { return super.equals(obj); } yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest other = (yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest) obj; if (!getCommunityId() .equals(other.getCommunityId())) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { if (!getUpdateMask() .equals(other.getUpdateMask())) return false; } if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!internalGetLabels().equals( other.internalGetLabels())) 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) + COMMUNITY_ID_FIELD_NUMBER; hash = (53 * hash) + getCommunityId().hashCode(); if (hasUpdateMask()) { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest 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.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest 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.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest 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.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest 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.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest 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.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest 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.datasphere.v2.UpdateCommunityRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.datasphere.v2.UpdateCommunityRequest) yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_UpdateCommunityRequest_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 5: return internalGetMutableLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_UpdateCommunityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest.class, yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest.Builder.class); } // Construct using yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest.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(); communityId_ = ""; if (updateMaskBuilder_ == null) { updateMask_ = null; } else { updateMask_ = null; updateMaskBuilder_ = null; } name_ = ""; description_ = ""; internalGetMutableLabels().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_UpdateCommunityRequest_descriptor; } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest getDefaultInstanceForType() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest build() { yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest buildPartial() { yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest result = new yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest(this); int from_bitField0_ = bitField0_; result.communityId_ = communityId_; if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { result.updateMask_ = updateMaskBuilder_.build(); } result.name_ = name_; result.description_ = description_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); 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.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest) { return mergeFrom((yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest other) { if (other == yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest.getDefaultInstance()) return this; if (!other.getCommunityId().isEmpty()) { communityId_ = other.communityId_; onChanged(); } if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); 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.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object communityId_ = ""; /** *
       * ID of the community.
       * 
* * string community_id = 1 [(.yandex.cloud.required) = true]; * @return The communityId. */ public java.lang.String getCommunityId() { java.lang.Object ref = communityId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); communityId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the community.
       * 
* * string community_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for communityId. */ public com.google.protobuf.ByteString getCommunityIdBytes() { java.lang.Object ref = communityId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); communityId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the community.
       * 
* * string community_id = 1 [(.yandex.cloud.required) = true]; * @param value The communityId to set. * @return This builder for chaining. */ public Builder setCommunityId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } communityId_ = value; onChanged(); return this; } /** *
       * ID of the community.
       * 
* * string community_id = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearCommunityId() { communityId_ = getDefaultInstance().getCommunityId(); onChanged(); return this; } /** *
       * ID of the community.
       * 
* * string community_id = 1 [(.yandex.cloud.required) = true]; * @param value The bytes for communityId to set. * @return This builder for chaining. */ public Builder setCommunityIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); communityId_ = value; onChanged(); return this; } private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** *
       * Field mask that specifies which fields of the Community resource are going to be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** *
       * Field mask that specifies which fields of the Community resource are going to be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** *
       * Field mask that specifies which fields of the Community resource are going to be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updateMask_ = value; onChanged(); } else { updateMaskBuilder_.setMessage(value); } return this; } /** *
       * Field mask that specifies which fields of the Community resource are going to be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public Builder setUpdateMask( com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Field mask that specifies which fields of the Community resource are going to be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } return this; } /** *
       * Field mask that specifies which fields of the Community resource are going to be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { updateMask_ = null; onChanged(); } else { updateMask_ = null; updateMaskBuilder_ = null; } return this; } /** *
       * Field mask that specifies which fields of the Community resource are going to be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** *
       * Field mask that specifies which fields of the Community resource are going to be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** *
       * Field mask that specifies which fields of the Community resource are going to be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } private java.lang.Object name_ = ""; /** *
       * Name of the community.
       * 
* * string name = 3; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the community.
       * 
* * string name = 3; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the community.
       * 
* * string name = 3; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Name of the community.
       * 
* * string name = 3; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the community.
       * 
* * string name = 3; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * Description of the community.
       * 
* * string description = 4; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Description of the community.
       * 
* * string description = 4; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Description of the community.
       * 
* * string description = 4; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
       * Description of the community.
       * 
* * string description = 4; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Description of the community.
       * 
* * string description = 4; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { onChanged();; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
       * Labels of the community.
       * 
* * map<string, string> labels = 5; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
       * Labels of the community.
       * 
* * map<string, string> labels = 5; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * Labels of the community.
       * 
* * map<string, string> labels = 5; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Labels of the community.
       * 
* * map<string, string> labels = 5; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { internalGetMutableLabels().getMutableMap() .clear(); return this; } /** *
       * Labels of the community.
       * 
* * map<string, string> labels = 5; */ public Builder removeLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** *
       * Labels of the community.
       * 
* * map<string, string> labels = 5; */ public Builder putLabels( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap() .put(key, value); return this; } /** *
       * Labels of the community.
       * 
* * map<string, string> labels = 5; */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); 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.datasphere.v2.UpdateCommunityRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.datasphere.v2.UpdateCommunityRequest) private static final yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest(); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateCommunityRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdateCommunityRequest(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.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateCommunityMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.datasphere.v2.UpdateCommunityMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the community that is being updated.
     * 
* * string community_id = 1; * @return The communityId. */ java.lang.String getCommunityId(); /** *
     * ID of the community that is being updated.
     * 
* * string community_id = 1; * @return The bytes for communityId. */ com.google.protobuf.ByteString getCommunityIdBytes(); } /** * Protobuf type {@code yandex.cloud.datasphere.v2.UpdateCommunityMetadata} */ public static final class UpdateCommunityMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.datasphere.v2.UpdateCommunityMetadata) UpdateCommunityMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateCommunityMetadata.newBuilder() to construct. private UpdateCommunityMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateCommunityMetadata() { communityId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdateCommunityMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateCommunityMetadata( 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(); communityId_ = 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.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_UpdateCommunityMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_UpdateCommunityMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata.class, yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata.Builder.class); } public static final int COMMUNITY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object communityId_; /** *
     * ID of the community that is being updated.
     * 
* * string community_id = 1; * @return The communityId. */ @java.lang.Override public java.lang.String getCommunityId() { java.lang.Object ref = communityId_; 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(); communityId_ = s; return s; } } /** *
     * ID of the community that is being updated.
     * 
* * string community_id = 1; * @return The bytes for communityId. */ @java.lang.Override public com.google.protobuf.ByteString getCommunityIdBytes() { java.lang.Object ref = communityId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); communityId_ = 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(communityId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, communityId_); } 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(communityId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, communityId_); } 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.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata)) { return super.equals(obj); } yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata other = (yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata) obj; if (!getCommunityId() .equals(other.getCommunityId())) 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) + COMMUNITY_ID_FIELD_NUMBER; hash = (53 * hash) + getCommunityId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata 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.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata 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.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata 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.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata 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.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata 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.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata 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.datasphere.v2.UpdateCommunityMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.datasphere.v2.UpdateCommunityMetadata) yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_UpdateCommunityMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_UpdateCommunityMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata.class, yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata.Builder.class); } // Construct using yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata.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(); communityId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_UpdateCommunityMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata getDefaultInstanceForType() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata build() { yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata buildPartial() { yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata result = new yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata(this); result.communityId_ = communityId_; 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.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata) { return mergeFrom((yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata other) { if (other == yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata.getDefaultInstance()) return this; if (!other.getCommunityId().isEmpty()) { communityId_ = other.communityId_; 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.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object communityId_ = ""; /** *
       * ID of the community that is being updated.
       * 
* * string community_id = 1; * @return The communityId. */ public java.lang.String getCommunityId() { java.lang.Object ref = communityId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); communityId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the community that is being updated.
       * 
* * string community_id = 1; * @return The bytes for communityId. */ public com.google.protobuf.ByteString getCommunityIdBytes() { java.lang.Object ref = communityId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); communityId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the community that is being updated.
       * 
* * string community_id = 1; * @param value The communityId to set. * @return This builder for chaining. */ public Builder setCommunityId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } communityId_ = value; onChanged(); return this; } /** *
       * ID of the community that is being updated.
       * 
* * string community_id = 1; * @return This builder for chaining. */ public Builder clearCommunityId() { communityId_ = getDefaultInstance().getCommunityId(); onChanged(); return this; } /** *
       * ID of the community that is being updated.
       * 
* * string community_id = 1; * @param value The bytes for communityId to set. * @return This builder for chaining. */ public Builder setCommunityIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); communityId_ = 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.datasphere.v2.UpdateCommunityMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.datasphere.v2.UpdateCommunityMetadata) private static final yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata(); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateCommunityMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdateCommunityMetadata(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.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteCommunityRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.datasphere.v2.DeleteCommunityRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the community.
     * 
* * string community_id = 1 [(.yandex.cloud.required) = true]; * @return The communityId. */ java.lang.String getCommunityId(); /** *
     * ID of the community.
     * 
* * string community_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for communityId. */ com.google.protobuf.ByteString getCommunityIdBytes(); } /** * Protobuf type {@code yandex.cloud.datasphere.v2.DeleteCommunityRequest} */ public static final class DeleteCommunityRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.datasphere.v2.DeleteCommunityRequest) DeleteCommunityRequestOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteCommunityRequest.newBuilder() to construct. private DeleteCommunityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteCommunityRequest() { communityId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeleteCommunityRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteCommunityRequest( 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(); communityId_ = 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.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_DeleteCommunityRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_DeleteCommunityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest.class, yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest.Builder.class); } public static final int COMMUNITY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object communityId_; /** *
     * ID of the community.
     * 
* * string community_id = 1 [(.yandex.cloud.required) = true]; * @return The communityId. */ @java.lang.Override public java.lang.String getCommunityId() { java.lang.Object ref = communityId_; 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(); communityId_ = s; return s; } } /** *
     * ID of the community.
     * 
* * string community_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for communityId. */ @java.lang.Override public com.google.protobuf.ByteString getCommunityIdBytes() { java.lang.Object ref = communityId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); communityId_ = 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(communityId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, communityId_); } 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(communityId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, communityId_); } 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.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest)) { return super.equals(obj); } yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest other = (yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest) obj; if (!getCommunityId() .equals(other.getCommunityId())) 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) + COMMUNITY_ID_FIELD_NUMBER; hash = (53 * hash) + getCommunityId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest 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.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest 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.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest 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.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest 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.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest 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.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest 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.datasphere.v2.DeleteCommunityRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.datasphere.v2.DeleteCommunityRequest) yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_DeleteCommunityRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_DeleteCommunityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest.class, yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest.Builder.class); } // Construct using yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest.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(); communityId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_DeleteCommunityRequest_descriptor; } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest getDefaultInstanceForType() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest build() { yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest buildPartial() { yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest result = new yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest(this); result.communityId_ = communityId_; 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.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest) { return mergeFrom((yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest other) { if (other == yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest.getDefaultInstance()) return this; if (!other.getCommunityId().isEmpty()) { communityId_ = other.communityId_; 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.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object communityId_ = ""; /** *
       * ID of the community.
       * 
* * string community_id = 1 [(.yandex.cloud.required) = true]; * @return The communityId. */ public java.lang.String getCommunityId() { java.lang.Object ref = communityId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); communityId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the community.
       * 
* * string community_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for communityId. */ public com.google.protobuf.ByteString getCommunityIdBytes() { java.lang.Object ref = communityId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); communityId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the community.
       * 
* * string community_id = 1 [(.yandex.cloud.required) = true]; * @param value The communityId to set. * @return This builder for chaining. */ public Builder setCommunityId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } communityId_ = value; onChanged(); return this; } /** *
       * ID of the community.
       * 
* * string community_id = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearCommunityId() { communityId_ = getDefaultInstance().getCommunityId(); onChanged(); return this; } /** *
       * ID of the community.
       * 
* * string community_id = 1 [(.yandex.cloud.required) = true]; * @param value The bytes for communityId to set. * @return This builder for chaining. */ public Builder setCommunityIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); communityId_ = 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.datasphere.v2.DeleteCommunityRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.datasphere.v2.DeleteCommunityRequest) private static final yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest(); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeleteCommunityRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteCommunityRequest(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.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteCommunityMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.datasphere.v2.DeleteCommunityMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the community that is being deleted.
     * 
* * string community_id = 1; * @return The communityId. */ java.lang.String getCommunityId(); /** *
     * ID of the community that is being deleted.
     * 
* * string community_id = 1; * @return The bytes for communityId. */ com.google.protobuf.ByteString getCommunityIdBytes(); } /** * Protobuf type {@code yandex.cloud.datasphere.v2.DeleteCommunityMetadata} */ public static final class DeleteCommunityMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.datasphere.v2.DeleteCommunityMetadata) DeleteCommunityMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteCommunityMetadata.newBuilder() to construct. private DeleteCommunityMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteCommunityMetadata() { communityId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeleteCommunityMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteCommunityMetadata( 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(); communityId_ = 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.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_DeleteCommunityMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_DeleteCommunityMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata.class, yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata.Builder.class); } public static final int COMMUNITY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object communityId_; /** *
     * ID of the community that is being deleted.
     * 
* * string community_id = 1; * @return The communityId. */ @java.lang.Override public java.lang.String getCommunityId() { java.lang.Object ref = communityId_; 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(); communityId_ = s; return s; } } /** *
     * ID of the community that is being deleted.
     * 
* * string community_id = 1; * @return The bytes for communityId. */ @java.lang.Override public com.google.protobuf.ByteString getCommunityIdBytes() { java.lang.Object ref = communityId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); communityId_ = 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(communityId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, communityId_); } 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(communityId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, communityId_); } 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.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata)) { return super.equals(obj); } yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata other = (yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata) obj; if (!getCommunityId() .equals(other.getCommunityId())) 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) + COMMUNITY_ID_FIELD_NUMBER; hash = (53 * hash) + getCommunityId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata 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.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata 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.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata 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.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata 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.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata 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.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata 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.datasphere.v2.DeleteCommunityMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.datasphere.v2.DeleteCommunityMetadata) yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_DeleteCommunityMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_DeleteCommunityMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata.class, yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata.Builder.class); } // Construct using yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata.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(); communityId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_DeleteCommunityMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata getDefaultInstanceForType() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata build() { yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata buildPartial() { yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata result = new yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata(this); result.communityId_ = communityId_; 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.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata) { return mergeFrom((yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata other) { if (other == yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata.getDefaultInstance()) return this; if (!other.getCommunityId().isEmpty()) { communityId_ = other.communityId_; 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.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object communityId_ = ""; /** *
       * ID of the community that is being deleted.
       * 
* * string community_id = 1; * @return The communityId. */ public java.lang.String getCommunityId() { java.lang.Object ref = communityId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); communityId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the community that is being deleted.
       * 
* * string community_id = 1; * @return The bytes for communityId. */ public com.google.protobuf.ByteString getCommunityIdBytes() { java.lang.Object ref = communityId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); communityId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the community that is being deleted.
       * 
* * string community_id = 1; * @param value The communityId to set. * @return This builder for chaining. */ public Builder setCommunityId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } communityId_ = value; onChanged(); return this; } /** *
       * ID of the community that is being deleted.
       * 
* * string community_id = 1; * @return This builder for chaining. */ public Builder clearCommunityId() { communityId_ = getDefaultInstance().getCommunityId(); onChanged(); return this; } /** *
       * ID of the community that is being deleted.
       * 
* * string community_id = 1; * @param value The bytes for communityId to set. * @return This builder for chaining. */ public Builder setCommunityIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); communityId_ = 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.datasphere.v2.DeleteCommunityMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.datasphere.v2.DeleteCommunityMetadata) private static final yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata(); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeleteCommunityMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteCommunityMetadata(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.datasphere.v2.CommunityServiceOuterClass.DeleteCommunityMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListCommunitiesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.datasphere.v2.ListCommunitiesRequest) 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 [ListCommunitiesResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     * 
* * int64 page_size = 1; * @return The pageSize. */ long getPageSize(); /** *
     * Page token. To get the next page of results, set [page_token] to the
     * [ListCommunitiesResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 2; * @return The pageToken. */ java.lang.String getPageToken(); /** *
     * Page token. To get the next page of results, set [page_token] to the
     * [ListCommunitiesResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 2; * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); /** *
     * Community name or description pattern.
     * Only communities with names or descriptions matching specified pattern will be returned.
     * 
* * string name_or_description_pattern = 3; * @return The nameOrDescriptionPattern. */ java.lang.String getNameOrDescriptionPattern(); /** *
     * Community name or description pattern.
     * Only communities with names or descriptions matching specified pattern will be returned.
     * 
* * string name_or_description_pattern = 3; * @return The bytes for nameOrDescriptionPattern. */ com.google.protobuf.ByteString getNameOrDescriptionPatternBytes(); /** *
     * ID of the user. Only communities owned by specified user will be returned.
     * 
* * string owned_by_id = 5; * @return The ownedById. */ java.lang.String getOwnedById(); /** *
     * ID of the user. Only communities owned by specified user will be returned.
     * 
* * string owned_by_id = 5; * @return The bytes for ownedById. */ com.google.protobuf.ByteString getOwnedByIdBytes(); /** *
     * If set to true, only public communities will be returned.
     * 
* * bool list_public = 6; * @return The listPublic. */ boolean getListPublic(); /** *
     * ID of the organization to list communities in.
     * 
* * string organization_id = 7 [(.yandex.cloud.required) = true]; * @return The organizationId. */ java.lang.String getOrganizationId(); /** *
     * ID of the organization to list communities in.
     * 
* * string organization_id = 7 [(.yandex.cloud.required) = true]; * @return The bytes for organizationId. */ com.google.protobuf.ByteString getOrganizationIdBytes(); } /** * Protobuf type {@code yandex.cloud.datasphere.v2.ListCommunitiesRequest} */ public static final class ListCommunitiesRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.datasphere.v2.ListCommunitiesRequest) ListCommunitiesRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ListCommunitiesRequest.newBuilder() to construct. private ListCommunitiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListCommunitiesRequest() { pageToken_ = ""; nameOrDescriptionPattern_ = ""; ownedById_ = ""; organizationId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListCommunitiesRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListCommunitiesRequest( 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 8: { pageSize_ = input.readInt64(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); pageToken_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); nameOrDescriptionPattern_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); ownedById_ = s; break; } case 48: { listPublic_ = input.readBool(); break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); organizationId_ = 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.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_ListCommunitiesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_ListCommunitiesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest.class, yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest.Builder.class); } public static final int PAGE_SIZE_FIELD_NUMBER = 1; 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 [ListCommunitiesResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     * 
* * int64 page_size = 1; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** *
     * Page token. To get the next page of results, set [page_token] to the
     * [ListCommunitiesResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 2; * @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
     * [ListCommunitiesResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 2; * @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; } } public static final int NAME_OR_DESCRIPTION_PATTERN_FIELD_NUMBER = 3; private volatile java.lang.Object nameOrDescriptionPattern_; /** *
     * Community name or description pattern.
     * Only communities with names or descriptions matching specified pattern will be returned.
     * 
* * string name_or_description_pattern = 3; * @return The nameOrDescriptionPattern. */ @java.lang.Override public java.lang.String getNameOrDescriptionPattern() { java.lang.Object ref = nameOrDescriptionPattern_; 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(); nameOrDescriptionPattern_ = s; return s; } } /** *
     * Community name or description pattern.
     * Only communities with names or descriptions matching specified pattern will be returned.
     * 
* * string name_or_description_pattern = 3; * @return The bytes for nameOrDescriptionPattern. */ @java.lang.Override public com.google.protobuf.ByteString getNameOrDescriptionPatternBytes() { java.lang.Object ref = nameOrDescriptionPattern_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nameOrDescriptionPattern_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OWNED_BY_ID_FIELD_NUMBER = 5; private volatile java.lang.Object ownedById_; /** *
     * ID of the user. Only communities owned by specified user will be returned.
     * 
* * string owned_by_id = 5; * @return The ownedById. */ @java.lang.Override public java.lang.String getOwnedById() { java.lang.Object ref = ownedById_; 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(); ownedById_ = s; return s; } } /** *
     * ID of the user. Only communities owned by specified user will be returned.
     * 
* * string owned_by_id = 5; * @return The bytes for ownedById. */ @java.lang.Override public com.google.protobuf.ByteString getOwnedByIdBytes() { java.lang.Object ref = ownedById_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ownedById_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LIST_PUBLIC_FIELD_NUMBER = 6; private boolean listPublic_; /** *
     * If set to true, only public communities will be returned.
     * 
* * bool list_public = 6; * @return The listPublic. */ @java.lang.Override public boolean getListPublic() { return listPublic_; } public static final int ORGANIZATION_ID_FIELD_NUMBER = 7; private volatile java.lang.Object organizationId_; /** *
     * ID of the organization to list communities in.
     * 
* * string organization_id = 7 [(.yandex.cloud.required) = true]; * @return The organizationId. */ @java.lang.Override public java.lang.String getOrganizationId() { java.lang.Object ref = organizationId_; 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(); organizationId_ = s; return s; } } /** *
     * ID of the organization to list communities in.
     * 
* * string organization_id = 7 [(.yandex.cloud.required) = true]; * @return The bytes for organizationId. */ @java.lang.Override public com.google.protobuf.ByteString getOrganizationIdBytes() { java.lang.Object ref = organizationId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); organizationId_ = 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(1, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nameOrDescriptionPattern_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nameOrDescriptionPattern_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ownedById_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, ownedById_); } if (listPublic_ != false) { output.writeBool(6, listPublic_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organizationId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, organizationId_); } 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(1, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nameOrDescriptionPattern_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nameOrDescriptionPattern_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ownedById_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, ownedById_); } if (listPublic_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, listPublic_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organizationId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, organizationId_); } 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.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest)) { return super.equals(obj); } yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest other = (yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest) obj; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken() .equals(other.getPageToken())) return false; if (!getNameOrDescriptionPattern() .equals(other.getNameOrDescriptionPattern())) return false; if (!getOwnedById() .equals(other.getOwnedById())) return false; if (getListPublic() != other.getListPublic()) return false; if (!getOrganizationId() .equals(other.getOrganizationId())) 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 = (37 * hash) + NAME_OR_DESCRIPTION_PATTERN_FIELD_NUMBER; hash = (53 * hash) + getNameOrDescriptionPattern().hashCode(); hash = (37 * hash) + OWNED_BY_ID_FIELD_NUMBER; hash = (53 * hash) + getOwnedById().hashCode(); hash = (37 * hash) + LIST_PUBLIC_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getListPublic()); hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; hash = (53 * hash) + getOrganizationId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest 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.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest 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.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest 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.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest 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.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest 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.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest 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.datasphere.v2.ListCommunitiesRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.datasphere.v2.ListCommunitiesRequest) yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_ListCommunitiesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_ListCommunitiesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest.class, yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest.Builder.class); } // Construct using yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest.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_ = ""; nameOrDescriptionPattern_ = ""; ownedById_ = ""; listPublic_ = false; organizationId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_ListCommunitiesRequest_descriptor; } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest getDefaultInstanceForType() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest build() { yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest buildPartial() { yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest result = new yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest(this); result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; result.nameOrDescriptionPattern_ = nameOrDescriptionPattern_; result.ownedById_ = ownedById_; result.listPublic_ = listPublic_; result.organizationId_ = organizationId_; 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.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest) { return mergeFrom((yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest other) { if (other == yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest.getDefaultInstance()) return this; if (other.getPageSize() != 0L) { setPageSize(other.getPageSize()); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; onChanged(); } if (!other.getNameOrDescriptionPattern().isEmpty()) { nameOrDescriptionPattern_ = other.nameOrDescriptionPattern_; onChanged(); } if (!other.getOwnedById().isEmpty()) { ownedById_ = other.ownedById_; onChanged(); } if (other.getListPublic() != false) { setListPublic(other.getListPublic()); } if (!other.getOrganizationId().isEmpty()) { organizationId_ = other.organizationId_; 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.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest) 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 [ListCommunitiesResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * 
* * int64 page_size = 1; * @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 [ListCommunitiesResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * 
* * int64 page_size = 1; * @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 [ListCommunitiesResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * 
* * int64 page_size = 1; * @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
       * [ListCommunitiesResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 2; * @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
       * [ListCommunitiesResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 2; * @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
       * [ListCommunitiesResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 2; * @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
       * [ListCommunitiesResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 2; * @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
       * [ListCommunitiesResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 2; * @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; } private java.lang.Object nameOrDescriptionPattern_ = ""; /** *
       * Community name or description pattern.
       * Only communities with names or descriptions matching specified pattern will be returned.
       * 
* * string name_or_description_pattern = 3; * @return The nameOrDescriptionPattern. */ public java.lang.String getNameOrDescriptionPattern() { java.lang.Object ref = nameOrDescriptionPattern_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nameOrDescriptionPattern_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Community name or description pattern.
       * Only communities with names or descriptions matching specified pattern will be returned.
       * 
* * string name_or_description_pattern = 3; * @return The bytes for nameOrDescriptionPattern. */ public com.google.protobuf.ByteString getNameOrDescriptionPatternBytes() { java.lang.Object ref = nameOrDescriptionPattern_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nameOrDescriptionPattern_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Community name or description pattern.
       * Only communities with names or descriptions matching specified pattern will be returned.
       * 
* * string name_or_description_pattern = 3; * @param value The nameOrDescriptionPattern to set. * @return This builder for chaining. */ public Builder setNameOrDescriptionPattern( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nameOrDescriptionPattern_ = value; onChanged(); return this; } /** *
       * Community name or description pattern.
       * Only communities with names or descriptions matching specified pattern will be returned.
       * 
* * string name_or_description_pattern = 3; * @return This builder for chaining. */ public Builder clearNameOrDescriptionPattern() { nameOrDescriptionPattern_ = getDefaultInstance().getNameOrDescriptionPattern(); onChanged(); return this; } /** *
       * Community name or description pattern.
       * Only communities with names or descriptions matching specified pattern will be returned.
       * 
* * string name_or_description_pattern = 3; * @param value The bytes for nameOrDescriptionPattern to set. * @return This builder for chaining. */ public Builder setNameOrDescriptionPatternBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nameOrDescriptionPattern_ = value; onChanged(); return this; } private java.lang.Object ownedById_ = ""; /** *
       * ID of the user. Only communities owned by specified user will be returned.
       * 
* * string owned_by_id = 5; * @return The ownedById. */ public java.lang.String getOwnedById() { java.lang.Object ref = ownedById_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ownedById_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the user. Only communities owned by specified user will be returned.
       * 
* * string owned_by_id = 5; * @return The bytes for ownedById. */ public com.google.protobuf.ByteString getOwnedByIdBytes() { java.lang.Object ref = ownedById_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ownedById_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the user. Only communities owned by specified user will be returned.
       * 
* * string owned_by_id = 5; * @param value The ownedById to set. * @return This builder for chaining. */ public Builder setOwnedById( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ownedById_ = value; onChanged(); return this; } /** *
       * ID of the user. Only communities owned by specified user will be returned.
       * 
* * string owned_by_id = 5; * @return This builder for chaining. */ public Builder clearOwnedById() { ownedById_ = getDefaultInstance().getOwnedById(); onChanged(); return this; } /** *
       * ID of the user. Only communities owned by specified user will be returned.
       * 
* * string owned_by_id = 5; * @param value The bytes for ownedById to set. * @return This builder for chaining. */ public Builder setOwnedByIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ownedById_ = value; onChanged(); return this; } private boolean listPublic_ ; /** *
       * If set to true, only public communities will be returned.
       * 
* * bool list_public = 6; * @return The listPublic. */ @java.lang.Override public boolean getListPublic() { return listPublic_; } /** *
       * If set to true, only public communities will be returned.
       * 
* * bool list_public = 6; * @param value The listPublic to set. * @return This builder for chaining. */ public Builder setListPublic(boolean value) { listPublic_ = value; onChanged(); return this; } /** *
       * If set to true, only public communities will be returned.
       * 
* * bool list_public = 6; * @return This builder for chaining. */ public Builder clearListPublic() { listPublic_ = false; onChanged(); return this; } private java.lang.Object organizationId_ = ""; /** *
       * ID of the organization to list communities in.
       * 
* * string organization_id = 7 [(.yandex.cloud.required) = true]; * @return The organizationId. */ public java.lang.String getOrganizationId() { java.lang.Object ref = organizationId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organizationId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the organization to list communities in.
       * 
* * string organization_id = 7 [(.yandex.cloud.required) = true]; * @return The bytes for organizationId. */ public com.google.protobuf.ByteString getOrganizationIdBytes() { java.lang.Object ref = organizationId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); organizationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the organization to list communities in.
       * 
* * string organization_id = 7 [(.yandex.cloud.required) = true]; * @param value The organizationId to set. * @return This builder for chaining. */ public Builder setOrganizationId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } organizationId_ = value; onChanged(); return this; } /** *
       * ID of the organization to list communities in.
       * 
* * string organization_id = 7 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearOrganizationId() { organizationId_ = getDefaultInstance().getOrganizationId(); onChanged(); return this; } /** *
       * ID of the organization to list communities in.
       * 
* * string organization_id = 7 [(.yandex.cloud.required) = true]; * @param value The bytes for organizationId to set. * @return This builder for chaining. */ public Builder setOrganizationIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); organizationId_ = 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.datasphere.v2.ListCommunitiesRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.datasphere.v2.ListCommunitiesRequest) private static final yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest(); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListCommunitiesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListCommunitiesRequest(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.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListCommunitiesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.datasphere.v2.ListCommunitiesResponse) com.google.protobuf.MessageOrBuilder { /** *
     * List of communities matching filters in list communities request.
     * 
* * repeated .yandex.cloud.datasphere.v2.Community communities = 1; */ java.util.List getCommunitiesList(); /** *
     * List of communities matching filters in list communities request.
     * 
* * repeated .yandex.cloud.datasphere.v2.Community communities = 1; */ yandex.cloud.api.datasphere.v2.CommunityOuterClass.Community getCommunities(int index); /** *
     * List of communities matching filters in list communities request.
     * 
* * repeated .yandex.cloud.datasphere.v2.Community communities = 1; */ int getCommunitiesCount(); /** *
     * List of communities matching filters in list communities request.
     * 
* * repeated .yandex.cloud.datasphere.v2.Community communities = 1; */ java.util.List getCommunitiesOrBuilderList(); /** *
     * List of communities matching filters in list communities request.
     * 
* * repeated .yandex.cloud.datasphere.v2.Community communities = 1; */ yandex.cloud.api.datasphere.v2.CommunityOuterClass.CommunityOrBuilder getCommunitiesOrBuilder( int index); /** *
     * This token allows you to get the next page of results for list requests. If the number of results
     * is larger than [ListCommunitiesRequest.page_size], use
     * the [next_page_token] as the value
     * for the [ListCommunitiesRequest.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 [ListCommunitiesRequest.page_size], use
     * the [next_page_token] as the value
     * for the [ListCommunitiesRequest.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.datasphere.v2.ListCommunitiesResponse} */ public static final class ListCommunitiesResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.datasphere.v2.ListCommunitiesResponse) ListCommunitiesResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListCommunitiesResponse.newBuilder() to construct. private ListCommunitiesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListCommunitiesResponse() { communities_ = java.util.Collections.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListCommunitiesResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListCommunitiesResponse( 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)) { communities_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } communities_.add( input.readMessage(yandex.cloud.api.datasphere.v2.CommunityOuterClass.Community.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)) { communities_ = java.util.Collections.unmodifiableList(communities_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_ListCommunitiesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_ListCommunitiesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse.class, yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse.Builder.class); } public static final int COMMUNITIES_FIELD_NUMBER = 1; private java.util.List communities_; /** *
     * List of communities matching filters in list communities request.
     * 
* * repeated .yandex.cloud.datasphere.v2.Community communities = 1; */ @java.lang.Override public java.util.List getCommunitiesList() { return communities_; } /** *
     * List of communities matching filters in list communities request.
     * 
* * repeated .yandex.cloud.datasphere.v2.Community communities = 1; */ @java.lang.Override public java.util.List getCommunitiesOrBuilderList() { return communities_; } /** *
     * List of communities matching filters in list communities request.
     * 
* * repeated .yandex.cloud.datasphere.v2.Community communities = 1; */ @java.lang.Override public int getCommunitiesCount() { return communities_.size(); } /** *
     * List of communities matching filters in list communities request.
     * 
* * repeated .yandex.cloud.datasphere.v2.Community communities = 1; */ @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityOuterClass.Community getCommunities(int index) { return communities_.get(index); } /** *
     * List of communities matching filters in list communities request.
     * 
* * repeated .yandex.cloud.datasphere.v2.Community communities = 1; */ @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityOuterClass.CommunityOrBuilder getCommunitiesOrBuilder( int index) { return communities_.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 [ListCommunitiesRequest.page_size], use
     * the [next_page_token] as the value
     * for the [ListCommunitiesRequest.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 [ListCommunitiesRequest.page_size], use
     * the [next_page_token] as the value
     * for the [ListCommunitiesRequest.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 < communities_.size(); i++) { output.writeMessage(1, communities_.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 < communities_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, communities_.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.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse)) { return super.equals(obj); } yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse other = (yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse) obj; if (!getCommunitiesList() .equals(other.getCommunitiesList())) 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 (getCommunitiesCount() > 0) { hash = (37 * hash) + COMMUNITIES_FIELD_NUMBER; hash = (53 * hash) + getCommunitiesList().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.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse 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.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse 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.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse 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.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse 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.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse 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.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse 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.datasphere.v2.ListCommunitiesResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.datasphere.v2.ListCommunitiesResponse) yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_ListCommunitiesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_ListCommunitiesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse.class, yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse.Builder.class); } // Construct using yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCommunitiesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (communitiesBuilder_ == null) { communities_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { communitiesBuilder_.clear(); } nextPageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_ListCommunitiesResponse_descriptor; } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse getDefaultInstanceForType() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse build() { yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse buildPartial() { yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse result = new yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse(this); int from_bitField0_ = bitField0_; if (communitiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { communities_ = java.util.Collections.unmodifiableList(communities_); bitField0_ = (bitField0_ & ~0x00000001); } result.communities_ = communities_; } else { result.communities_ = communitiesBuilder_.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.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse) { return mergeFrom((yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse other) { if (other == yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse.getDefaultInstance()) return this; if (communitiesBuilder_ == null) { if (!other.communities_.isEmpty()) { if (communities_.isEmpty()) { communities_ = other.communities_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCommunitiesIsMutable(); communities_.addAll(other.communities_); } onChanged(); } } else { if (!other.communities_.isEmpty()) { if (communitiesBuilder_.isEmpty()) { communitiesBuilder_.dispose(); communitiesBuilder_ = null; communities_ = other.communities_; bitField0_ = (bitField0_ & ~0x00000001); communitiesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCommunitiesFieldBuilder() : null; } else { communitiesBuilder_.addAllMessages(other.communities_); } } } 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.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List communities_ = java.util.Collections.emptyList(); private void ensureCommunitiesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { communities_ = new java.util.ArrayList(communities_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.datasphere.v2.CommunityOuterClass.Community, yandex.cloud.api.datasphere.v2.CommunityOuterClass.Community.Builder, yandex.cloud.api.datasphere.v2.CommunityOuterClass.CommunityOrBuilder> communitiesBuilder_; /** *
       * List of communities matching filters in list communities request.
       * 
* * repeated .yandex.cloud.datasphere.v2.Community communities = 1; */ public java.util.List getCommunitiesList() { if (communitiesBuilder_ == null) { return java.util.Collections.unmodifiableList(communities_); } else { return communitiesBuilder_.getMessageList(); } } /** *
       * List of communities matching filters in list communities request.
       * 
* * repeated .yandex.cloud.datasphere.v2.Community communities = 1; */ public int getCommunitiesCount() { if (communitiesBuilder_ == null) { return communities_.size(); } else { return communitiesBuilder_.getCount(); } } /** *
       * List of communities matching filters in list communities request.
       * 
* * repeated .yandex.cloud.datasphere.v2.Community communities = 1; */ public yandex.cloud.api.datasphere.v2.CommunityOuterClass.Community getCommunities(int index) { if (communitiesBuilder_ == null) { return communities_.get(index); } else { return communitiesBuilder_.getMessage(index); } } /** *
       * List of communities matching filters in list communities request.
       * 
* * repeated .yandex.cloud.datasphere.v2.Community communities = 1; */ public Builder setCommunities( int index, yandex.cloud.api.datasphere.v2.CommunityOuterClass.Community value) { if (communitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCommunitiesIsMutable(); communities_.set(index, value); onChanged(); } else { communitiesBuilder_.setMessage(index, value); } return this; } /** *
       * List of communities matching filters in list communities request.
       * 
* * repeated .yandex.cloud.datasphere.v2.Community communities = 1; */ public Builder setCommunities( int index, yandex.cloud.api.datasphere.v2.CommunityOuterClass.Community.Builder builderForValue) { if (communitiesBuilder_ == null) { ensureCommunitiesIsMutable(); communities_.set(index, builderForValue.build()); onChanged(); } else { communitiesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of communities matching filters in list communities request.
       * 
* * repeated .yandex.cloud.datasphere.v2.Community communities = 1; */ public Builder addCommunities(yandex.cloud.api.datasphere.v2.CommunityOuterClass.Community value) { if (communitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCommunitiesIsMutable(); communities_.add(value); onChanged(); } else { communitiesBuilder_.addMessage(value); } return this; } /** *
       * List of communities matching filters in list communities request.
       * 
* * repeated .yandex.cloud.datasphere.v2.Community communities = 1; */ public Builder addCommunities( int index, yandex.cloud.api.datasphere.v2.CommunityOuterClass.Community value) { if (communitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCommunitiesIsMutable(); communities_.add(index, value); onChanged(); } else { communitiesBuilder_.addMessage(index, value); } return this; } /** *
       * List of communities matching filters in list communities request.
       * 
* * repeated .yandex.cloud.datasphere.v2.Community communities = 1; */ public Builder addCommunities( yandex.cloud.api.datasphere.v2.CommunityOuterClass.Community.Builder builderForValue) { if (communitiesBuilder_ == null) { ensureCommunitiesIsMutable(); communities_.add(builderForValue.build()); onChanged(); } else { communitiesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of communities matching filters in list communities request.
       * 
* * repeated .yandex.cloud.datasphere.v2.Community communities = 1; */ public Builder addCommunities( int index, yandex.cloud.api.datasphere.v2.CommunityOuterClass.Community.Builder builderForValue) { if (communitiesBuilder_ == null) { ensureCommunitiesIsMutable(); communities_.add(index, builderForValue.build()); onChanged(); } else { communitiesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of communities matching filters in list communities request.
       * 
* * repeated .yandex.cloud.datasphere.v2.Community communities = 1; */ public Builder addAllCommunities( java.lang.Iterable values) { if (communitiesBuilder_ == null) { ensureCommunitiesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, communities_); onChanged(); } else { communitiesBuilder_.addAllMessages(values); } return this; } /** *
       * List of communities matching filters in list communities request.
       * 
* * repeated .yandex.cloud.datasphere.v2.Community communities = 1; */ public Builder clearCommunities() { if (communitiesBuilder_ == null) { communities_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { communitiesBuilder_.clear(); } return this; } /** *
       * List of communities matching filters in list communities request.
       * 
* * repeated .yandex.cloud.datasphere.v2.Community communities = 1; */ public Builder removeCommunities(int index) { if (communitiesBuilder_ == null) { ensureCommunitiesIsMutable(); communities_.remove(index); onChanged(); } else { communitiesBuilder_.remove(index); } return this; } /** *
       * List of communities matching filters in list communities request.
       * 
* * repeated .yandex.cloud.datasphere.v2.Community communities = 1; */ public yandex.cloud.api.datasphere.v2.CommunityOuterClass.Community.Builder getCommunitiesBuilder( int index) { return getCommunitiesFieldBuilder().getBuilder(index); } /** *
       * List of communities matching filters in list communities request.
       * 
* * repeated .yandex.cloud.datasphere.v2.Community communities = 1; */ public yandex.cloud.api.datasphere.v2.CommunityOuterClass.CommunityOrBuilder getCommunitiesOrBuilder( int index) { if (communitiesBuilder_ == null) { return communities_.get(index); } else { return communitiesBuilder_.getMessageOrBuilder(index); } } /** *
       * List of communities matching filters in list communities request.
       * 
* * repeated .yandex.cloud.datasphere.v2.Community communities = 1; */ public java.util.List getCommunitiesOrBuilderList() { if (communitiesBuilder_ != null) { return communitiesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(communities_); } } /** *
       * List of communities matching filters in list communities request.
       * 
* * repeated .yandex.cloud.datasphere.v2.Community communities = 1; */ public yandex.cloud.api.datasphere.v2.CommunityOuterClass.Community.Builder addCommunitiesBuilder() { return getCommunitiesFieldBuilder().addBuilder( yandex.cloud.api.datasphere.v2.CommunityOuterClass.Community.getDefaultInstance()); } /** *
       * List of communities matching filters in list communities request.
       * 
* * repeated .yandex.cloud.datasphere.v2.Community communities = 1; */ public yandex.cloud.api.datasphere.v2.CommunityOuterClass.Community.Builder addCommunitiesBuilder( int index) { return getCommunitiesFieldBuilder().addBuilder( index, yandex.cloud.api.datasphere.v2.CommunityOuterClass.Community.getDefaultInstance()); } /** *
       * List of communities matching filters in list communities request.
       * 
* * repeated .yandex.cloud.datasphere.v2.Community communities = 1; */ public java.util.List getCommunitiesBuilderList() { return getCommunitiesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.datasphere.v2.CommunityOuterClass.Community, yandex.cloud.api.datasphere.v2.CommunityOuterClass.Community.Builder, yandex.cloud.api.datasphere.v2.CommunityOuterClass.CommunityOrBuilder> getCommunitiesFieldBuilder() { if (communitiesBuilder_ == null) { communitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.datasphere.v2.CommunityOuterClass.Community, yandex.cloud.api.datasphere.v2.CommunityOuterClass.Community.Builder, yandex.cloud.api.datasphere.v2.CommunityOuterClass.CommunityOrBuilder>( communities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); communities_ = null; } return communitiesBuilder_; } 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 [ListCommunitiesRequest.page_size], use
       * the [next_page_token] as the value
       * for the [ListCommunitiesRequest.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 [ListCommunitiesRequest.page_size], use
       * the [next_page_token] as the value
       * for the [ListCommunitiesRequest.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 [ListCommunitiesRequest.page_size], use
       * the [next_page_token] as the value
       * for the [ListCommunitiesRequest.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 [ListCommunitiesRequest.page_size], use
       * the [next_page_token] as the value
       * for the [ListCommunitiesRequest.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 [ListCommunitiesRequest.page_size], use
       * the [next_page_token] as the value
       * for the [ListCommunitiesRequest.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.datasphere.v2.ListCommunitiesResponse) } // @@protoc_insertion_point(class_scope:yandex.cloud.datasphere.v2.ListCommunitiesResponse) private static final yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse(); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListCommunitiesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListCommunitiesResponse(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.datasphere.v2.CommunityServiceOuterClass.ListCommunitiesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SetCommunityAccessBindingsMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.datasphere.v2.SetCommunityAccessBindingsMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the community which access bindings are set.
     * 
* * string community_id = 1; * @return The communityId. */ java.lang.String getCommunityId(); /** *
     * ID of the community which access bindings are set.
     * 
* * string community_id = 1; * @return The bytes for communityId. */ com.google.protobuf.ByteString getCommunityIdBytes(); } /** * Protobuf type {@code yandex.cloud.datasphere.v2.SetCommunityAccessBindingsMetadata} */ public static final class SetCommunityAccessBindingsMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.datasphere.v2.SetCommunityAccessBindingsMetadata) SetCommunityAccessBindingsMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use SetCommunityAccessBindingsMetadata.newBuilder() to construct. private SetCommunityAccessBindingsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SetCommunityAccessBindingsMetadata() { communityId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SetCommunityAccessBindingsMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SetCommunityAccessBindingsMetadata( 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(); communityId_ = 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.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_SetCommunityAccessBindingsMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_SetCommunityAccessBindingsMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata.class, yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata.Builder.class); } public static final int COMMUNITY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object communityId_; /** *
     * ID of the community which access bindings are set.
     * 
* * string community_id = 1; * @return The communityId. */ @java.lang.Override public java.lang.String getCommunityId() { java.lang.Object ref = communityId_; 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(); communityId_ = s; return s; } } /** *
     * ID of the community which access bindings are set.
     * 
* * string community_id = 1; * @return The bytes for communityId. */ @java.lang.Override public com.google.protobuf.ByteString getCommunityIdBytes() { java.lang.Object ref = communityId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); communityId_ = 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(communityId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, communityId_); } 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(communityId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, communityId_); } 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.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata)) { return super.equals(obj); } yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata other = (yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata) obj; if (!getCommunityId() .equals(other.getCommunityId())) 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) + COMMUNITY_ID_FIELD_NUMBER; hash = (53 * hash) + getCommunityId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata 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.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata 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.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata 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.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata 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.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata 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.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata 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.datasphere.v2.SetCommunityAccessBindingsMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.datasphere.v2.SetCommunityAccessBindingsMetadata) yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_SetCommunityAccessBindingsMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_SetCommunityAccessBindingsMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata.class, yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata.Builder.class); } // Construct using yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata.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(); communityId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_SetCommunityAccessBindingsMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata getDefaultInstanceForType() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata build() { yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata buildPartial() { yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata result = new yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata(this); result.communityId_ = communityId_; 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.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata) { return mergeFrom((yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata other) { if (other == yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata.getDefaultInstance()) return this; if (!other.getCommunityId().isEmpty()) { communityId_ = other.communityId_; 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.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object communityId_ = ""; /** *
       * ID of the community which access bindings are set.
       * 
* * string community_id = 1; * @return The communityId. */ public java.lang.String getCommunityId() { java.lang.Object ref = communityId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); communityId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the community which access bindings are set.
       * 
* * string community_id = 1; * @return The bytes for communityId. */ public com.google.protobuf.ByteString getCommunityIdBytes() { java.lang.Object ref = communityId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); communityId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the community which access bindings are set.
       * 
* * string community_id = 1; * @param value The communityId to set. * @return This builder for chaining. */ public Builder setCommunityId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } communityId_ = value; onChanged(); return this; } /** *
       * ID of the community which access bindings are set.
       * 
* * string community_id = 1; * @return This builder for chaining. */ public Builder clearCommunityId() { communityId_ = getDefaultInstance().getCommunityId(); onChanged(); return this; } /** *
       * ID of the community which access bindings are set.
       * 
* * string community_id = 1; * @param value The bytes for communityId to set. * @return This builder for chaining. */ public Builder setCommunityIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); communityId_ = 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.datasphere.v2.SetCommunityAccessBindingsMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.datasphere.v2.SetCommunityAccessBindingsMetadata) private static final yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata(); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SetCommunityAccessBindingsMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SetCommunityAccessBindingsMetadata(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.datasphere.v2.CommunityServiceOuterClass.SetCommunityAccessBindingsMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateCommunityAccessBindingsMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.datasphere.v2.UpdateCommunityAccessBindingsMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the community which access bindings are updated.
     * 
* * string community_id = 1; * @return The communityId. */ java.lang.String getCommunityId(); /** *
     * ID of the community which access bindings are updated.
     * 
* * string community_id = 1; * @return The bytes for communityId. */ com.google.protobuf.ByteString getCommunityIdBytes(); } /** * Protobuf type {@code yandex.cloud.datasphere.v2.UpdateCommunityAccessBindingsMetadata} */ public static final class UpdateCommunityAccessBindingsMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.datasphere.v2.UpdateCommunityAccessBindingsMetadata) UpdateCommunityAccessBindingsMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateCommunityAccessBindingsMetadata.newBuilder() to construct. private UpdateCommunityAccessBindingsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateCommunityAccessBindingsMetadata() { communityId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdateCommunityAccessBindingsMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateCommunityAccessBindingsMetadata( 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(); communityId_ = 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.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_UpdateCommunityAccessBindingsMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_UpdateCommunityAccessBindingsMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata.class, yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata.Builder.class); } public static final int COMMUNITY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object communityId_; /** *
     * ID of the community which access bindings are updated.
     * 
* * string community_id = 1; * @return The communityId. */ @java.lang.Override public java.lang.String getCommunityId() { java.lang.Object ref = communityId_; 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(); communityId_ = s; return s; } } /** *
     * ID of the community which access bindings are updated.
     * 
* * string community_id = 1; * @return The bytes for communityId. */ @java.lang.Override public com.google.protobuf.ByteString getCommunityIdBytes() { java.lang.Object ref = communityId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); communityId_ = 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(communityId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, communityId_); } 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(communityId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, communityId_); } 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.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata)) { return super.equals(obj); } yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata other = (yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata) obj; if (!getCommunityId() .equals(other.getCommunityId())) 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) + COMMUNITY_ID_FIELD_NUMBER; hash = (53 * hash) + getCommunityId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata 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.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata 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.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata 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.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata 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.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata 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.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata 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.datasphere.v2.UpdateCommunityAccessBindingsMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.datasphere.v2.UpdateCommunityAccessBindingsMetadata) yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_UpdateCommunityAccessBindingsMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_UpdateCommunityAccessBindingsMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata.class, yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata.Builder.class); } // Construct using yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata.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(); communityId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.internal_static_yandex_cloud_datasphere_v2_UpdateCommunityAccessBindingsMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata getDefaultInstanceForType() { return yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata build() { yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata buildPartial() { yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata result = new yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata(this); result.communityId_ = communityId_; 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.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata) { return mergeFrom((yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata other) { if (other == yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata.getDefaultInstance()) return this; if (!other.getCommunityId().isEmpty()) { communityId_ = other.communityId_; 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.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object communityId_ = ""; /** *
       * ID of the community which access bindings are updated.
       * 
* * string community_id = 1; * @return The communityId. */ public java.lang.String getCommunityId() { java.lang.Object ref = communityId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); communityId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the community which access bindings are updated.
       * 
* * string community_id = 1; * @return The bytes for communityId. */ public com.google.protobuf.ByteString getCommunityIdBytes() { java.lang.Object ref = communityId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); communityId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the community which access bindings are updated.
       * 
* * string community_id = 1; * @param value The communityId to set. * @return This builder for chaining. */ public Builder setCommunityId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } communityId_ = value; onChanged(); return this; } /** *
       * ID of the community which access bindings are updated.
       * 
* * string community_id = 1; * @return This builder for chaining. */ public Builder clearCommunityId() { communityId_ = getDefaultInstance().getCommunityId(); onChanged(); return this; } /** *
       * ID of the community which access bindings are updated.
       * 
* * string community_id = 1; * @param value The bytes for communityId to set. * @return This builder for chaining. */ public Builder setCommunityIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); communityId_ = 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.datasphere.v2.UpdateCommunityAccessBindingsMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.datasphere.v2.UpdateCommunityAccessBindingsMetadata) private static final yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata(); } public static yandex.cloud.api.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateCommunityAccessBindingsMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdateCommunityAccessBindingsMetadata(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.datasphere.v2.CommunityServiceOuterClass.UpdateCommunityAccessBindingsMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_datasphere_v2_CreateCommunityRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_datasphere_v2_CreateCommunityRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_datasphere_v2_CreateCommunityRequest_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_datasphere_v2_CreateCommunityRequest_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_datasphere_v2_CreateCommunityMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_datasphere_v2_CreateCommunityMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_datasphere_v2_GetCommunityRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_datasphere_v2_GetCommunityRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_datasphere_v2_UpdateCommunityRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_datasphere_v2_UpdateCommunityRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_datasphere_v2_UpdateCommunityRequest_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_datasphere_v2_UpdateCommunityRequest_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_datasphere_v2_UpdateCommunityMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_datasphere_v2_UpdateCommunityMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_datasphere_v2_DeleteCommunityRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_datasphere_v2_DeleteCommunityRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_datasphere_v2_DeleteCommunityMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_datasphere_v2_DeleteCommunityMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_datasphere_v2_ListCommunitiesRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_datasphere_v2_ListCommunitiesRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_datasphere_v2_ListCommunitiesResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_datasphere_v2_ListCommunitiesResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_datasphere_v2_SetCommunityAccessBindingsMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_datasphere_v2_SetCommunityAccessBindingsMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_datasphere_v2_UpdateCommunityAccessBindingsMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_datasphere_v2_UpdateCommunityAccessBindingsMetadata_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n2yandex/cloud/datasphere/v2/community_s" + "ervice.proto\022\032yandex.cloud.datasphere.v2" + "\032\034google/api/annotations.proto\032 google/p" + "rotobuf/field_mask.proto\032 yandex/cloud/a" + "ccess/access.proto\032 yandex/cloud/api/ope" + "ration.proto\032\035yandex/cloud/validation.pr" + "oto\032&yandex/cloud/operation/operation.pr" + "oto\032*yandex/cloud/datasphere/v2/communit" + "y.proto\"\263\002\n\026CreateCommunityRequest\022J\n\004na" + "me\030\001 \001(\tB<\212\3101\004<=63\362\30710[a-zA-Z0-9\320\201\321\221\320\220-\321" + "\217]\\S{1,61}[a-zA-Z0-9\320\201\321\221\320\220-\321\217]\022\023\n\013descri" + "ption\030\002 \001(\t\022\035\n\017organization_id\030\003 \001(\tB\004\350\307" + "1\001\022\032\n\022billing_account_id\030\004 \001(\t\022N\n\006labels" + "\030\005 \003(\0132>.yandex.cloud.datasphere.v2.Crea" + "teCommunityRequest.LabelsEntry\032-\n\013Labels" + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"/\n" + "\027CreateCommunityMetadata\022\024\n\014community_id" + "\030\001 \001(\t\"1\n\023GetCommunityRequest\022\032\n\014communi" + "ty_id\030\001 \001(\tB\004\350\3071\001\"\207\002\n\026UpdateCommunityReq" + "uest\022\032\n\014community_id\030\001 \001(\tB\004\350\3071\001\022/\n\013upda" + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + "k\022\014\n\004name\030\003 \001(\t\022\023\n\013description\030\004 \001(\t\022N\n\006" + "labels\030\005 \003(\0132>.yandex.cloud.datasphere.v" + "2.UpdateCommunityRequest.LabelsEntry\032-\n\013" + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + "\0028\001\"/\n\027UpdateCommunityMetadata\022\024\n\014commun" + "ity_id\030\001 \001(\t\"4\n\026DeleteCommunityRequest\022\032" + "\n\014community_id\030\001 \001(\tB\004\350\3071\001\"/\n\027DeleteComm" + "unityMetadata\022\024\n\014community_id\030\001 \001(\t\"\255\001\n\026" + "ListCommunitiesRequest\022\021\n\tpage_size\030\001 \001(" + "\003\022\022\n\npage_token\030\002 \001(\t\022#\n\033name_or_descrip" + "tion_pattern\030\003 \001(\t\022\023\n\013owned_by_id\030\005 \001(\t\022" + "\023\n\013list_public\030\006 \001(\010\022\035\n\017organization_id\030" + "\007 \001(\tB\004\350\3071\001\"n\n\027ListCommunitiesResponse\022:" + "\n\013communities\030\001 \003(\0132%.yandex.cloud.datas" + "phere.v2.Community\022\027\n\017next_page_token\030\002 " + "\001(\t\":\n\"SetCommunityAccessBindingsMetadat" + "a\022\024\n\014community_id\030\001 \001(\t\"=\n%UpdateCommuni" + "tyAccessBindingsMetadata\022\024\n\014community_id" + "\030\001 \001(\t2\230\014\n\020CommunityService\022\256\001\n\006Create\0222" + ".yandex.cloud.datasphere.v2.CreateCommun" + "ityRequest\032!.yandex.cloud.operation.Oper" + "ation\"M\202\323\344\223\002\037\"\032/datasphere/v2/communitie" + "s:\001*\262\322*$\n\027CreateCommunityMetadata\022\tCommu" + "nity\022\220\001\n\003Get\022/.yandex.cloud.datasphere.v" + "2.GetCommunityRequest\032%.yandex.cloud.dat" + "asphere.v2.Community\"1\202\323\344\223\002+\022)/dataspher" + "e/v2/communities/{community_id}\022\275\001\n\006Upda" + "te\0222.yandex.cloud.datasphere.v2.UpdateCo" + "mmunityRequest\032!.yandex.cloud.operation." + "Operation\"\\\202\323\344\223\002.2)/datasphere/v2/commun" + "ities/{community_id}:\001*\262\322*$\n\027UpdateCommu" + "nityMetadata\022\tCommunity\022\306\001\n\006Delete\0222.yan" + "dex.cloud.datasphere.v2.DeleteCommunityR" + "equest\032!.yandex.cloud.operation.Operatio" + "n\"e\202\323\344\223\002+*)/datasphere/v2/communities/{c" + "ommunity_id}\262\322*0\n\027DeleteCommunityMetadat" + "a\022\025google.protobuf.Empty\022\223\001\n\004List\0222.yand" + "ex.cloud.datasphere.v2.ListCommunitiesRe" + "quest\0323.yandex.cloud.datasphere.v2.ListC" + "ommunitiesResponse\"\"\202\323\344\223\002\034\022\032/datasphere/" + "v2/communities\022\266\001\n\022ListAccessBindings\022.." + "yandex.cloud.access.ListAccessBindingsRe" + "quest\032/.yandex.cloud.access.ListAccessBi" + "ndingsResponse\"?\202\323\344\223\0029\0227/datasphere/v2/c" + "ommunities/{resource_id}:accessBindings\022" + "\354\001\n\021SetAccessBindings\022-.yandex.cloud.acc" + "ess.SetAccessBindingsRequest\032!.yandex.cl" + "oud.operation.Operation\"\204\001\202\323\344\223\002?\":/datas" + "phere/v2/communities/{resource_id}:setAc" + "cessBindings:\001*\262\322*;\n\"SetCommunityAccessB" + "indingsMetadata\022\025google.protobuf.Empty\022\370" + "\001\n\024UpdateAccessBindings\0220.yandex.cloud.a" + "ccess.UpdateAccessBindingsRequest\032!.yand" + "ex.cloud.operation.Operation\"\212\001\202\323\344\223\002B2=/" + "datasphere/v2/communities/{resource_id}:" + "updateAccessBindings:\001*\262\322*>\n%UpdateCommu" + "nityAccessBindingsMetadata\022\025google.proto" + "buf.EmptyBk\n\036yandex.cloud.api.datasphere" + ".v2ZIgithub.com/yandex-cloud/go-genproto" + "/yandex/cloud/datasphere/v2;datasphereb\006" + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), yandex.cloud.api.access.Access.getDescriptor(), yandex.cloud.api.OperationOuterClass.getDescriptor(), yandex.cloud.api.Validation.getDescriptor(), yandex.cloud.api.operation.OperationOuterClass.getDescriptor(), yandex.cloud.api.datasphere.v2.CommunityOuterClass.getDescriptor(), }); internal_static_yandex_cloud_datasphere_v2_CreateCommunityRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_datasphere_v2_CreateCommunityRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_datasphere_v2_CreateCommunityRequest_descriptor, new java.lang.String[] { "Name", "Description", "OrganizationId", "BillingAccountId", "Labels", }); internal_static_yandex_cloud_datasphere_v2_CreateCommunityRequest_LabelsEntry_descriptor = internal_static_yandex_cloud_datasphere_v2_CreateCommunityRequest_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_datasphere_v2_CreateCommunityRequest_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_datasphere_v2_CreateCommunityRequest_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_datasphere_v2_CreateCommunityMetadata_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_datasphere_v2_CreateCommunityMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_datasphere_v2_CreateCommunityMetadata_descriptor, new java.lang.String[] { "CommunityId", }); internal_static_yandex_cloud_datasphere_v2_GetCommunityRequest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_yandex_cloud_datasphere_v2_GetCommunityRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_datasphere_v2_GetCommunityRequest_descriptor, new java.lang.String[] { "CommunityId", }); internal_static_yandex_cloud_datasphere_v2_UpdateCommunityRequest_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_yandex_cloud_datasphere_v2_UpdateCommunityRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_datasphere_v2_UpdateCommunityRequest_descriptor, new java.lang.String[] { "CommunityId", "UpdateMask", "Name", "Description", "Labels", }); internal_static_yandex_cloud_datasphere_v2_UpdateCommunityRequest_LabelsEntry_descriptor = internal_static_yandex_cloud_datasphere_v2_UpdateCommunityRequest_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_datasphere_v2_UpdateCommunityRequest_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_datasphere_v2_UpdateCommunityRequest_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_datasphere_v2_UpdateCommunityMetadata_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_yandex_cloud_datasphere_v2_UpdateCommunityMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_datasphere_v2_UpdateCommunityMetadata_descriptor, new java.lang.String[] { "CommunityId", }); internal_static_yandex_cloud_datasphere_v2_DeleteCommunityRequest_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_yandex_cloud_datasphere_v2_DeleteCommunityRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_datasphere_v2_DeleteCommunityRequest_descriptor, new java.lang.String[] { "CommunityId", }); internal_static_yandex_cloud_datasphere_v2_DeleteCommunityMetadata_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_yandex_cloud_datasphere_v2_DeleteCommunityMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_datasphere_v2_DeleteCommunityMetadata_descriptor, new java.lang.String[] { "CommunityId", }); internal_static_yandex_cloud_datasphere_v2_ListCommunitiesRequest_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_yandex_cloud_datasphere_v2_ListCommunitiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_datasphere_v2_ListCommunitiesRequest_descriptor, new java.lang.String[] { "PageSize", "PageToken", "NameOrDescriptionPattern", "OwnedById", "ListPublic", "OrganizationId", }); internal_static_yandex_cloud_datasphere_v2_ListCommunitiesResponse_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_yandex_cloud_datasphere_v2_ListCommunitiesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_datasphere_v2_ListCommunitiesResponse_descriptor, new java.lang.String[] { "Communities", "NextPageToken", }); internal_static_yandex_cloud_datasphere_v2_SetCommunityAccessBindingsMetadata_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_yandex_cloud_datasphere_v2_SetCommunityAccessBindingsMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_datasphere_v2_SetCommunityAccessBindingsMetadata_descriptor, new java.lang.String[] { "CommunityId", }); internal_static_yandex_cloud_datasphere_v2_UpdateCommunityAccessBindingsMetadata_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_yandex_cloud_datasphere_v2_UpdateCommunityAccessBindingsMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_datasphere_v2_UpdateCommunityAccessBindingsMetadata_descriptor, new java.lang.String[] { "CommunityId", }); 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.pattern); registry.add(yandex.cloud.api.Validation.required); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); yandex.cloud.api.access.Access.getDescriptor(); yandex.cloud.api.OperationOuterClass.getDescriptor(); yandex.cloud.api.Validation.getDescriptor(); yandex.cloud.api.operation.OperationOuterClass.getDescriptor(); yandex.cloud.api.datasphere.v2.CommunityOuterClass.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy