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

yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass Maven / Gradle / Ivy

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

package yandex.cloud.api.apploadbalancer.v1;

public final class HttpRouterOuterClass {
  private HttpRouterOuterClass() {}
  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 HttpRouterOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.apploadbalancer.v1.HttpRouter)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * ID of the router. Generated at creation time.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * ID of the router. Generated at creation time.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * Name of the router. The name is unique within the folder.
     * 
* * string name = 2; * @return The name. */ java.lang.String getName(); /** *
     * Name of the router. The name is unique within the folder.
     * 
* * string name = 2; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Description of the router.
     * 
* * string description = 3; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the router.
     * 
* * string description = 3; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * ID of the folder that the router belongs to.
     * 
* * string folder_id = 4; * @return The folderId. */ java.lang.String getFolderId(); /** *
     * ID of the folder that the router belongs to.
     * 
* * string folder_id = 4; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** *
     * Router labels as `key:value` pairs.
     * For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
     * 
* * map<string, string> labels = 5; */ int getLabelsCount(); /** *
     * Router labels as `key:value` pairs.
     * For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
     * 
* * map<string, string> labels = 5; */ boolean containsLabels( java.lang.String key); /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** *
     * Router labels as `key:value` pairs.
     * For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
     * 
* * map<string, string> labels = 5; */ java.util.Map getLabelsMap(); /** *
     * Router labels as `key:value` pairs.
     * For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
     * 
* * map<string, string> labels = 5; */ java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * Router labels as `key:value` pairs.
     * For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
     * 
* * map<string, string> labels = 5; */ java.lang.String getLabelsOrThrow( java.lang.String key); /** *
     * Virtual hosts that combine routes inside the router.
     * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#virtual-host).
     * Only one virtual host with no authority (default match) can be specified.
     * 
* * repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 6; */ java.util.List getVirtualHostsList(); /** *
     * Virtual hosts that combine routes inside the router.
     * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#virtual-host).
     * Only one virtual host with no authority (default match) can be specified.
     * 
* * repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 6; */ yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost getVirtualHosts(int index); /** *
     * Virtual hosts that combine routes inside the router.
     * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#virtual-host).
     * Only one virtual host with no authority (default match) can be specified.
     * 
* * repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 6; */ int getVirtualHostsCount(); /** *
     * Virtual hosts that combine routes inside the router.
     * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#virtual-host).
     * Only one virtual host with no authority (default match) can be specified.
     * 
* * repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 6; */ java.util.List getVirtualHostsOrBuilderList(); /** *
     * Virtual hosts that combine routes inside the router.
     * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#virtual-host).
     * Only one virtual host with no authority (default match) can be specified.
     * 
* * repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 6; */ yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHostOrBuilder getVirtualHostsOrBuilder( int index); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 7; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 7; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 7; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** * .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8; * @return Whether the routeOptions field is set. */ boolean hasRouteOptions(); /** * .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8; * @return The routeOptions. */ yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions getRouteOptions(); /** * .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8; */ yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptionsOrBuilder getRouteOptionsOrBuilder(); } /** *
   * An HTTP router resource.
   * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router).
   * 
* * Protobuf type {@code yandex.cloud.apploadbalancer.v1.HttpRouter} */ public static final class HttpRouter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.apploadbalancer.v1.HttpRouter) HttpRouterOrBuilder { private static final long serialVersionUID = 0L; // Use HttpRouter.newBuilder() to construct. private HttpRouter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HttpRouter() { id_ = ""; name_ = ""; description_ = ""; folderId_ = ""; virtualHosts_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new HttpRouter(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HttpRouter( 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(); name_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); folderId_ = s; break; } case 42: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); labels_.getMutableMap().put( labels__.getKey(), labels__.getValue()); break; } case 50: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { virtualHosts_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } virtualHosts_.add( input.readMessage(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost.parser(), extensionRegistry)); break; } case 58: { 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 66: { yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.Builder subBuilder = null; if (routeOptions_ != null) { subBuilder = routeOptions_.toBuilder(); } routeOptions_ = input.readMessage(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(routeOptions_); routeOptions_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) != 0)) { virtualHosts_ = java.util.Collections.unmodifiableList(virtualHosts_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_HttpRouter_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_HttpRouter_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter.class, yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID of the router. Generated at creation time.
     * 
* * 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 router. Generated at creation time.
     * 
* * 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 NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
     * Name of the router. The name is unique within the folder.
     * 
* * string name = 2; * @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 router. The name is unique within the folder.
     * 
* * string name = 2; * @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 = 3; private volatile java.lang.Object description_; /** *
     * Description of the router.
     * 
* * string description = 3; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** *
     * Description of the router.
     * 
* * string description = 3; * @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 FOLDER_ID_FIELD_NUMBER = 4; private volatile java.lang.Object folderId_; /** *
     * ID of the folder that the router belongs to.
     * 
* * string folder_id = 4; * @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 router belongs to.
     * 
* * string folder_id = 4; * @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 LABELS_FIELD_NUMBER = 5; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_HttpRouter_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(); } /** *
     * Router labels as `key:value` pairs.
     * For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
     * 
* * map<string, string> labels = 5; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
     * Router labels as `key:value` pairs.
     * For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
     * 
* * map<string, string> labels = 5; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * Router labels as `key:value` pairs.
     * For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
     * 
* * map<string, string> labels = 5; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Router labels as `key:value` pairs.
     * For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
     * 
* * map<string, string> labels = 5; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int VIRTUAL_HOSTS_FIELD_NUMBER = 6; private java.util.List virtualHosts_; /** *
     * Virtual hosts that combine routes inside the router.
     * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#virtual-host).
     * Only one virtual host with no authority (default match) can be specified.
     * 
* * repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 6; */ @java.lang.Override public java.util.List getVirtualHostsList() { return virtualHosts_; } /** *
     * Virtual hosts that combine routes inside the router.
     * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#virtual-host).
     * Only one virtual host with no authority (default match) can be specified.
     * 
* * repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 6; */ @java.lang.Override public java.util.List getVirtualHostsOrBuilderList() { return virtualHosts_; } /** *
     * Virtual hosts that combine routes inside the router.
     * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#virtual-host).
     * Only one virtual host with no authority (default match) can be specified.
     * 
* * repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 6; */ @java.lang.Override public int getVirtualHostsCount() { return virtualHosts_.size(); } /** *
     * Virtual hosts that combine routes inside the router.
     * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#virtual-host).
     * Only one virtual host with no authority (default match) can be specified.
     * 
* * repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 6; */ @java.lang.Override public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost getVirtualHosts(int index) { return virtualHosts_.get(index); } /** *
     * Virtual hosts that combine routes inside the router.
     * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#virtual-host).
     * Only one virtual host with no authority (default match) can be specified.
     * 
* * repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 6; */ @java.lang.Override public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHostOrBuilder getVirtualHostsOrBuilder( int index) { return virtualHosts_.get(index); } public static final int CREATED_AT_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createdAt_; /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 7; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 7; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 7; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int ROUTE_OPTIONS_FIELD_NUMBER = 8; private yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions routeOptions_; /** * .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8; * @return Whether the routeOptions field is set. */ @java.lang.Override public boolean hasRouteOptions() { return routeOptions_ != null; } /** * .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8; * @return The routeOptions. */ @java.lang.Override public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions getRouteOptions() { return routeOptions_ == null ? yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.getDefaultInstance() : routeOptions_; } /** * .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8; */ @java.lang.Override public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptionsOrBuilder getRouteOptionsOrBuilder() { return getRouteOptions(); } 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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, folderId_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); for (int i = 0; i < virtualHosts_.size(); i++) { output.writeMessage(6, virtualHosts_.get(i)); } if (createdAt_ != null) { output.writeMessage(7, getCreatedAt()); } if (routeOptions_ != null) { output.writeMessage(8, getRouteOptions()); } 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(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, folderId_); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, labels__); } for (int i = 0; i < virtualHosts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, virtualHosts_.get(i)); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getCreatedAt()); } if (routeOptions_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getRouteOptions()); } 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.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter)) { return super.equals(obj); } yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter other = (yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter) obj; if (!getId() .equals(other.getId())) return false; if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!getFolderId() .equals(other.getFolderId())) return false; if (!internalGetLabels().equals( other.internalGetLabels())) return false; if (!getVirtualHostsList() .equals(other.getVirtualHostsList())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (hasRouteOptions() != other.hasRouteOptions()) return false; if (hasRouteOptions()) { if (!getRouteOptions() .equals(other.getRouteOptions())) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getFolderId().hashCode(); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } if (getVirtualHostsCount() > 0) { hash = (37 * hash) + VIRTUAL_HOSTS_FIELD_NUMBER; hash = (53 * hash) + getVirtualHostsList().hashCode(); } if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } if (hasRouteOptions()) { hash = (37 * hash) + ROUTE_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getRouteOptions().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter 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.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter 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.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter 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.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter 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.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter 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.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter 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; } /** *
     * An HTTP router resource.
     * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router).
     * 
* * Protobuf type {@code yandex.cloud.apploadbalancer.v1.HttpRouter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.apploadbalancer.v1.HttpRouter) yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_HttpRouter_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 5: return internalGetMutableLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_HttpRouter_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter.class, yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter.Builder.class); } // Construct using yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getVirtualHostsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; name_ = ""; description_ = ""; folderId_ = ""; internalGetMutableLabels().clear(); if (virtualHostsBuilder_ == null) { virtualHosts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { virtualHostsBuilder_.clear(); } if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } if (routeOptionsBuilder_ == null) { routeOptions_ = null; } else { routeOptions_ = null; routeOptionsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_HttpRouter_descriptor; } @java.lang.Override public yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter getDefaultInstanceForType() { return yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter build() { yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter buildPartial() { yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter result = new yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.name_ = name_; result.description_ = description_; result.folderId_ = folderId_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); if (virtualHostsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { virtualHosts_ = java.util.Collections.unmodifiableList(virtualHosts_); bitField0_ = (bitField0_ & ~0x00000002); } result.virtualHosts_ = virtualHosts_; } else { result.virtualHosts_ = virtualHostsBuilder_.build(); } if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } if (routeOptionsBuilder_ == null) { result.routeOptions_ = routeOptions_; } else { result.routeOptions_ = routeOptionsBuilder_.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.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter) { return mergeFrom((yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter other) { if (other == yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (!other.getFolderId().isEmpty()) { folderId_ = other.folderId_; onChanged(); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); if (virtualHostsBuilder_ == null) { if (!other.virtualHosts_.isEmpty()) { if (virtualHosts_.isEmpty()) { virtualHosts_ = other.virtualHosts_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureVirtualHostsIsMutable(); virtualHosts_.addAll(other.virtualHosts_); } onChanged(); } } else { if (!other.virtualHosts_.isEmpty()) { if (virtualHostsBuilder_.isEmpty()) { virtualHostsBuilder_.dispose(); virtualHostsBuilder_ = null; virtualHosts_ = other.virtualHosts_; bitField0_ = (bitField0_ & ~0x00000002); virtualHostsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVirtualHostsFieldBuilder() : null; } else { virtualHostsBuilder_.addAllMessages(other.virtualHosts_); } } } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (other.hasRouteOptions()) { mergeRouteOptions(other.getRouteOptions()); } 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.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * ID of the router. Generated at creation time.
       * 
* * 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 router. Generated at creation time.
       * 
* * 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 router. Generated at creation time.
       * 
* * 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 router. Generated at creation time.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of the router. Generated at creation time.
       * 
* * 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 name_ = ""; /** *
       * Name of the router. The name is unique within the folder.
       * 
* * string name = 2; * @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 router. The name is unique within the folder.
       * 
* * string name = 2; * @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 router. The name is unique within the folder.
       * 
* * string name = 2; * @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 router. The name is unique within the folder.
       * 
* * string name = 2; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the router. The name is unique within the folder.
       * 
* * string name = 2; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * Description of the router.
       * 
* * string description = 3; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Description of the router.
       * 
* * string description = 3; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Description of the router.
       * 
* * string description = 3; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
       * Description of the router.
       * 
* * string description = 3; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Description of the router.
       * 
* * string description = 3; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private java.lang.Object folderId_ = ""; /** *
       * ID of the folder that the router belongs to.
       * 
* * string folder_id = 4; * @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 router belongs to.
       * 
* * string folder_id = 4; * @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 router belongs to.
       * 
* * string folder_id = 4; * @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 router belongs to.
       * 
* * string folder_id = 4; * @return This builder for chaining. */ public Builder clearFolderId() { folderId_ = getDefaultInstance().getFolderId(); onChanged(); return this; } /** *
       * ID of the folder that the router belongs to.
       * 
* * string folder_id = 4; * @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.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(); } /** *
       * Router labels as `key:value` pairs.
       * For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
       * 
* * map<string, string> labels = 5; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
       * Router labels as `key:value` pairs.
       * For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
       * 
* * map<string, string> labels = 5; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * Router labels as `key:value` pairs.
       * For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
       * 
* * map<string, string> labels = 5; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Router labels as `key:value` pairs.
       * For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
       * 
* * map<string, string> labels = 5; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { internalGetMutableLabels().getMutableMap() .clear(); return this; } /** *
       * Router labels as `key:value` pairs.
       * For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
       * 
* * map<string, string> labels = 5; */ public Builder removeLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** *
       * Router labels as `key:value` pairs.
       * For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
       * 
* * map<string, string> labels = 5; */ public Builder putLabels( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap() .put(key, value); return this; } /** *
       * Router labels as `key:value` pairs.
       * For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
       * 
* * map<string, string> labels = 5; */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); return this; } private java.util.List virtualHosts_ = java.util.Collections.emptyList(); private void ensureVirtualHostsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { virtualHosts_ = new java.util.ArrayList(virtualHosts_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHostOrBuilder> virtualHostsBuilder_; /** *
       * Virtual hosts that combine routes inside the router.
       * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#virtual-host).
       * Only one virtual host with no authority (default match) can be specified.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 6; */ public java.util.List getVirtualHostsList() { if (virtualHostsBuilder_ == null) { return java.util.Collections.unmodifiableList(virtualHosts_); } else { return virtualHostsBuilder_.getMessageList(); } } /** *
       * Virtual hosts that combine routes inside the router.
       * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#virtual-host).
       * Only one virtual host with no authority (default match) can be specified.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 6; */ public int getVirtualHostsCount() { if (virtualHostsBuilder_ == null) { return virtualHosts_.size(); } else { return virtualHostsBuilder_.getCount(); } } /** *
       * Virtual hosts that combine routes inside the router.
       * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#virtual-host).
       * Only one virtual host with no authority (default match) can be specified.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 6; */ public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost getVirtualHosts(int index) { if (virtualHostsBuilder_ == null) { return virtualHosts_.get(index); } else { return virtualHostsBuilder_.getMessage(index); } } /** *
       * Virtual hosts that combine routes inside the router.
       * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#virtual-host).
       * Only one virtual host with no authority (default match) can be specified.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 6; */ public Builder setVirtualHosts( int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost value) { if (virtualHostsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVirtualHostsIsMutable(); virtualHosts_.set(index, value); onChanged(); } else { virtualHostsBuilder_.setMessage(index, value); } return this; } /** *
       * Virtual hosts that combine routes inside the router.
       * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#virtual-host).
       * Only one virtual host with no authority (default match) can be specified.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 6; */ public Builder setVirtualHosts( int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost.Builder builderForValue) { if (virtualHostsBuilder_ == null) { ensureVirtualHostsIsMutable(); virtualHosts_.set(index, builderForValue.build()); onChanged(); } else { virtualHostsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Virtual hosts that combine routes inside the router.
       * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#virtual-host).
       * Only one virtual host with no authority (default match) can be specified.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 6; */ public Builder addVirtualHosts(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost value) { if (virtualHostsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVirtualHostsIsMutable(); virtualHosts_.add(value); onChanged(); } else { virtualHostsBuilder_.addMessage(value); } return this; } /** *
       * Virtual hosts that combine routes inside the router.
       * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#virtual-host).
       * Only one virtual host with no authority (default match) can be specified.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 6; */ public Builder addVirtualHosts( int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost value) { if (virtualHostsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVirtualHostsIsMutable(); virtualHosts_.add(index, value); onChanged(); } else { virtualHostsBuilder_.addMessage(index, value); } return this; } /** *
       * Virtual hosts that combine routes inside the router.
       * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#virtual-host).
       * Only one virtual host with no authority (default match) can be specified.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 6; */ public Builder addVirtualHosts( yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost.Builder builderForValue) { if (virtualHostsBuilder_ == null) { ensureVirtualHostsIsMutable(); virtualHosts_.add(builderForValue.build()); onChanged(); } else { virtualHostsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Virtual hosts that combine routes inside the router.
       * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#virtual-host).
       * Only one virtual host with no authority (default match) can be specified.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 6; */ public Builder addVirtualHosts( int index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost.Builder builderForValue) { if (virtualHostsBuilder_ == null) { ensureVirtualHostsIsMutable(); virtualHosts_.add(index, builderForValue.build()); onChanged(); } else { virtualHostsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Virtual hosts that combine routes inside the router.
       * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#virtual-host).
       * Only one virtual host with no authority (default match) can be specified.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 6; */ public Builder addAllVirtualHosts( java.lang.Iterable values) { if (virtualHostsBuilder_ == null) { ensureVirtualHostsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, virtualHosts_); onChanged(); } else { virtualHostsBuilder_.addAllMessages(values); } return this; } /** *
       * Virtual hosts that combine routes inside the router.
       * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#virtual-host).
       * Only one virtual host with no authority (default match) can be specified.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 6; */ public Builder clearVirtualHosts() { if (virtualHostsBuilder_ == null) { virtualHosts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { virtualHostsBuilder_.clear(); } return this; } /** *
       * Virtual hosts that combine routes inside the router.
       * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#virtual-host).
       * Only one virtual host with no authority (default match) can be specified.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 6; */ public Builder removeVirtualHosts(int index) { if (virtualHostsBuilder_ == null) { ensureVirtualHostsIsMutable(); virtualHosts_.remove(index); onChanged(); } else { virtualHostsBuilder_.remove(index); } return this; } /** *
       * Virtual hosts that combine routes inside the router.
       * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#virtual-host).
       * Only one virtual host with no authority (default match) can be specified.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 6; */ public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost.Builder getVirtualHostsBuilder( int index) { return getVirtualHostsFieldBuilder().getBuilder(index); } /** *
       * Virtual hosts that combine routes inside the router.
       * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#virtual-host).
       * Only one virtual host with no authority (default match) can be specified.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 6; */ public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHostOrBuilder getVirtualHostsOrBuilder( int index) { if (virtualHostsBuilder_ == null) { return virtualHosts_.get(index); } else { return virtualHostsBuilder_.getMessageOrBuilder(index); } } /** *
       * Virtual hosts that combine routes inside the router.
       * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#virtual-host).
       * Only one virtual host with no authority (default match) can be specified.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 6; */ public java.util.List getVirtualHostsOrBuilderList() { if (virtualHostsBuilder_ != null) { return virtualHostsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(virtualHosts_); } } /** *
       * Virtual hosts that combine routes inside the router.
       * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#virtual-host).
       * Only one virtual host with no authority (default match) can be specified.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 6; */ public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost.Builder addVirtualHostsBuilder() { return getVirtualHostsFieldBuilder().addBuilder( yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost.getDefaultInstance()); } /** *
       * Virtual hosts that combine routes inside the router.
       * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#virtual-host).
       * Only one virtual host with no authority (default match) can be specified.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 6; */ public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost.Builder addVirtualHostsBuilder( int index) { return getVirtualHostsFieldBuilder().addBuilder( index, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost.getDefaultInstance()); } /** *
       * Virtual hosts that combine routes inside the router.
       * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/http-router#virtual-host).
       * Only one virtual host with no authority (default match) can be specified.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.VirtualHost virtual_hosts = 6; */ public java.util.List getVirtualHostsBuilderList() { return getVirtualHostsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHostOrBuilder> getVirtualHostsFieldBuilder() { if (virtualHostsBuilder_ == null) { virtualHostsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHost.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.VirtualHostOrBuilder>( virtualHosts_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); virtualHosts_ = null; } return virtualHostsBuilder_; } 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.
       * 
* * .google.protobuf.Timestamp created_at = 7; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 7; * @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.
       * 
* * .google.protobuf.Timestamp created_at = 7; */ 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.
       * 
* * .google.protobuf.Timestamp created_at = 7; */ 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.
       * 
* * .google.protobuf.Timestamp created_at = 7; */ 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.
       * 
* * .google.protobuf.Timestamp created_at = 7; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 7; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 7; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 7; */ 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 yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions routeOptions_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptionsOrBuilder> routeOptionsBuilder_; /** * .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8; * @return Whether the routeOptions field is set. */ public boolean hasRouteOptions() { return routeOptionsBuilder_ != null || routeOptions_ != null; } /** * .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8; * @return The routeOptions. */ public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions getRouteOptions() { if (routeOptionsBuilder_ == null) { return routeOptions_ == null ? yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.getDefaultInstance() : routeOptions_; } else { return routeOptionsBuilder_.getMessage(); } } /** * .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8; */ public Builder setRouteOptions(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions value) { if (routeOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } routeOptions_ = value; onChanged(); } else { routeOptionsBuilder_.setMessage(value); } return this; } /** * .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8; */ public Builder setRouteOptions( yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.Builder builderForValue) { if (routeOptionsBuilder_ == null) { routeOptions_ = builderForValue.build(); onChanged(); } else { routeOptionsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8; */ public Builder mergeRouteOptions(yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions value) { if (routeOptionsBuilder_ == null) { if (routeOptions_ != null) { routeOptions_ = yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.newBuilder(routeOptions_).mergeFrom(value).buildPartial(); } else { routeOptions_ = value; } onChanged(); } else { routeOptionsBuilder_.mergeFrom(value); } return this; } /** * .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8; */ public Builder clearRouteOptions() { if (routeOptionsBuilder_ == null) { routeOptions_ = null; onChanged(); } else { routeOptions_ = null; routeOptionsBuilder_ = null; } return this; } /** * .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8; */ public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.Builder getRouteOptionsBuilder() { onChanged(); return getRouteOptionsFieldBuilder().getBuilder(); } /** * .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8; */ public yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptionsOrBuilder getRouteOptionsOrBuilder() { if (routeOptionsBuilder_ != null) { return routeOptionsBuilder_.getMessageOrBuilder(); } else { return routeOptions_ == null ? yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.getDefaultInstance() : routeOptions_; } } /** * .yandex.cloud.apploadbalancer.v1.RouteOptions route_options = 8; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptionsOrBuilder> getRouteOptionsFieldBuilder() { if (routeOptionsBuilder_ == null) { routeOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptions.Builder, yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.RouteOptionsOrBuilder>( getRouteOptions(), getParentForChildren(), isClean()); routeOptions_ = null; } return routeOptionsBuilder_; } @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.apploadbalancer.v1.HttpRouter) } // @@protoc_insertion_point(class_scope:yandex.cloud.apploadbalancer.v1.HttpRouter) private static final yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter(); } public static yandex.cloud.api.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HttpRouter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HttpRouter(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.apploadbalancer.v1.HttpRouterOuterClass.HttpRouter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_apploadbalancer_v1_HttpRouter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_apploadbalancer_v1_HttpRouter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_apploadbalancer_v1_HttpRouter_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_apploadbalancer_v1_HttpRouter_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 = { "\n1yandex/cloud/apploadbalancer/v1/http_r" + "outer.proto\022\037yandex.cloud.apploadbalance" + "r.v1\032\037google/protobuf/timestamp.proto\0322y" + "andex/cloud/apploadbalancer/v1/virtual_h" + "ost.proto\"\201\003\n\nHttpRouter\022\n\n\002id\030\001 \001(\t\022\014\n\004" + "name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\021\n\tfolde" + "r_id\030\004 \001(\t\022G\n\006labels\030\005 \003(\01327.yandex.clou" + "d.apploadbalancer.v1.HttpRouter.LabelsEn" + "try\022C\n\rvirtual_hosts\030\006 \003(\0132,.yandex.clou" + "d.apploadbalancer.v1.VirtualHost\022.\n\ncrea" + "ted_at\030\007 \001(\0132\032.google.protobuf.Timestamp" + "\022D\n\rroute_options\030\010 \001(\0132-.yandex.cloud.a" + "pploadbalancer.v1.RouteOptions\032-\n\013Labels" + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001Bz\n" + "#yandex.cloud.api.apploadbalancer.v1ZSgi" + "thub.com/yandex-cloud/go-genproto/yandex" + "/cloud/apploadbalancer/v1;apploadbalance" + "rb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.getDescriptor(), }); internal_static_yandex_cloud_apploadbalancer_v1_HttpRouter_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_apploadbalancer_v1_HttpRouter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_apploadbalancer_v1_HttpRouter_descriptor, new java.lang.String[] { "Id", "Name", "Description", "FolderId", "Labels", "VirtualHosts", "CreatedAt", "RouteOptions", }); internal_static_yandex_cloud_apploadbalancer_v1_HttpRouter_LabelsEntry_descriptor = internal_static_yandex_cloud_apploadbalancer_v1_HttpRouter_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_apploadbalancer_v1_HttpRouter_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_apploadbalancer_v1_HttpRouter_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); com.google.protobuf.TimestampProto.getDescriptor(); yandex.cloud.api.apploadbalancer.v1.VirtualHostOuterClass.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy