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

io.envoyproxy.envoy.service.status.v2.ClientConfig Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/service/status/v2/csds.proto

package io.envoyproxy.envoy.service.status.v2;

/**
 * 
 * All xds configs for a particular client.
 * 
* * Protobuf type {@code envoy.service.status.v2.ClientConfig} */ public final class ClientConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.service.status.v2.ClientConfig) ClientConfigOrBuilder { private static final long serialVersionUID = 0L; // Use ClientConfig.newBuilder() to construct. private ClientConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ClientConfig() { xdsConfig_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ClientConfig(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ClientConfig( 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: { io.envoyproxy.envoy.api.v2.core.Node.Builder subBuilder = null; if (node_ != null) { subBuilder = node_.toBuilder(); } node_ = input.readMessage(io.envoyproxy.envoy.api.v2.core.Node.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(node_); node_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { xdsConfig_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } xdsConfig_.add( input.readMessage(io.envoyproxy.envoy.service.status.v2.PerXdsConfig.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { xdsConfig_ = java.util.Collections.unmodifiableList(xdsConfig_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.status.v2.CsdsProto.internal_static_envoy_service_status_v2_ClientConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.status.v2.CsdsProto.internal_static_envoy_service_status_v2_ClientConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.status.v2.ClientConfig.class, io.envoyproxy.envoy.service.status.v2.ClientConfig.Builder.class); } public static final int NODE_FIELD_NUMBER = 1; private io.envoyproxy.envoy.api.v2.core.Node node_; /** *
   * Node for a particular client.
   * 
* * .envoy.api.v2.core.Node node = 1; * @return Whether the node field is set. */ @java.lang.Override public boolean hasNode() { return node_ != null; } /** *
   * Node for a particular client.
   * 
* * .envoy.api.v2.core.Node node = 1; * @return The node. */ @java.lang.Override public io.envoyproxy.envoy.api.v2.core.Node getNode() { return node_ == null ? io.envoyproxy.envoy.api.v2.core.Node.getDefaultInstance() : node_; } /** *
   * Node for a particular client.
   * 
* * .envoy.api.v2.core.Node node = 1; */ @java.lang.Override public io.envoyproxy.envoy.api.v2.core.NodeOrBuilder getNodeOrBuilder() { return getNode(); } public static final int XDS_CONFIG_FIELD_NUMBER = 2; private java.util.List xdsConfig_; /** * repeated .envoy.service.status.v2.PerXdsConfig xds_config = 2; */ @java.lang.Override public java.util.List getXdsConfigList() { return xdsConfig_; } /** * repeated .envoy.service.status.v2.PerXdsConfig xds_config = 2; */ @java.lang.Override public java.util.List getXdsConfigOrBuilderList() { return xdsConfig_; } /** * repeated .envoy.service.status.v2.PerXdsConfig xds_config = 2; */ @java.lang.Override public int getXdsConfigCount() { return xdsConfig_.size(); } /** * repeated .envoy.service.status.v2.PerXdsConfig xds_config = 2; */ @java.lang.Override public io.envoyproxy.envoy.service.status.v2.PerXdsConfig getXdsConfig(int index) { return xdsConfig_.get(index); } /** * repeated .envoy.service.status.v2.PerXdsConfig xds_config = 2; */ @java.lang.Override public io.envoyproxy.envoy.service.status.v2.PerXdsConfigOrBuilder getXdsConfigOrBuilder( int index) { return xdsConfig_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (node_ != null) { output.writeMessage(1, getNode()); } for (int i = 0; i < xdsConfig_.size(); i++) { output.writeMessage(2, xdsConfig_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (node_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getNode()); } for (int i = 0; i < xdsConfig_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, xdsConfig_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.service.status.v2.ClientConfig)) { return super.equals(obj); } io.envoyproxy.envoy.service.status.v2.ClientConfig other = (io.envoyproxy.envoy.service.status.v2.ClientConfig) obj; if (hasNode() != other.hasNode()) return false; if (hasNode()) { if (!getNode() .equals(other.getNode())) return false; } if (!getXdsConfigList() .equals(other.getXdsConfigList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasNode()) { hash = (37 * hash) + NODE_FIELD_NUMBER; hash = (53 * hash) + getNode().hashCode(); } if (getXdsConfigCount() > 0) { hash = (37 * hash) + XDS_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getXdsConfigList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.service.status.v2.ClientConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.status.v2.ClientConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.status.v2.ClientConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.status.v2.ClientConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.status.v2.ClientConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.status.v2.ClientConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.status.v2.ClientConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.status.v2.ClientConfig 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 io.envoyproxy.envoy.service.status.v2.ClientConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.status.v2.ClientConfig 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 io.envoyproxy.envoy.service.status.v2.ClientConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.status.v2.ClientConfig 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(io.envoyproxy.envoy.service.status.v2.ClientConfig 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; } /** *
   * All xds configs for a particular client.
   * 
* * Protobuf type {@code envoy.service.status.v2.ClientConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.service.status.v2.ClientConfig) io.envoyproxy.envoy.service.status.v2.ClientConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.status.v2.CsdsProto.internal_static_envoy_service_status_v2_ClientConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.status.v2.CsdsProto.internal_static_envoy_service_status_v2_ClientConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.status.v2.ClientConfig.class, io.envoyproxy.envoy.service.status.v2.ClientConfig.Builder.class); } // Construct using io.envoyproxy.envoy.service.status.v2.ClientConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getXdsConfigFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (nodeBuilder_ == null) { node_ = null; } else { node_ = null; nodeBuilder_ = null; } if (xdsConfigBuilder_ == null) { xdsConfig_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { xdsConfigBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.service.status.v2.CsdsProto.internal_static_envoy_service_status_v2_ClientConfig_descriptor; } @java.lang.Override public io.envoyproxy.envoy.service.status.v2.ClientConfig getDefaultInstanceForType() { return io.envoyproxy.envoy.service.status.v2.ClientConfig.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.service.status.v2.ClientConfig build() { io.envoyproxy.envoy.service.status.v2.ClientConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.service.status.v2.ClientConfig buildPartial() { io.envoyproxy.envoy.service.status.v2.ClientConfig result = new io.envoyproxy.envoy.service.status.v2.ClientConfig(this); int from_bitField0_ = bitField0_; if (nodeBuilder_ == null) { result.node_ = node_; } else { result.node_ = nodeBuilder_.build(); } if (xdsConfigBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { xdsConfig_ = java.util.Collections.unmodifiableList(xdsConfig_); bitField0_ = (bitField0_ & ~0x00000001); } result.xdsConfig_ = xdsConfig_; } else { result.xdsConfig_ = xdsConfigBuilder_.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 io.envoyproxy.envoy.service.status.v2.ClientConfig) { return mergeFrom((io.envoyproxy.envoy.service.status.v2.ClientConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.service.status.v2.ClientConfig other) { if (other == io.envoyproxy.envoy.service.status.v2.ClientConfig.getDefaultInstance()) return this; if (other.hasNode()) { mergeNode(other.getNode()); } if (xdsConfigBuilder_ == null) { if (!other.xdsConfig_.isEmpty()) { if (xdsConfig_.isEmpty()) { xdsConfig_ = other.xdsConfig_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureXdsConfigIsMutable(); xdsConfig_.addAll(other.xdsConfig_); } onChanged(); } } else { if (!other.xdsConfig_.isEmpty()) { if (xdsConfigBuilder_.isEmpty()) { xdsConfigBuilder_.dispose(); xdsConfigBuilder_ = null; xdsConfig_ = other.xdsConfig_; bitField0_ = (bitField0_ & ~0x00000001); xdsConfigBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getXdsConfigFieldBuilder() : null; } else { xdsConfigBuilder_.addAllMessages(other.xdsConfig_); } } } 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 { io.envoyproxy.envoy.service.status.v2.ClientConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.service.status.v2.ClientConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.envoyproxy.envoy.api.v2.core.Node node_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v2.core.Node, io.envoyproxy.envoy.api.v2.core.Node.Builder, io.envoyproxy.envoy.api.v2.core.NodeOrBuilder> nodeBuilder_; /** *
     * Node for a particular client.
     * 
* * .envoy.api.v2.core.Node node = 1; * @return Whether the node field is set. */ public boolean hasNode() { return nodeBuilder_ != null || node_ != null; } /** *
     * Node for a particular client.
     * 
* * .envoy.api.v2.core.Node node = 1; * @return The node. */ public io.envoyproxy.envoy.api.v2.core.Node getNode() { if (nodeBuilder_ == null) { return node_ == null ? io.envoyproxy.envoy.api.v2.core.Node.getDefaultInstance() : node_; } else { return nodeBuilder_.getMessage(); } } /** *
     * Node for a particular client.
     * 
* * .envoy.api.v2.core.Node node = 1; */ public Builder setNode(io.envoyproxy.envoy.api.v2.core.Node value) { if (nodeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } node_ = value; onChanged(); } else { nodeBuilder_.setMessage(value); } return this; } /** *
     * Node for a particular client.
     * 
* * .envoy.api.v2.core.Node node = 1; */ public Builder setNode( io.envoyproxy.envoy.api.v2.core.Node.Builder builderForValue) { if (nodeBuilder_ == null) { node_ = builderForValue.build(); onChanged(); } else { nodeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Node for a particular client.
     * 
* * .envoy.api.v2.core.Node node = 1; */ public Builder mergeNode(io.envoyproxy.envoy.api.v2.core.Node value) { if (nodeBuilder_ == null) { if (node_ != null) { node_ = io.envoyproxy.envoy.api.v2.core.Node.newBuilder(node_).mergeFrom(value).buildPartial(); } else { node_ = value; } onChanged(); } else { nodeBuilder_.mergeFrom(value); } return this; } /** *
     * Node for a particular client.
     * 
* * .envoy.api.v2.core.Node node = 1; */ public Builder clearNode() { if (nodeBuilder_ == null) { node_ = null; onChanged(); } else { node_ = null; nodeBuilder_ = null; } return this; } /** *
     * Node for a particular client.
     * 
* * .envoy.api.v2.core.Node node = 1; */ public io.envoyproxy.envoy.api.v2.core.Node.Builder getNodeBuilder() { onChanged(); return getNodeFieldBuilder().getBuilder(); } /** *
     * Node for a particular client.
     * 
* * .envoy.api.v2.core.Node node = 1; */ public io.envoyproxy.envoy.api.v2.core.NodeOrBuilder getNodeOrBuilder() { if (nodeBuilder_ != null) { return nodeBuilder_.getMessageOrBuilder(); } else { return node_ == null ? io.envoyproxy.envoy.api.v2.core.Node.getDefaultInstance() : node_; } } /** *
     * Node for a particular client.
     * 
* * .envoy.api.v2.core.Node node = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v2.core.Node, io.envoyproxy.envoy.api.v2.core.Node.Builder, io.envoyproxy.envoy.api.v2.core.NodeOrBuilder> getNodeFieldBuilder() { if (nodeBuilder_ == null) { nodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v2.core.Node, io.envoyproxy.envoy.api.v2.core.Node.Builder, io.envoyproxy.envoy.api.v2.core.NodeOrBuilder>( getNode(), getParentForChildren(), isClean()); node_ = null; } return nodeBuilder_; } private java.util.List xdsConfig_ = java.util.Collections.emptyList(); private void ensureXdsConfigIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { xdsConfig_ = new java.util.ArrayList(xdsConfig_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.service.status.v2.PerXdsConfig, io.envoyproxy.envoy.service.status.v2.PerXdsConfig.Builder, io.envoyproxy.envoy.service.status.v2.PerXdsConfigOrBuilder> xdsConfigBuilder_; /** * repeated .envoy.service.status.v2.PerXdsConfig xds_config = 2; */ public java.util.List getXdsConfigList() { if (xdsConfigBuilder_ == null) { return java.util.Collections.unmodifiableList(xdsConfig_); } else { return xdsConfigBuilder_.getMessageList(); } } /** * repeated .envoy.service.status.v2.PerXdsConfig xds_config = 2; */ public int getXdsConfigCount() { if (xdsConfigBuilder_ == null) { return xdsConfig_.size(); } else { return xdsConfigBuilder_.getCount(); } } /** * repeated .envoy.service.status.v2.PerXdsConfig xds_config = 2; */ public io.envoyproxy.envoy.service.status.v2.PerXdsConfig getXdsConfig(int index) { if (xdsConfigBuilder_ == null) { return xdsConfig_.get(index); } else { return xdsConfigBuilder_.getMessage(index); } } /** * repeated .envoy.service.status.v2.PerXdsConfig xds_config = 2; */ public Builder setXdsConfig( int index, io.envoyproxy.envoy.service.status.v2.PerXdsConfig value) { if (xdsConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureXdsConfigIsMutable(); xdsConfig_.set(index, value); onChanged(); } else { xdsConfigBuilder_.setMessage(index, value); } return this; } /** * repeated .envoy.service.status.v2.PerXdsConfig xds_config = 2; */ public Builder setXdsConfig( int index, io.envoyproxy.envoy.service.status.v2.PerXdsConfig.Builder builderForValue) { if (xdsConfigBuilder_ == null) { ensureXdsConfigIsMutable(); xdsConfig_.set(index, builderForValue.build()); onChanged(); } else { xdsConfigBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .envoy.service.status.v2.PerXdsConfig xds_config = 2; */ public Builder addXdsConfig(io.envoyproxy.envoy.service.status.v2.PerXdsConfig value) { if (xdsConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureXdsConfigIsMutable(); xdsConfig_.add(value); onChanged(); } else { xdsConfigBuilder_.addMessage(value); } return this; } /** * repeated .envoy.service.status.v2.PerXdsConfig xds_config = 2; */ public Builder addXdsConfig( int index, io.envoyproxy.envoy.service.status.v2.PerXdsConfig value) { if (xdsConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureXdsConfigIsMutable(); xdsConfig_.add(index, value); onChanged(); } else { xdsConfigBuilder_.addMessage(index, value); } return this; } /** * repeated .envoy.service.status.v2.PerXdsConfig xds_config = 2; */ public Builder addXdsConfig( io.envoyproxy.envoy.service.status.v2.PerXdsConfig.Builder builderForValue) { if (xdsConfigBuilder_ == null) { ensureXdsConfigIsMutable(); xdsConfig_.add(builderForValue.build()); onChanged(); } else { xdsConfigBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .envoy.service.status.v2.PerXdsConfig xds_config = 2; */ public Builder addXdsConfig( int index, io.envoyproxy.envoy.service.status.v2.PerXdsConfig.Builder builderForValue) { if (xdsConfigBuilder_ == null) { ensureXdsConfigIsMutable(); xdsConfig_.add(index, builderForValue.build()); onChanged(); } else { xdsConfigBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .envoy.service.status.v2.PerXdsConfig xds_config = 2; */ public Builder addAllXdsConfig( java.lang.Iterable values) { if (xdsConfigBuilder_ == null) { ensureXdsConfigIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, xdsConfig_); onChanged(); } else { xdsConfigBuilder_.addAllMessages(values); } return this; } /** * repeated .envoy.service.status.v2.PerXdsConfig xds_config = 2; */ public Builder clearXdsConfig() { if (xdsConfigBuilder_ == null) { xdsConfig_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { xdsConfigBuilder_.clear(); } return this; } /** * repeated .envoy.service.status.v2.PerXdsConfig xds_config = 2; */ public Builder removeXdsConfig(int index) { if (xdsConfigBuilder_ == null) { ensureXdsConfigIsMutable(); xdsConfig_.remove(index); onChanged(); } else { xdsConfigBuilder_.remove(index); } return this; } /** * repeated .envoy.service.status.v2.PerXdsConfig xds_config = 2; */ public io.envoyproxy.envoy.service.status.v2.PerXdsConfig.Builder getXdsConfigBuilder( int index) { return getXdsConfigFieldBuilder().getBuilder(index); } /** * repeated .envoy.service.status.v2.PerXdsConfig xds_config = 2; */ public io.envoyproxy.envoy.service.status.v2.PerXdsConfigOrBuilder getXdsConfigOrBuilder( int index) { if (xdsConfigBuilder_ == null) { return xdsConfig_.get(index); } else { return xdsConfigBuilder_.getMessageOrBuilder(index); } } /** * repeated .envoy.service.status.v2.PerXdsConfig xds_config = 2; */ public java.util.List getXdsConfigOrBuilderList() { if (xdsConfigBuilder_ != null) { return xdsConfigBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(xdsConfig_); } } /** * repeated .envoy.service.status.v2.PerXdsConfig xds_config = 2; */ public io.envoyproxy.envoy.service.status.v2.PerXdsConfig.Builder addXdsConfigBuilder() { return getXdsConfigFieldBuilder().addBuilder( io.envoyproxy.envoy.service.status.v2.PerXdsConfig.getDefaultInstance()); } /** * repeated .envoy.service.status.v2.PerXdsConfig xds_config = 2; */ public io.envoyproxy.envoy.service.status.v2.PerXdsConfig.Builder addXdsConfigBuilder( int index) { return getXdsConfigFieldBuilder().addBuilder( index, io.envoyproxy.envoy.service.status.v2.PerXdsConfig.getDefaultInstance()); } /** * repeated .envoy.service.status.v2.PerXdsConfig xds_config = 2; */ public java.util.List getXdsConfigBuilderList() { return getXdsConfigFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.service.status.v2.PerXdsConfig, io.envoyproxy.envoy.service.status.v2.PerXdsConfig.Builder, io.envoyproxy.envoy.service.status.v2.PerXdsConfigOrBuilder> getXdsConfigFieldBuilder() { if (xdsConfigBuilder_ == null) { xdsConfigBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.service.status.v2.PerXdsConfig, io.envoyproxy.envoy.service.status.v2.PerXdsConfig.Builder, io.envoyproxy.envoy.service.status.v2.PerXdsConfigOrBuilder>( xdsConfig_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); xdsConfig_ = null; } return xdsConfigBuilder_; } @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:envoy.service.status.v2.ClientConfig) } // @@protoc_insertion_point(class_scope:envoy.service.status.v2.ClientConfig) private static final io.envoyproxy.envoy.service.status.v2.ClientConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.status.v2.ClientConfig(); } public static io.envoyproxy.envoy.service.status.v2.ClientConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ClientConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ClientConfig(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 io.envoyproxy.envoy.service.status.v2.ClientConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy