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

yandex.cloud.api.vpc.v1.RouteTableOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/vpc/v1/route_table.proto

package yandex.cloud.api.vpc.v1;

public final class RouteTableOuterClass {
  private RouteTableOuterClass() {}
  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 RouteTableOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.vpc.v1.RouteTable)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * ID of the route table.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * ID of the route table.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * ID of the folder that the route table belongs to.
     * 
* * string folder_id = 2; * @return The folderId. */ java.lang.String getFolderId(); /** *
     * ID of the folder that the route table belongs to.
     * 
* * string folder_id = 2; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** *
     * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** *
     * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** *
     * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .google.protobuf.Timestamp created_at = 3; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** *
     * Name of the route table. The name is unique within the project. 3-63 characters long.
     * 
* * string name = 4; * @return The name. */ java.lang.String getName(); /** *
     * Name of the route table. The name is unique within the project. 3-63 characters long.
     * 
* * string name = 4; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Optional description of the route table. 0-256 characters long.
     * 
* * string description = 5; * @return The description. */ java.lang.String getDescription(); /** *
     * Optional description of the route table. 0-256 characters long.
     * 
* * string description = 5; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
     * 
* * map<string, string> labels = 6; */ int getLabelsCount(); /** *
     * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
     * 
* * map<string, string> labels = 6; */ boolean containsLabels( java.lang.String key); /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** *
     * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
     * 
* * map<string, string> labels = 6; */ java.util.Map getLabelsMap(); /** *
     * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
     * 
* * map<string, string> labels = 6; */ java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
     * 
* * map<string, string> labels = 6; */ java.lang.String getLabelsOrThrow( java.lang.String key); /** *
     * ID of the network the route table belongs to.
     * 
* * string network_id = 7; * @return The networkId. */ java.lang.String getNetworkId(); /** *
     * ID of the network the route table belongs to.
     * 
* * string network_id = 7; * @return The bytes for networkId. */ com.google.protobuf.ByteString getNetworkIdBytes(); /** *
     * List of static routes.
     * 
* * repeated .yandex.cloud.vpc.v1.StaticRoute static_routes = 8; */ java.util.List getStaticRoutesList(); /** *
     * List of static routes.
     * 
* * repeated .yandex.cloud.vpc.v1.StaticRoute static_routes = 8; */ yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute getStaticRoutes(int index); /** *
     * List of static routes.
     * 
* * repeated .yandex.cloud.vpc.v1.StaticRoute static_routes = 8; */ int getStaticRoutesCount(); /** *
     * List of static routes.
     * 
* * repeated .yandex.cloud.vpc.v1.StaticRoute static_routes = 8; */ java.util.List getStaticRoutesOrBuilderList(); /** *
     * List of static routes.
     * 
* * repeated .yandex.cloud.vpc.v1.StaticRoute static_routes = 8; */ yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRouteOrBuilder getStaticRoutesOrBuilder( int index); } /** *
   * A RouteTable resource. For more information, see [Static Routes](/docs/vpc/concepts/static-routes).
   * 
* * Protobuf type {@code yandex.cloud.vpc.v1.RouteTable} */ public static final class RouteTable extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.vpc.v1.RouteTable) RouteTableOrBuilder { private static final long serialVersionUID = 0L; // Use RouteTable.newBuilder() to construct. private RouteTable(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RouteTable() { id_ = ""; folderId_ = ""; name_ = ""; description_ = ""; networkId_ = ""; staticRoutes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RouteTable(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RouteTable( 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(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); folderId_ = s; break; } case 26: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (createdAt_ != null) { subBuilder = createdAt_.toBuilder(); } createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(createdAt_); createdAt_ = subBuilder.buildPartial(); } break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 50: { 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; } case 58: { java.lang.String s = input.readStringRequireUtf8(); networkId_ = s; break; } case 66: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { staticRoutes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } staticRoutes_.add( input.readMessage(yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute.parser(), extensionRegistry)); 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_ & 0x00000002) != 0)) { staticRoutes_ = java.util.Collections.unmodifiableList(staticRoutes_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.vpc.v1.RouteTableOuterClass.internal_static_yandex_cloud_vpc_v1_RouteTable_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: 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.vpc.v1.RouteTableOuterClass.internal_static_yandex_cloud_vpc_v1_RouteTable_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable.class, yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID of the route table.
     * 
* * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** *
     * ID of the route table.
     * 
* * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FOLDER_ID_FIELD_NUMBER = 2; private volatile java.lang.Object folderId_; /** *
     * ID of the folder that the route table belongs to.
     * 
* * string folder_id = 2; * @return The folderId. */ @java.lang.Override public java.lang.String getFolderId() { java.lang.Object ref = folderId_; 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(); folderId_ = s; return s; } } /** *
     * ID of the folder that the route table belongs to.
     * 
* * string folder_id = 2; * @return The bytes for folderId. */ @java.lang.Override public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATED_AT_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createdAt_; /** *
     * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
     * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
     * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .google.protobuf.Timestamp created_at = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int NAME_FIELD_NUMBER = 4; private volatile java.lang.Object name_; /** *
     * Name of the route table. The name is unique within the project. 3-63 characters long.
     * 
* * string name = 4; * @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 route table. The name is unique within the project. 3-63 characters long.
     * 
* * string name = 4; * @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 = 5; private volatile java.lang.Object description_; /** *
     * Optional description of the route table. 0-256 characters long.
     * 
* * string description = 5; * @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; } } /** *
     * Optional description of the route table. 0-256 characters long.
     * 
* * string description = 5; * @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 = 6; 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.vpc.v1.RouteTableOuterClass.internal_static_yandex_cloud_vpc_v1_RouteTable_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(); } /** *
     * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
     * 
* * map<string, string> labels = 6; */ @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(); } /** *
     * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
     * 
* * map<string, string> labels = 6; */ @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; } /** *
     * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
     * 
* * map<string, string> labels = 6; */ @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 static final int NETWORK_ID_FIELD_NUMBER = 7; private volatile java.lang.Object networkId_; /** *
     * ID of the network the route table belongs to.
     * 
* * string network_id = 7; * @return The networkId. */ @java.lang.Override public java.lang.String getNetworkId() { java.lang.Object ref = networkId_; 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(); networkId_ = s; return s; } } /** *
     * ID of the network the route table belongs to.
     * 
* * string network_id = 7; * @return The bytes for networkId. */ @java.lang.Override public com.google.protobuf.ByteString getNetworkIdBytes() { java.lang.Object ref = networkId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); networkId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATIC_ROUTES_FIELD_NUMBER = 8; private java.util.List staticRoutes_; /** *
     * List of static routes.
     * 
* * repeated .yandex.cloud.vpc.v1.StaticRoute static_routes = 8; */ @java.lang.Override public java.util.List getStaticRoutesList() { return staticRoutes_; } /** *
     * List of static routes.
     * 
* * repeated .yandex.cloud.vpc.v1.StaticRoute static_routes = 8; */ @java.lang.Override public java.util.List getStaticRoutesOrBuilderList() { return staticRoutes_; } /** *
     * List of static routes.
     * 
* * repeated .yandex.cloud.vpc.v1.StaticRoute static_routes = 8; */ @java.lang.Override public int getStaticRoutesCount() { return staticRoutes_.size(); } /** *
     * List of static routes.
     * 
* * repeated .yandex.cloud.vpc.v1.StaticRoute static_routes = 8; */ @java.lang.Override public yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute getStaticRoutes(int index) { return staticRoutes_.get(index); } /** *
     * List of static routes.
     * 
* * repeated .yandex.cloud.vpc.v1.StaticRoute static_routes = 8; */ @java.lang.Override public yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRouteOrBuilder getStaticRoutesOrBuilder( int index) { return staticRoutes_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, folderId_); } if (createdAt_ != null) { output.writeMessage(3, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, networkId_); } for (int i = 0; i < staticRoutes_.size(); i++) { output.writeMessage(8, staticRoutes_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, folderId_); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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(6, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, networkId_); } for (int i = 0; i < staticRoutes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, staticRoutes_.get(i)); } 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.vpc.v1.RouteTableOuterClass.RouteTable)) { return super.equals(obj); } yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable other = (yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable) obj; if (!getId() .equals(other.getId())) return false; if (!getFolderId() .equals(other.getFolderId())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!internalGetLabels().equals( other.internalGetLabels())) return false; if (!getNetworkId() .equals(other.getNetworkId())) return false; if (!getStaticRoutesList() .equals(other.getStaticRoutesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getFolderId().hashCode(); if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().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 = (37 * hash) + NETWORK_ID_FIELD_NUMBER; hash = (53 * hash) + getNetworkId().hashCode(); if (getStaticRoutesCount() > 0) { hash = (37 * hash) + STATIC_ROUTES_FIELD_NUMBER; hash = (53 * hash) + getStaticRoutesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable 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.vpc.v1.RouteTableOuterClass.RouteTable parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable 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.vpc.v1.RouteTableOuterClass.RouteTable parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable 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.vpc.v1.RouteTableOuterClass.RouteTable parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable 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.vpc.v1.RouteTableOuterClass.RouteTable parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable 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.vpc.v1.RouteTableOuterClass.RouteTable 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; } /** *
     * A RouteTable resource. For more information, see [Static Routes](/docs/vpc/concepts/static-routes).
     * 
* * Protobuf type {@code yandex.cloud.vpc.v1.RouteTable} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.vpc.v1.RouteTable) yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTableOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.vpc.v1.RouteTableOuterClass.internal_static_yandex_cloud_vpc_v1_RouteTable_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 6: 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.vpc.v1.RouteTableOuterClass.internal_static_yandex_cloud_vpc_v1_RouteTable_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable.class, yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable.Builder.class); } // Construct using yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getStaticRoutesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; folderId_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } name_ = ""; description_ = ""; internalGetMutableLabels().clear(); networkId_ = ""; if (staticRoutesBuilder_ == null) { staticRoutes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { staticRoutesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.vpc.v1.RouteTableOuterClass.internal_static_yandex_cloud_vpc_v1_RouteTable_descriptor; } @java.lang.Override public yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable getDefaultInstanceForType() { return yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable build() { yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable buildPartial() { yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable result = new yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.folderId_ = folderId_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } result.name_ = name_; result.description_ = description_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); result.networkId_ = networkId_; if (staticRoutesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { staticRoutes_ = java.util.Collections.unmodifiableList(staticRoutes_); bitField0_ = (bitField0_ & ~0x00000002); } result.staticRoutes_ = staticRoutes_; } else { result.staticRoutes_ = staticRoutesBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable) { return mergeFrom((yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable other) { if (other == yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getFolderId().isEmpty()) { folderId_ = other.folderId_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); if (!other.getNetworkId().isEmpty()) { networkId_ = other.networkId_; onChanged(); } if (staticRoutesBuilder_ == null) { if (!other.staticRoutes_.isEmpty()) { if (staticRoutes_.isEmpty()) { staticRoutes_ = other.staticRoutes_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureStaticRoutesIsMutable(); staticRoutes_.addAll(other.staticRoutes_); } onChanged(); } } else { if (!other.staticRoutes_.isEmpty()) { if (staticRoutesBuilder_.isEmpty()) { staticRoutesBuilder_.dispose(); staticRoutesBuilder_ = null; staticRoutes_ = other.staticRoutes_; bitField0_ = (bitField0_ & ~0x00000002); staticRoutesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getStaticRoutesFieldBuilder() : null; } else { staticRoutesBuilder_.addAllMessages(other.staticRoutes_); } } } 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.vpc.v1.RouteTableOuterClass.RouteTable parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * ID of the route table.
       * 
* * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the route table.
       * 
* * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the route table.
       * 
* * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
       * ID of the route table.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of the route table.
       * 
* * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object folderId_ = ""; /** *
       * ID of the folder that the route table belongs to.
       * 
* * string folder_id = 2; * @return The folderId. */ public java.lang.String getFolderId() { java.lang.Object ref = folderId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folderId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the folder that the route table belongs to.
       * 
* * string folder_id = 2; * @return The bytes for folderId. */ public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the folder that the route table belongs to.
       * 
* * string folder_id = 2; * @param value The folderId to set. * @return This builder for chaining. */ public Builder setFolderId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } folderId_ = value; onChanged(); return this; } /** *
       * ID of the folder that the route table belongs to.
       * 
* * string folder_id = 2; * @return This builder for chaining. */ public Builder clearFolderId() { folderId_ = getDefaultInstance().getFolderId(); onChanged(); return this; } /** *
       * ID of the folder that the route table belongs to.
       * 
* * string folder_id = 2; * @param value The bytes for folderId to set. * @return This builder for chaining. */ public Builder setFolderIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); folderId_ = value; onChanged(); return this; } private com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** *
       * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
       * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** *
       * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; onChanged(); } else { createdAtBuilder_.setMessage(value); } return this; } /** *
       * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (createdAt_ != null) { createdAt_ = com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); } else { createdAt_ = value; } onChanged(); } else { createdAtBuilder_.mergeFrom(value); } return this; } /** *
       * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
       * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
       * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
       * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } private java.lang.Object name_ = ""; /** *
       * Name of the route table. The name is unique within the project. 3-63 characters long.
       * 
* * string name = 4; * @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 route table. The name is unique within the project. 3-63 characters long.
       * 
* * string name = 4; * @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 route table. The name is unique within the project. 3-63 characters long.
       * 
* * string name = 4; * @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 route table. The name is unique within the project. 3-63 characters long.
       * 
* * string name = 4; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the route table. The name is unique within the project. 3-63 characters long.
       * 
* * string name = 4; * @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_ = ""; /** *
       * Optional description of the route table. 0-256 characters long.
       * 
* * string description = 5; * @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; } } /** *
       * Optional description of the route table. 0-256 characters long.
       * 
* * string description = 5; * @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; } } /** *
       * Optional description of the route table. 0-256 characters long.
       * 
* * string description = 5; * @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; } /** *
       * Optional description of the route table. 0-256 characters long.
       * 
* * string description = 5; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Optional description of the route table. 0-256 characters long.
       * 
* * string description = 5; * @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(); } /** *
       * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
       * 
* * map<string, string> labels = 6; */ @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(); } /** *
       * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
       * 
* * map<string, string> labels = 6; */ @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; } /** *
       * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
       * 
* * map<string, string> labels = 6; */ @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; } /** *
       * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
       * 
* * map<string, string> labels = 6; */ 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(); } /** *
       * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
       * 
* * map<string, string> labels = 6; */ 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; } /** *
       * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
       * 
* * map<string, string> labels = 6; */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); return this; } private java.lang.Object networkId_ = ""; /** *
       * ID of the network the route table belongs to.
       * 
* * string network_id = 7; * @return The networkId. */ public java.lang.String getNetworkId() { java.lang.Object ref = networkId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the network the route table belongs to.
       * 
* * string network_id = 7; * @return The bytes for networkId. */ public com.google.protobuf.ByteString getNetworkIdBytes() { java.lang.Object ref = networkId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); networkId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the network the route table belongs to.
       * 
* * string network_id = 7; * @param value The networkId to set. * @return This builder for chaining. */ public Builder setNetworkId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } networkId_ = value; onChanged(); return this; } /** *
       * ID of the network the route table belongs to.
       * 
* * string network_id = 7; * @return This builder for chaining. */ public Builder clearNetworkId() { networkId_ = getDefaultInstance().getNetworkId(); onChanged(); return this; } /** *
       * ID of the network the route table belongs to.
       * 
* * string network_id = 7; * @param value The bytes for networkId to set. * @return This builder for chaining. */ public Builder setNetworkIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); networkId_ = value; onChanged(); return this; } private java.util.List staticRoutes_ = java.util.Collections.emptyList(); private void ensureStaticRoutesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { staticRoutes_ = new java.util.ArrayList(staticRoutes_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute, yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute.Builder, yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRouteOrBuilder> staticRoutesBuilder_; /** *
       * List of static routes.
       * 
* * repeated .yandex.cloud.vpc.v1.StaticRoute static_routes = 8; */ public java.util.List getStaticRoutesList() { if (staticRoutesBuilder_ == null) { return java.util.Collections.unmodifiableList(staticRoutes_); } else { return staticRoutesBuilder_.getMessageList(); } } /** *
       * List of static routes.
       * 
* * repeated .yandex.cloud.vpc.v1.StaticRoute static_routes = 8; */ public int getStaticRoutesCount() { if (staticRoutesBuilder_ == null) { return staticRoutes_.size(); } else { return staticRoutesBuilder_.getCount(); } } /** *
       * List of static routes.
       * 
* * repeated .yandex.cloud.vpc.v1.StaticRoute static_routes = 8; */ public yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute getStaticRoutes(int index) { if (staticRoutesBuilder_ == null) { return staticRoutes_.get(index); } else { return staticRoutesBuilder_.getMessage(index); } } /** *
       * List of static routes.
       * 
* * repeated .yandex.cloud.vpc.v1.StaticRoute static_routes = 8; */ public Builder setStaticRoutes( int index, yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute value) { if (staticRoutesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStaticRoutesIsMutable(); staticRoutes_.set(index, value); onChanged(); } else { staticRoutesBuilder_.setMessage(index, value); } return this; } /** *
       * List of static routes.
       * 
* * repeated .yandex.cloud.vpc.v1.StaticRoute static_routes = 8; */ public Builder setStaticRoutes( int index, yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute.Builder builderForValue) { if (staticRoutesBuilder_ == null) { ensureStaticRoutesIsMutable(); staticRoutes_.set(index, builderForValue.build()); onChanged(); } else { staticRoutesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of static routes.
       * 
* * repeated .yandex.cloud.vpc.v1.StaticRoute static_routes = 8; */ public Builder addStaticRoutes(yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute value) { if (staticRoutesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStaticRoutesIsMutable(); staticRoutes_.add(value); onChanged(); } else { staticRoutesBuilder_.addMessage(value); } return this; } /** *
       * List of static routes.
       * 
* * repeated .yandex.cloud.vpc.v1.StaticRoute static_routes = 8; */ public Builder addStaticRoutes( int index, yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute value) { if (staticRoutesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStaticRoutesIsMutable(); staticRoutes_.add(index, value); onChanged(); } else { staticRoutesBuilder_.addMessage(index, value); } return this; } /** *
       * List of static routes.
       * 
* * repeated .yandex.cloud.vpc.v1.StaticRoute static_routes = 8; */ public Builder addStaticRoutes( yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute.Builder builderForValue) { if (staticRoutesBuilder_ == null) { ensureStaticRoutesIsMutable(); staticRoutes_.add(builderForValue.build()); onChanged(); } else { staticRoutesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of static routes.
       * 
* * repeated .yandex.cloud.vpc.v1.StaticRoute static_routes = 8; */ public Builder addStaticRoutes( int index, yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute.Builder builderForValue) { if (staticRoutesBuilder_ == null) { ensureStaticRoutesIsMutable(); staticRoutes_.add(index, builderForValue.build()); onChanged(); } else { staticRoutesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of static routes.
       * 
* * repeated .yandex.cloud.vpc.v1.StaticRoute static_routes = 8; */ public Builder addAllStaticRoutes( java.lang.Iterable values) { if (staticRoutesBuilder_ == null) { ensureStaticRoutesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, staticRoutes_); onChanged(); } else { staticRoutesBuilder_.addAllMessages(values); } return this; } /** *
       * List of static routes.
       * 
* * repeated .yandex.cloud.vpc.v1.StaticRoute static_routes = 8; */ public Builder clearStaticRoutes() { if (staticRoutesBuilder_ == null) { staticRoutes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { staticRoutesBuilder_.clear(); } return this; } /** *
       * List of static routes.
       * 
* * repeated .yandex.cloud.vpc.v1.StaticRoute static_routes = 8; */ public Builder removeStaticRoutes(int index) { if (staticRoutesBuilder_ == null) { ensureStaticRoutesIsMutable(); staticRoutes_.remove(index); onChanged(); } else { staticRoutesBuilder_.remove(index); } return this; } /** *
       * List of static routes.
       * 
* * repeated .yandex.cloud.vpc.v1.StaticRoute static_routes = 8; */ public yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute.Builder getStaticRoutesBuilder( int index) { return getStaticRoutesFieldBuilder().getBuilder(index); } /** *
       * List of static routes.
       * 
* * repeated .yandex.cloud.vpc.v1.StaticRoute static_routes = 8; */ public yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRouteOrBuilder getStaticRoutesOrBuilder( int index) { if (staticRoutesBuilder_ == null) { return staticRoutes_.get(index); } else { return staticRoutesBuilder_.getMessageOrBuilder(index); } } /** *
       * List of static routes.
       * 
* * repeated .yandex.cloud.vpc.v1.StaticRoute static_routes = 8; */ public java.util.List getStaticRoutesOrBuilderList() { if (staticRoutesBuilder_ != null) { return staticRoutesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(staticRoutes_); } } /** *
       * List of static routes.
       * 
* * repeated .yandex.cloud.vpc.v1.StaticRoute static_routes = 8; */ public yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute.Builder addStaticRoutesBuilder() { return getStaticRoutesFieldBuilder().addBuilder( yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute.getDefaultInstance()); } /** *
       * List of static routes.
       * 
* * repeated .yandex.cloud.vpc.v1.StaticRoute static_routes = 8; */ public yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute.Builder addStaticRoutesBuilder( int index) { return getStaticRoutesFieldBuilder().addBuilder( index, yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute.getDefaultInstance()); } /** *
       * List of static routes.
       * 
* * repeated .yandex.cloud.vpc.v1.StaticRoute static_routes = 8; */ public java.util.List getStaticRoutesBuilderList() { return getStaticRoutesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute, yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute.Builder, yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRouteOrBuilder> getStaticRoutesFieldBuilder() { if (staticRoutesBuilder_ == null) { staticRoutesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute, yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute.Builder, yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRouteOrBuilder>( staticRoutes_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); staticRoutes_ = null; } return staticRoutesBuilder_; } @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.vpc.v1.RouteTable) } // @@protoc_insertion_point(class_scope:yandex.cloud.vpc.v1.RouteTable) private static final yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable(); } public static yandex.cloud.api.vpc.v1.RouteTableOuterClass.RouteTable getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RouteTable parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RouteTable(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.vpc.v1.RouteTableOuterClass.RouteTable getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StaticRouteOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.vpc.v1.StaticRoute) com.google.protobuf.MessageOrBuilder { /** *
     * Destination subnet in CIDR notation
     * 
* * string destination_prefix = 1; * @return Whether the destinationPrefix field is set. */ boolean hasDestinationPrefix(); /** *
     * Destination subnet in CIDR notation
     * 
* * string destination_prefix = 1; * @return The destinationPrefix. */ java.lang.String getDestinationPrefix(); /** *
     * Destination subnet in CIDR notation
     * 
* * string destination_prefix = 1; * @return The bytes for destinationPrefix. */ com.google.protobuf.ByteString getDestinationPrefixBytes(); /** *
     * Next hop IP address
     * 
* * string next_hop_address = 2; * @return Whether the nextHopAddress field is set. */ boolean hasNextHopAddress(); /** *
     * Next hop IP address
     * 
* * string next_hop_address = 2; * @return The nextHopAddress. */ java.lang.String getNextHopAddress(); /** *
     * Next hop IP address
     * 
* * string next_hop_address = 2; * @return The bytes for nextHopAddress. */ com.google.protobuf.ByteString getNextHopAddressBytes(); /** *
     * Next hop gateway id
     * 
* * string gateway_id = 4; * @return Whether the gatewayId field is set. */ boolean hasGatewayId(); /** *
     * Next hop gateway id
     * 
* * string gateway_id = 4; * @return The gatewayId. */ java.lang.String getGatewayId(); /** *
     * Next hop gateway id
     * 
* * string gateway_id = 4; * @return The bytes for gatewayId. */ com.google.protobuf.ByteString getGatewayIdBytes(); /** *
     * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
     * 
* * map<string, string> labels = 3; */ int getLabelsCount(); /** *
     * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
     * 
* * map<string, string> labels = 3; */ boolean containsLabels( java.lang.String key); /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** *
     * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
     * 
* * map<string, string> labels = 3; */ java.util.Map getLabelsMap(); /** *
     * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
     * 
* * map<string, string> labels = 3; */ java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
     * 
* * map<string, string> labels = 3; */ java.lang.String getLabelsOrThrow( java.lang.String key); public yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute.DestinationCase getDestinationCase(); public yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute.NextHopCase getNextHopCase(); } /** *
   * A StaticRoute resource. For more information, see [Static Routes](/docs/vpc/concepts/static-routes).
   * 
* * Protobuf type {@code yandex.cloud.vpc.v1.StaticRoute} */ public static final class StaticRoute extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.vpc.v1.StaticRoute) StaticRouteOrBuilder { private static final long serialVersionUID = 0L; // Use StaticRoute.newBuilder() to construct. private StaticRoute(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StaticRoute() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StaticRoute(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StaticRoute( 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(); destinationCase_ = 1; destination_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); nextHopCase_ = 2; nextHop_ = s; break; } case 26: { 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; } case 34: { java.lang.String s = input.readStringRequireUtf8(); nextHopCase_ = 4; nextHop_ = 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.vpc.v1.RouteTableOuterClass.internal_static_yandex_cloud_vpc_v1_StaticRoute_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: 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.vpc.v1.RouteTableOuterClass.internal_static_yandex_cloud_vpc_v1_StaticRoute_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute.class, yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; public enum DestinationCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { DESTINATION_PREFIX(1), DESTINATION_NOT_SET(0); private final int value; private DestinationCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static DestinationCase valueOf(int value) { return forNumber(value); } public static DestinationCase forNumber(int value) { switch (value) { case 1: return DESTINATION_PREFIX; case 0: return DESTINATION_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public DestinationCase getDestinationCase() { return DestinationCase.forNumber( destinationCase_); } private int nextHopCase_ = 0; private java.lang.Object nextHop_; public enum NextHopCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { NEXT_HOP_ADDRESS(2), GATEWAY_ID(4), NEXTHOP_NOT_SET(0); private final int value; private NextHopCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static NextHopCase valueOf(int value) { return forNumber(value); } public static NextHopCase forNumber(int value) { switch (value) { case 2: return NEXT_HOP_ADDRESS; case 4: return GATEWAY_ID; case 0: return NEXTHOP_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public NextHopCase getNextHopCase() { return NextHopCase.forNumber( nextHopCase_); } public static final int DESTINATION_PREFIX_FIELD_NUMBER = 1; /** *
     * Destination subnet in CIDR notation
     * 
* * string destination_prefix = 1; * @return Whether the destinationPrefix field is set. */ public boolean hasDestinationPrefix() { return destinationCase_ == 1; } /** *
     * Destination subnet in CIDR notation
     * 
* * string destination_prefix = 1; * @return The destinationPrefix. */ public java.lang.String getDestinationPrefix() { java.lang.Object ref = ""; if (destinationCase_ == 1) { ref = destination_; } 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(); if (destinationCase_ == 1) { destination_ = s; } return s; } } /** *
     * Destination subnet in CIDR notation
     * 
* * string destination_prefix = 1; * @return The bytes for destinationPrefix. */ public com.google.protobuf.ByteString getDestinationPrefixBytes() { java.lang.Object ref = ""; if (destinationCase_ == 1) { ref = destination_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (destinationCase_ == 1) { destination_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NEXT_HOP_ADDRESS_FIELD_NUMBER = 2; /** *
     * Next hop IP address
     * 
* * string next_hop_address = 2; * @return Whether the nextHopAddress field is set. */ public boolean hasNextHopAddress() { return nextHopCase_ == 2; } /** *
     * Next hop IP address
     * 
* * string next_hop_address = 2; * @return The nextHopAddress. */ public java.lang.String getNextHopAddress() { java.lang.Object ref = ""; if (nextHopCase_ == 2) { ref = nextHop_; } 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(); if (nextHopCase_ == 2) { nextHop_ = s; } return s; } } /** *
     * Next hop IP address
     * 
* * string next_hop_address = 2; * @return The bytes for nextHopAddress. */ public com.google.protobuf.ByteString getNextHopAddressBytes() { java.lang.Object ref = ""; if (nextHopCase_ == 2) { ref = nextHop_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (nextHopCase_ == 2) { nextHop_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GATEWAY_ID_FIELD_NUMBER = 4; /** *
     * Next hop gateway id
     * 
* * string gateway_id = 4; * @return Whether the gatewayId field is set. */ public boolean hasGatewayId() { return nextHopCase_ == 4; } /** *
     * Next hop gateway id
     * 
* * string gateway_id = 4; * @return The gatewayId. */ public java.lang.String getGatewayId() { java.lang.Object ref = ""; if (nextHopCase_ == 4) { ref = nextHop_; } 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(); if (nextHopCase_ == 4) { nextHop_ = s; } return s; } } /** *
     * Next hop gateway id
     * 
* * string gateway_id = 4; * @return The bytes for gatewayId. */ public com.google.protobuf.ByteString getGatewayIdBytes() { java.lang.Object ref = ""; if (nextHopCase_ == 4) { ref = nextHop_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (nextHopCase_ == 4) { nextHop_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABELS_FIELD_NUMBER = 3; 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.vpc.v1.RouteTableOuterClass.internal_static_yandex_cloud_vpc_v1_StaticRoute_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(); } /** *
     * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
     * 
* * map<string, string> labels = 3; */ @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(); } /** *
     * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
     * 
* * map<string, string> labels = 3; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
     * 
* * map<string, string> labels = 3; */ @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; } /** *
     * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
     * 
* * map<string, string> labels = 3; */ @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 (destinationCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, destination_); } if (nextHopCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextHop_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3); if (nextHopCase_ == 4) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nextHop_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (destinationCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, destination_); } if (nextHopCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextHop_); } 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(3, labels__); } if (nextHopCase_ == 4) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nextHop_); } 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.vpc.v1.RouteTableOuterClass.StaticRoute)) { return super.equals(obj); } yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute other = (yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute) obj; if (!internalGetLabels().equals( other.internalGetLabels())) return false; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: if (!getDestinationPrefix() .equals(other.getDestinationPrefix())) return false; break; case 0: default: } if (!getNextHopCase().equals(other.getNextHopCase())) return false; switch (nextHopCase_) { case 2: if (!getNextHopAddress() .equals(other.getNextHopAddress())) return false; break; case 4: if (!getGatewayId() .equals(other.getGatewayId())) return false; break; case 0: default: } 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 (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } switch (destinationCase_) { case 1: hash = (37 * hash) + DESTINATION_PREFIX_FIELD_NUMBER; hash = (53 * hash) + getDestinationPrefix().hashCode(); break; case 0: default: } switch (nextHopCase_) { case 2: hash = (37 * hash) + NEXT_HOP_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getNextHopAddress().hashCode(); break; case 4: hash = (37 * hash) + GATEWAY_ID_FIELD_NUMBER; hash = (53 * hash) + getGatewayId().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute 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.vpc.v1.RouteTableOuterClass.StaticRoute parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute 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.vpc.v1.RouteTableOuterClass.StaticRoute parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute 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.vpc.v1.RouteTableOuterClass.StaticRoute parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute 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.vpc.v1.RouteTableOuterClass.StaticRoute parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute 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.vpc.v1.RouteTableOuterClass.StaticRoute 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; } /** *
     * A StaticRoute resource. For more information, see [Static Routes](/docs/vpc/concepts/static-routes).
     * 
* * Protobuf type {@code yandex.cloud.vpc.v1.StaticRoute} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.vpc.v1.StaticRoute) yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRouteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.vpc.v1.RouteTableOuterClass.internal_static_yandex_cloud_vpc_v1_StaticRoute_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 3: 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.vpc.v1.RouteTableOuterClass.internal_static_yandex_cloud_vpc_v1_StaticRoute_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute.class, yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute.Builder.class); } // Construct using yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute.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(); internalGetMutableLabels().clear(); destinationCase_ = 0; destination_ = null; nextHopCase_ = 0; nextHop_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.vpc.v1.RouteTableOuterClass.internal_static_yandex_cloud_vpc_v1_StaticRoute_descriptor; } @java.lang.Override public yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute getDefaultInstanceForType() { return yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute build() { yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute buildPartial() { yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute result = new yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute(this); int from_bitField0_ = bitField0_; if (destinationCase_ == 1) { result.destination_ = destination_; } if (nextHopCase_ == 2) { result.nextHop_ = nextHop_; } if (nextHopCase_ == 4) { result.nextHop_ = nextHop_; } result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); result.destinationCase_ = destinationCase_; result.nextHopCase_ = nextHopCase_; 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.vpc.v1.RouteTableOuterClass.StaticRoute) { return mergeFrom((yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute other) { if (other == yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute.getDefaultInstance()) return this; internalGetMutableLabels().mergeFrom( other.internalGetLabels()); switch (other.getDestinationCase()) { case DESTINATION_PREFIX: { destinationCase_ = 1; destination_ = other.destination_; onChanged(); break; } case DESTINATION_NOT_SET: { break; } } switch (other.getNextHopCase()) { case NEXT_HOP_ADDRESS: { nextHopCase_ = 2; nextHop_ = other.nextHop_; onChanged(); break; } case GATEWAY_ID: { nextHopCase_ = 4; nextHop_ = other.nextHop_; onChanged(); break; } case NEXTHOP_NOT_SET: { break; } } 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.vpc.v1.RouteTableOuterClass.StaticRoute parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int destinationCase_ = 0; private java.lang.Object destination_; public DestinationCase getDestinationCase() { return DestinationCase.forNumber( destinationCase_); } public Builder clearDestination() { destinationCase_ = 0; destination_ = null; onChanged(); return this; } private int nextHopCase_ = 0; private java.lang.Object nextHop_; public NextHopCase getNextHopCase() { return NextHopCase.forNumber( nextHopCase_); } public Builder clearNextHop() { nextHopCase_ = 0; nextHop_ = null; onChanged(); return this; } private int bitField0_; /** *
       * Destination subnet in CIDR notation
       * 
* * string destination_prefix = 1; * @return Whether the destinationPrefix field is set. */ @java.lang.Override public boolean hasDestinationPrefix() { return destinationCase_ == 1; } /** *
       * Destination subnet in CIDR notation
       * 
* * string destination_prefix = 1; * @return The destinationPrefix. */ @java.lang.Override public java.lang.String getDestinationPrefix() { java.lang.Object ref = ""; if (destinationCase_ == 1) { ref = destination_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (destinationCase_ == 1) { destination_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Destination subnet in CIDR notation
       * 
* * string destination_prefix = 1; * @return The bytes for destinationPrefix. */ @java.lang.Override public com.google.protobuf.ByteString getDestinationPrefixBytes() { java.lang.Object ref = ""; if (destinationCase_ == 1) { ref = destination_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (destinationCase_ == 1) { destination_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Destination subnet in CIDR notation
       * 
* * string destination_prefix = 1; * @param value The destinationPrefix to set. * @return This builder for chaining. */ public Builder setDestinationPrefix( java.lang.String value) { if (value == null) { throw new NullPointerException(); } destinationCase_ = 1; destination_ = value; onChanged(); return this; } /** *
       * Destination subnet in CIDR notation
       * 
* * string destination_prefix = 1; * @return This builder for chaining. */ public Builder clearDestinationPrefix() { if (destinationCase_ == 1) { destinationCase_ = 0; destination_ = null; onChanged(); } return this; } /** *
       * Destination subnet in CIDR notation
       * 
* * string destination_prefix = 1; * @param value The bytes for destinationPrefix to set. * @return This builder for chaining. */ public Builder setDestinationPrefixBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destinationCase_ = 1; destination_ = value; onChanged(); return this; } /** *
       * Next hop IP address
       * 
* * string next_hop_address = 2; * @return Whether the nextHopAddress field is set. */ @java.lang.Override public boolean hasNextHopAddress() { return nextHopCase_ == 2; } /** *
       * Next hop IP address
       * 
* * string next_hop_address = 2; * @return The nextHopAddress. */ @java.lang.Override public java.lang.String getNextHopAddress() { java.lang.Object ref = ""; if (nextHopCase_ == 2) { ref = nextHop_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (nextHopCase_ == 2) { nextHop_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Next hop IP address
       * 
* * string next_hop_address = 2; * @return The bytes for nextHopAddress. */ @java.lang.Override public com.google.protobuf.ByteString getNextHopAddressBytes() { java.lang.Object ref = ""; if (nextHopCase_ == 2) { ref = nextHop_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (nextHopCase_ == 2) { nextHop_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Next hop IP address
       * 
* * string next_hop_address = 2; * @param value The nextHopAddress to set. * @return This builder for chaining. */ public Builder setNextHopAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nextHopCase_ = 2; nextHop_ = value; onChanged(); return this; } /** *
       * Next hop IP address
       * 
* * string next_hop_address = 2; * @return This builder for chaining. */ public Builder clearNextHopAddress() { if (nextHopCase_ == 2) { nextHopCase_ = 0; nextHop_ = null; onChanged(); } return this; } /** *
       * Next hop IP address
       * 
* * string next_hop_address = 2; * @param value The bytes for nextHopAddress to set. * @return This builder for chaining. */ public Builder setNextHopAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextHopCase_ = 2; nextHop_ = value; onChanged(); return this; } /** *
       * Next hop gateway id
       * 
* * string gateway_id = 4; * @return Whether the gatewayId field is set. */ @java.lang.Override public boolean hasGatewayId() { return nextHopCase_ == 4; } /** *
       * Next hop gateway id
       * 
* * string gateway_id = 4; * @return The gatewayId. */ @java.lang.Override public java.lang.String getGatewayId() { java.lang.Object ref = ""; if (nextHopCase_ == 4) { ref = nextHop_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (nextHopCase_ == 4) { nextHop_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Next hop gateway id
       * 
* * string gateway_id = 4; * @return The bytes for gatewayId. */ @java.lang.Override public com.google.protobuf.ByteString getGatewayIdBytes() { java.lang.Object ref = ""; if (nextHopCase_ == 4) { ref = nextHop_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (nextHopCase_ == 4) { nextHop_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Next hop gateway id
       * 
* * string gateway_id = 4; * @param value The gatewayId to set. * @return This builder for chaining. */ public Builder setGatewayId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nextHopCase_ = 4; nextHop_ = value; onChanged(); return this; } /** *
       * Next hop gateway id
       * 
* * string gateway_id = 4; * @return This builder for chaining. */ public Builder clearGatewayId() { if (nextHopCase_ == 4) { nextHopCase_ = 0; nextHop_ = null; onChanged(); } return this; } /** *
       * Next hop gateway id
       * 
* * string gateway_id = 4; * @param value The bytes for gatewayId to set. * @return This builder for chaining. */ public Builder setGatewayIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextHopCase_ = 4; nextHop_ = 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(); } /** *
       * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
       * 
* * map<string, string> labels = 3; */ @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(); } /** *
       * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
       * 
* * map<string, string> labels = 3; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
       * 
* * map<string, string> labels = 3; */ @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; } /** *
       * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
       * 
* * map<string, string> labels = 3; */ @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; } /** *
       * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
       * 
* * map<string, string> labels = 3; */ 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(); } /** *
       * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
       * 
* * map<string, string> labels = 3; */ 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; } /** *
       * Resource labels as `` key:value `` pairs. Maximum of 64 per resource.
       * 
* * map<string, string> labels = 3; */ 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.vpc.v1.StaticRoute) } // @@protoc_insertion_point(class_scope:yandex.cloud.vpc.v1.StaticRoute) private static final yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute(); } public static yandex.cloud.api.vpc.v1.RouteTableOuterClass.StaticRoute getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StaticRoute parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StaticRoute(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.vpc.v1.RouteTableOuterClass.StaticRoute getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_vpc_v1_RouteTable_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_vpc_v1_RouteTable_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_vpc_v1_RouteTable_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_vpc_v1_RouteTable_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_vpc_v1_StaticRoute_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_vpc_v1_StaticRoute_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_vpc_v1_StaticRoute_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_vpc_v1_StaticRoute_LabelsEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n%yandex/cloud/vpc/v1/route_table.proto\022" + "\023yandex.cloud.vpc.v1\032\037google/protobuf/ti" + "mestamp.proto\"\267\002\n\nRouteTable\022\n\n\002id\030\001 \001(\t" + "\022\021\n\tfolder_id\030\002 \001(\t\022.\n\ncreated_at\030\003 \001(\0132" + "\032.google.protobuf.Timestamp\022\014\n\004name\030\004 \001(" + "\t\022\023\n\013description\030\005 \001(\t\022;\n\006labels\030\006 \003(\0132+" + ".yandex.cloud.vpc.v1.RouteTable.LabelsEn" + "try\022\022\n\nnetwork_id\030\007 \001(\t\0227\n\rstatic_routes" + "\030\010 \003(\0132 .yandex.cloud.vpc.v1.StaticRoute" + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + "\001(\t:\0028\001\"\345\001\n\013StaticRoute\022\034\n\022destination_p" + "refix\030\001 \001(\tH\000\022\032\n\020next_hop_address\030\002 \001(\tH" + "\001\022\024\n\ngateway_id\030\004 \001(\tH\001\022<\n\006labels\030\003 \003(\0132" + ",.yandex.cloud.vpc.v1.StaticRoute.Labels" + "Entry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + "ue\030\002 \001(\t:\0028\001B\r\n\013destinationB\n\n\010next_hopB" + "V\n\027yandex.cloud.api.vpc.v1Z;github.com/y" + "andex-cloud/go-genproto/yandex/cloud/vpc" + "/v1;vpcb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_yandex_cloud_vpc_v1_RouteTable_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_vpc_v1_RouteTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_vpc_v1_RouteTable_descriptor, new java.lang.String[] { "Id", "FolderId", "CreatedAt", "Name", "Description", "Labels", "NetworkId", "StaticRoutes", }); internal_static_yandex_cloud_vpc_v1_RouteTable_LabelsEntry_descriptor = internal_static_yandex_cloud_vpc_v1_RouteTable_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_vpc_v1_RouteTable_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_vpc_v1_RouteTable_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_vpc_v1_StaticRoute_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_vpc_v1_StaticRoute_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_vpc_v1_StaticRoute_descriptor, new java.lang.String[] { "DestinationPrefix", "NextHopAddress", "GatewayId", "Labels", "Destination", "NextHop", }); internal_static_yandex_cloud_vpc_v1_StaticRoute_LabelsEntry_descriptor = internal_static_yandex_cloud_vpc_v1_StaticRoute_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_vpc_v1_StaticRoute_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_vpc_v1_StaticRoute_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy