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

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

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

package yandex.cloud.api.apploadbalancer.v1;

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

    /**
     * 
     * ID of the target group. Generated at creation time.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * ID of the target group. Generated at creation time.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * Name of the target group. The name is unique within the folder.
     * 
* * string name = 2; * @return The name. */ java.lang.String getName(); /** *
     * Name of the target group. The name is unique within the folder.
     * 
* * string name = 2; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Description of the target group.
     * 
* * string description = 3; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the target group.
     * 
* * string description = 3; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * ID of the folder that the target group belongs to.
     * 
* * string folder_id = 4; * @return The folderId. */ java.lang.String getFolderId(); /** *
     * ID of the folder that the target group belongs to.
     * 
* * string folder_id = 4; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** *
     * Target group labels as `key:value` pairs.
     * For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
     * 
* * map<string, string> labels = 5; */ int getLabelsCount(); /** *
     * Target group 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(); /** *
     * Target group 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(); /** *
     * Target group 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); /** *
     * Target group 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); /** *
     * List of targets in the target group.
     * 
* * repeated .yandex.cloud.apploadbalancer.v1.Target targets = 6; */ java.util.List getTargetsList(); /** *
     * List of targets in the target group.
     * 
* * repeated .yandex.cloud.apploadbalancer.v1.Target targets = 6; */ yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target getTargets(int index); /** *
     * List of targets in the target group.
     * 
* * repeated .yandex.cloud.apploadbalancer.v1.Target targets = 6; */ int getTargetsCount(); /** *
     * List of targets in the target group.
     * 
* * repeated .yandex.cloud.apploadbalancer.v1.Target targets = 6; */ java.util.List getTargetsOrBuilderList(); /** *
     * List of targets in the target group.
     * 
* * repeated .yandex.cloud.apploadbalancer.v1.Target targets = 6; */ yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetOrBuilder getTargetsOrBuilder( 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(); } /** *
   * A target group resource.
   * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/target-group).
   * 
* * Protobuf type {@code yandex.cloud.apploadbalancer.v1.TargetGroup} */ public static final class TargetGroup extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.apploadbalancer.v1.TargetGroup) TargetGroupOrBuilder { private static final long serialVersionUID = 0L; // Use TargetGroup.newBuilder() to construct. private TargetGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TargetGroup() { id_ = ""; name_ = ""; description_ = ""; folderId_ = ""; targets_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TargetGroup(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TargetGroup( 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)) { targets_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } targets_.add( input.readMessage(yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target.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; } 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)) { targets_ = java.util.Collections.unmodifiableList(targets_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_TargetGroup_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.TargetGroupOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_TargetGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetGroup.class, yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetGroup.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID of the target group. 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 target group. 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 target group. 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 target group. 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 target group.
     * 
* * 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 target group.
     * 
* * 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 target group 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 target group 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.TargetGroupOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_TargetGroup_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(); } /** *
     * Target group 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(); } /** *
     * Target group 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(); } /** *
     * Target group 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; } /** *
     * Target group 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 TARGETS_FIELD_NUMBER = 6; private java.util.List targets_; /** *
     * List of targets in the target group.
     * 
* * repeated .yandex.cloud.apploadbalancer.v1.Target targets = 6; */ @java.lang.Override public java.util.List getTargetsList() { return targets_; } /** *
     * List of targets in the target group.
     * 
* * repeated .yandex.cloud.apploadbalancer.v1.Target targets = 6; */ @java.lang.Override public java.util.List getTargetsOrBuilderList() { return targets_; } /** *
     * List of targets in the target group.
     * 
* * repeated .yandex.cloud.apploadbalancer.v1.Target targets = 6; */ @java.lang.Override public int getTargetsCount() { return targets_.size(); } /** *
     * List of targets in the target group.
     * 
* * repeated .yandex.cloud.apploadbalancer.v1.Target targets = 6; */ @java.lang.Override public yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target getTargets(int index) { return targets_.get(index); } /** *
     * List of targets in the target group.
     * 
* * repeated .yandex.cloud.apploadbalancer.v1.Target targets = 6; */ @java.lang.Override public yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetOrBuilder getTargetsOrBuilder( int index) { return targets_.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(); } 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 < targets_.size(); i++) { output.writeMessage(6, targets_.get(i)); } if (createdAt_ != null) { output.writeMessage(7, getCreatedAt()); } 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 < targets_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, targets_.get(i)); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getCreatedAt()); } 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.TargetGroupOuterClass.TargetGroup)) { return super.equals(obj); } yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetGroup other = (yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetGroup) 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 (!getTargetsList() .equals(other.getTargetsList())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) 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 (getTargetsCount() > 0) { hash = (37 * hash) + TARGETS_FIELD_NUMBER; hash = (53 * hash) + getTargetsList().hashCode(); } if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetGroup parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetGroup 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.TargetGroupOuterClass.TargetGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetGroup 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.TargetGroupOuterClass.TargetGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetGroup 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.TargetGroupOuterClass.TargetGroup parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetGroup 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.TargetGroupOuterClass.TargetGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetGroup 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.TargetGroupOuterClass.TargetGroup 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.TargetGroupOuterClass.TargetGroup 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.TargetGroupOuterClass.TargetGroup 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 target group resource.
     * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/target-group).
     * 
* * Protobuf type {@code yandex.cloud.apploadbalancer.v1.TargetGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.apploadbalancer.v1.TargetGroup) yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_TargetGroup_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.TargetGroupOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_TargetGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetGroup.class, yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetGroup.Builder.class); } // Construct using yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetGroup.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTargetsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; name_ = ""; description_ = ""; folderId_ = ""; internalGetMutableLabels().clear(); if (targetsBuilder_ == null) { targets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { targetsBuilder_.clear(); } if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_TargetGroup_descriptor; } @java.lang.Override public yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetGroup getDefaultInstanceForType() { return yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetGroup.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetGroup build() { yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetGroup buildPartial() { yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetGroup result = new yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetGroup(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.name_ = name_; result.description_ = description_; result.folderId_ = folderId_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); if (targetsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { targets_ = java.util.Collections.unmodifiableList(targets_); bitField0_ = (bitField0_ & ~0x00000002); } result.targets_ = targets_; } else { result.targets_ = targetsBuilder_.build(); } if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.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.TargetGroupOuterClass.TargetGroup) { return mergeFrom((yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetGroup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetGroup other) { if (other == yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetGroup.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 (targetsBuilder_ == null) { if (!other.targets_.isEmpty()) { if (targets_.isEmpty()) { targets_ = other.targets_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTargetsIsMutable(); targets_.addAll(other.targets_); } onChanged(); } } else { if (!other.targets_.isEmpty()) { if (targetsBuilder_.isEmpty()) { targetsBuilder_.dispose(); targetsBuilder_ = null; targets_ = other.targets_; bitField0_ = (bitField0_ & ~0x00000002); targetsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTargetsFieldBuilder() : null; } else { targetsBuilder_.addAllMessages(other.targets_); } } } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } 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.TargetGroupOuterClass.TargetGroup parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetGroup) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * ID of the target group. 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 target group. 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 target group. 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 target group. Generated at creation time.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of the target group. 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 target group. 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 target group. 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 target group. 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 target group. 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 target group. 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 target group.
       * 
* * 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 target group.
       * 
* * 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 target group.
       * 
* * 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 target group.
       * 
* * string description = 3; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Description of the target group.
       * 
* * 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 target group 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 target group 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 target group 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 target group 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 target group 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(); } /** *
       * Target group 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(); } /** *
       * Target group 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(); } /** *
       * Target group 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; } /** *
       * Target group 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; } /** *
       * Target group 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(); } /** *
       * Target group 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; } /** *
       * Target group 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 targets_ = java.util.Collections.emptyList(); private void ensureTargetsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { targets_ = new java.util.ArrayList(targets_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target, yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target.Builder, yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetOrBuilder> targetsBuilder_; /** *
       * List of targets in the target group.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.Target targets = 6; */ public java.util.List getTargetsList() { if (targetsBuilder_ == null) { return java.util.Collections.unmodifiableList(targets_); } else { return targetsBuilder_.getMessageList(); } } /** *
       * List of targets in the target group.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.Target targets = 6; */ public int getTargetsCount() { if (targetsBuilder_ == null) { return targets_.size(); } else { return targetsBuilder_.getCount(); } } /** *
       * List of targets in the target group.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.Target targets = 6; */ public yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target getTargets(int index) { if (targetsBuilder_ == null) { return targets_.get(index); } else { return targetsBuilder_.getMessage(index); } } /** *
       * List of targets in the target group.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.Target targets = 6; */ public Builder setTargets( int index, yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target value) { if (targetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTargetsIsMutable(); targets_.set(index, value); onChanged(); } else { targetsBuilder_.setMessage(index, value); } return this; } /** *
       * List of targets in the target group.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.Target targets = 6; */ public Builder setTargets( int index, yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target.Builder builderForValue) { if (targetsBuilder_ == null) { ensureTargetsIsMutable(); targets_.set(index, builderForValue.build()); onChanged(); } else { targetsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of targets in the target group.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.Target targets = 6; */ public Builder addTargets(yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target value) { if (targetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTargetsIsMutable(); targets_.add(value); onChanged(); } else { targetsBuilder_.addMessage(value); } return this; } /** *
       * List of targets in the target group.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.Target targets = 6; */ public Builder addTargets( int index, yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target value) { if (targetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTargetsIsMutable(); targets_.add(index, value); onChanged(); } else { targetsBuilder_.addMessage(index, value); } return this; } /** *
       * List of targets in the target group.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.Target targets = 6; */ public Builder addTargets( yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target.Builder builderForValue) { if (targetsBuilder_ == null) { ensureTargetsIsMutable(); targets_.add(builderForValue.build()); onChanged(); } else { targetsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of targets in the target group.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.Target targets = 6; */ public Builder addTargets( int index, yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target.Builder builderForValue) { if (targetsBuilder_ == null) { ensureTargetsIsMutable(); targets_.add(index, builderForValue.build()); onChanged(); } else { targetsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of targets in the target group.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.Target targets = 6; */ public Builder addAllTargets( java.lang.Iterable values) { if (targetsBuilder_ == null) { ensureTargetsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, targets_); onChanged(); } else { targetsBuilder_.addAllMessages(values); } return this; } /** *
       * List of targets in the target group.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.Target targets = 6; */ public Builder clearTargets() { if (targetsBuilder_ == null) { targets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { targetsBuilder_.clear(); } return this; } /** *
       * List of targets in the target group.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.Target targets = 6; */ public Builder removeTargets(int index) { if (targetsBuilder_ == null) { ensureTargetsIsMutable(); targets_.remove(index); onChanged(); } else { targetsBuilder_.remove(index); } return this; } /** *
       * List of targets in the target group.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.Target targets = 6; */ public yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target.Builder getTargetsBuilder( int index) { return getTargetsFieldBuilder().getBuilder(index); } /** *
       * List of targets in the target group.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.Target targets = 6; */ public yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetOrBuilder getTargetsOrBuilder( int index) { if (targetsBuilder_ == null) { return targets_.get(index); } else { return targetsBuilder_.getMessageOrBuilder(index); } } /** *
       * List of targets in the target group.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.Target targets = 6; */ public java.util.List getTargetsOrBuilderList() { if (targetsBuilder_ != null) { return targetsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(targets_); } } /** *
       * List of targets in the target group.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.Target targets = 6; */ public yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target.Builder addTargetsBuilder() { return getTargetsFieldBuilder().addBuilder( yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target.getDefaultInstance()); } /** *
       * List of targets in the target group.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.Target targets = 6; */ public yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target.Builder addTargetsBuilder( int index) { return getTargetsFieldBuilder().addBuilder( index, yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target.getDefaultInstance()); } /** *
       * List of targets in the target group.
       * 
* * repeated .yandex.cloud.apploadbalancer.v1.Target targets = 6; */ public java.util.List getTargetsBuilderList() { return getTargetsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target, yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target.Builder, yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetOrBuilder> getTargetsFieldBuilder() { if (targetsBuilder_ == null) { targetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target, yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target.Builder, yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetOrBuilder>( targets_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); targets_ = null; } return targetsBuilder_; } 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_; } @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.TargetGroup) } // @@protoc_insertion_point(class_scope:yandex.cloud.apploadbalancer.v1.TargetGroup) private static final yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetGroup DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetGroup(); } public static yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetGroup getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TargetGroup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TargetGroup(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.TargetGroupOuterClass.TargetGroup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TargetOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.apploadbalancer.v1.Target) com.google.protobuf.MessageOrBuilder { /** *
     * IP address of the target.
     * 
* * string ip_address = 1; * @return Whether the ipAddress field is set. */ boolean hasIpAddress(); /** *
     * IP address of the target.
     * 
* * string ip_address = 1; * @return The ipAddress. */ java.lang.String getIpAddress(); /** *
     * IP address of the target.
     * 
* * string ip_address = 1; * @return The bytes for ipAddress. */ com.google.protobuf.ByteString getIpAddressBytes(); /** *
     * ID of the subnet that the target is connected to.
     * 
* * string subnet_id = 3; * @return The subnetId. */ java.lang.String getSubnetId(); /** *
     * ID of the subnet that the target is connected to.
     * 
* * string subnet_id = 3; * @return The bytes for subnetId. */ com.google.protobuf.ByteString getSubnetIdBytes(); /** *
     * If set, will not require `subnet_id` to validate the target.
     * Instead, the address should belong to one of the following ranges:
     * 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16
     * Only one of `subnet_id` or `private_ipv4_address` should be set.
     * 
* * bool private_ipv4_address = 4; * @return The privateIpv4Address. */ boolean getPrivateIpv4Address(); public yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target.AddressTypeCase getAddressTypeCase(); } /** *
   * A target resource.
   * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/target-group).
   * 
* * Protobuf type {@code yandex.cloud.apploadbalancer.v1.Target} */ public static final class Target extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.apploadbalancer.v1.Target) TargetOrBuilder { private static final long serialVersionUID = 0L; // Use Target.newBuilder() to construct. private Target(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Target() { subnetId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Target(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Target( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); addressTypeCase_ = 1; addressType_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); subnetId_ = s; break; } case 32: { privateIpv4Address_ = input.readBool(); 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.apploadbalancer.v1.TargetGroupOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_Target_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_Target_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target.class, yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target.Builder.class); } private int addressTypeCase_ = 0; private java.lang.Object addressType_; public enum AddressTypeCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { IP_ADDRESS(1), ADDRESSTYPE_NOT_SET(0); private final int value; private AddressTypeCase(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 AddressTypeCase valueOf(int value) { return forNumber(value); } public static AddressTypeCase forNumber(int value) { switch (value) { case 1: return IP_ADDRESS; case 0: return ADDRESSTYPE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public AddressTypeCase getAddressTypeCase() { return AddressTypeCase.forNumber( addressTypeCase_); } public static final int IP_ADDRESS_FIELD_NUMBER = 1; /** *
     * IP address of the target.
     * 
* * string ip_address = 1; * @return Whether the ipAddress field is set. */ public boolean hasIpAddress() { return addressTypeCase_ == 1; } /** *
     * IP address of the target.
     * 
* * string ip_address = 1; * @return The ipAddress. */ public java.lang.String getIpAddress() { java.lang.Object ref = ""; if (addressTypeCase_ == 1) { ref = addressType_; } 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 (addressTypeCase_ == 1) { addressType_ = s; } return s; } } /** *
     * IP address of the target.
     * 
* * string ip_address = 1; * @return The bytes for ipAddress. */ public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ""; if (addressTypeCase_ == 1) { ref = addressType_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (addressTypeCase_ == 1) { addressType_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SUBNET_ID_FIELD_NUMBER = 3; private volatile java.lang.Object subnetId_; /** *
     * ID of the subnet that the target is connected to.
     * 
* * string subnet_id = 3; * @return The subnetId. */ @java.lang.Override public java.lang.String getSubnetId() { java.lang.Object ref = subnetId_; 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(); subnetId_ = s; return s; } } /** *
     * ID of the subnet that the target is connected to.
     * 
* * string subnet_id = 3; * @return The bytes for subnetId. */ @java.lang.Override public com.google.protobuf.ByteString getSubnetIdBytes() { java.lang.Object ref = subnetId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subnetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRIVATE_IPV4_ADDRESS_FIELD_NUMBER = 4; private boolean privateIpv4Address_; /** *
     * If set, will not require `subnet_id` to validate the target.
     * Instead, the address should belong to one of the following ranges:
     * 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16
     * Only one of `subnet_id` or `private_ipv4_address` should be set.
     * 
* * bool private_ipv4_address = 4; * @return The privateIpv4Address. */ @java.lang.Override public boolean getPrivateIpv4Address() { return privateIpv4Address_; } 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 (addressTypeCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addressType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, subnetId_); } if (privateIpv4Address_ != false) { output.writeBool(4, privateIpv4Address_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (addressTypeCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, addressType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subnetId_); } if (privateIpv4Address_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, privateIpv4Address_); } 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.TargetGroupOuterClass.Target)) { return super.equals(obj); } yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target other = (yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target) obj; if (!getSubnetId() .equals(other.getSubnetId())) return false; if (getPrivateIpv4Address() != other.getPrivateIpv4Address()) return false; if (!getAddressTypeCase().equals(other.getAddressTypeCase())) return false; switch (addressTypeCase_) { case 1: if (!getIpAddress() .equals(other.getIpAddress())) 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(); hash = (37 * hash) + SUBNET_ID_FIELD_NUMBER; hash = (53 * hash) + getSubnetId().hashCode(); hash = (37 * hash) + PRIVATE_IPV4_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPrivateIpv4Address()); switch (addressTypeCase_) { case 1: hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getIpAddress().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target 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.TargetGroupOuterClass.Target parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target 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.TargetGroupOuterClass.Target parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target 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.TargetGroupOuterClass.Target parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target 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.TargetGroupOuterClass.Target parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target 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.TargetGroupOuterClass.Target 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.TargetGroupOuterClass.Target 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.TargetGroupOuterClass.Target 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 target resource.
     * For details about the concept, see [documentation](/docs/application-load-balancer/concepts/target-group).
     * 
* * Protobuf type {@code yandex.cloud.apploadbalancer.v1.Target} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.apploadbalancer.v1.Target) yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.TargetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_Target_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_Target_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target.class, yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target.Builder.class); } // Construct using yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target.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(); subnetId_ = ""; privateIpv4Address_ = false; addressTypeCase_ = 0; addressType_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.internal_static_yandex_cloud_apploadbalancer_v1_Target_descriptor; } @java.lang.Override public yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target getDefaultInstanceForType() { return yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target build() { yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target buildPartial() { yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target result = new yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target(this); if (addressTypeCase_ == 1) { result.addressType_ = addressType_; } result.subnetId_ = subnetId_; result.privateIpv4Address_ = privateIpv4Address_; result.addressTypeCase_ = addressTypeCase_; 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.TargetGroupOuterClass.Target) { return mergeFrom((yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target other) { if (other == yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target.getDefaultInstance()) return this; if (!other.getSubnetId().isEmpty()) { subnetId_ = other.subnetId_; onChanged(); } if (other.getPrivateIpv4Address() != false) { setPrivateIpv4Address(other.getPrivateIpv4Address()); } switch (other.getAddressTypeCase()) { case IP_ADDRESS: { addressTypeCase_ = 1; addressType_ = other.addressType_; onChanged(); break; } case ADDRESSTYPE_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.apploadbalancer.v1.TargetGroupOuterClass.Target parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int addressTypeCase_ = 0; private java.lang.Object addressType_; public AddressTypeCase getAddressTypeCase() { return AddressTypeCase.forNumber( addressTypeCase_); } public Builder clearAddressType() { addressTypeCase_ = 0; addressType_ = null; onChanged(); return this; } /** *
       * IP address of the target.
       * 
* * string ip_address = 1; * @return Whether the ipAddress field is set. */ @java.lang.Override public boolean hasIpAddress() { return addressTypeCase_ == 1; } /** *
       * IP address of the target.
       * 
* * string ip_address = 1; * @return The ipAddress. */ @java.lang.Override public java.lang.String getIpAddress() { java.lang.Object ref = ""; if (addressTypeCase_ == 1) { ref = addressType_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (addressTypeCase_ == 1) { addressType_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * IP address of the target.
       * 
* * string ip_address = 1; * @return The bytes for ipAddress. */ @java.lang.Override public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ""; if (addressTypeCase_ == 1) { ref = addressType_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (addressTypeCase_ == 1) { addressType_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * IP address of the target.
       * 
* * string ip_address = 1; * @param value The ipAddress to set. * @return This builder for chaining. */ public Builder setIpAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } addressTypeCase_ = 1; addressType_ = value; onChanged(); return this; } /** *
       * IP address of the target.
       * 
* * string ip_address = 1; * @return This builder for chaining. */ public Builder clearIpAddress() { if (addressTypeCase_ == 1) { addressTypeCase_ = 0; addressType_ = null; onChanged(); } return this; } /** *
       * IP address of the target.
       * 
* * string ip_address = 1; * @param value The bytes for ipAddress to set. * @return This builder for chaining. */ public Builder setIpAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); addressTypeCase_ = 1; addressType_ = value; onChanged(); return this; } private java.lang.Object subnetId_ = ""; /** *
       * ID of the subnet that the target is connected to.
       * 
* * string subnet_id = 3; * @return The subnetId. */ public java.lang.String getSubnetId() { java.lang.Object ref = subnetId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the subnet that the target is connected to.
       * 
* * string subnet_id = 3; * @return The bytes for subnetId. */ public com.google.protobuf.ByteString getSubnetIdBytes() { java.lang.Object ref = subnetId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subnetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the subnet that the target is connected to.
       * 
* * string subnet_id = 3; * @param value The subnetId to set. * @return This builder for chaining. */ public Builder setSubnetId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } subnetId_ = value; onChanged(); return this; } /** *
       * ID of the subnet that the target is connected to.
       * 
* * string subnet_id = 3; * @return This builder for chaining. */ public Builder clearSubnetId() { subnetId_ = getDefaultInstance().getSubnetId(); onChanged(); return this; } /** *
       * ID of the subnet that the target is connected to.
       * 
* * string subnet_id = 3; * @param value The bytes for subnetId to set. * @return This builder for chaining. */ public Builder setSubnetIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subnetId_ = value; onChanged(); return this; } private boolean privateIpv4Address_ ; /** *
       * If set, will not require `subnet_id` to validate the target.
       * Instead, the address should belong to one of the following ranges:
       * 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16
       * Only one of `subnet_id` or `private_ipv4_address` should be set.
       * 
* * bool private_ipv4_address = 4; * @return The privateIpv4Address. */ @java.lang.Override public boolean getPrivateIpv4Address() { return privateIpv4Address_; } /** *
       * If set, will not require `subnet_id` to validate the target.
       * Instead, the address should belong to one of the following ranges:
       * 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16
       * Only one of `subnet_id` or `private_ipv4_address` should be set.
       * 
* * bool private_ipv4_address = 4; * @param value The privateIpv4Address to set. * @return This builder for chaining. */ public Builder setPrivateIpv4Address(boolean value) { privateIpv4Address_ = value; onChanged(); return this; } /** *
       * If set, will not require `subnet_id` to validate the target.
       * Instead, the address should belong to one of the following ranges:
       * 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16
       * Only one of `subnet_id` or `private_ipv4_address` should be set.
       * 
* * bool private_ipv4_address = 4; * @return This builder for chaining. */ public Builder clearPrivateIpv4Address() { privateIpv4Address_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.apploadbalancer.v1.Target) } // @@protoc_insertion_point(class_scope:yandex.cloud.apploadbalancer.v1.Target) private static final yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target(); } public static yandex.cloud.api.apploadbalancer.v1.TargetGroupOuterClass.Target getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Target parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Target(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.TargetGroupOuterClass.Target getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_apploadbalancer_v1_TargetGroup_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_apploadbalancer_v1_TargetGroup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_apploadbalancer_v1_TargetGroup_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_apploadbalancer_v1_TargetGroup_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_apploadbalancer_v1_Target_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_apploadbalancer_v1_Target_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n2yandex/cloud/apploadbalancer/v1/target" + "_group.proto\022\037yandex.cloud.apploadbalanc" + "er.v1\032\037google/protobuf/timestamp.proto\032\035" + "yandex/cloud/validation.proto\"\262\002\n\013Target" + "Group\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\023\n\013descr" + "iption\030\003 \001(\t\022\021\n\tfolder_id\030\004 \001(\t\022H\n\006label" + "s\030\005 \003(\01328.yandex.cloud.apploadbalancer.v" + "1.TargetGroup.LabelsEntry\0228\n\007targets\030\006 \003" + "(\0132\'.yandex.cloud.apploadbalancer.v1.Tar" + "get\022.\n\ncreated_at\030\007 \001(\0132\032.google.protobu" + "f.Timestamp\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" + "\r\n\005value\030\002 \001(\t:\0028\001\"e\n\006Target\022\024\n\nip_addre" + "ss\030\001 \001(\tH\000\022\021\n\tsubnet_id\030\003 \001(\t\022\034\n\024private" + "_ipv4_address\030\004 \001(\010B\024\n\014address_type\022\004\300\3011" + "\001Bz\n#yandex.cloud.api.apploadbalancer.v1" + "ZSgithub.com/yandex-cloud/go-genproto/ya" + "ndex/cloud/apploadbalancer/v1;apploadbal" + "ancerb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), yandex.cloud.api.Validation.getDescriptor(), }); internal_static_yandex_cloud_apploadbalancer_v1_TargetGroup_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_apploadbalancer_v1_TargetGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_apploadbalancer_v1_TargetGroup_descriptor, new java.lang.String[] { "Id", "Name", "Description", "FolderId", "Labels", "Targets", "CreatedAt", }); internal_static_yandex_cloud_apploadbalancer_v1_TargetGroup_LabelsEntry_descriptor = internal_static_yandex_cloud_apploadbalancer_v1_TargetGroup_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_apploadbalancer_v1_TargetGroup_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_apploadbalancer_v1_TargetGroup_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_apploadbalancer_v1_Target_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_apploadbalancer_v1_Target_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_apploadbalancer_v1_Target_descriptor, new java.lang.String[] { "IpAddress", "SubnetId", "PrivateIpv4Address", "AddressType", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(yandex.cloud.api.Validation.exactlyOne); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.protobuf.TimestampProto.getDescriptor(); yandex.cloud.api.Validation.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy