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

io.envoyproxy.envoy.config.trace.v2.XRayConfig 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/config/trace/v2/trace.proto

package io.envoyproxy.envoy.config.trace.v2;

/**
 * 
 * [#not-implemented-hide:]
 * Configuration for AWS X-Ray tracer.
 * 
* * Protobuf type {@code envoy.config.trace.v2.XRayConfig} */ public final class XRayConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.trace.v2.XRayConfig) XRayConfigOrBuilder { private static final long serialVersionUID = 0L; // Use XRayConfig.newBuilder() to construct. private XRayConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private XRayConfig() { daemonEndpoint_ = ""; segmentName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new XRayConfig(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private XRayConfig( 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(); daemonEndpoint_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); segmentName_ = s; break; } case 26: { io.envoyproxy.envoy.api.v2.core.DataSource.Builder subBuilder = null; if (samplingRuleManifest_ != null) { subBuilder = samplingRuleManifest_.toBuilder(); } samplingRuleManifest_ = input.readMessage(io.envoyproxy.envoy.api.v2.core.DataSource.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(samplingRuleManifest_); samplingRuleManifest_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.trace.v2.TraceProto.internal_static_envoy_config_trace_v2_XRayConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.trace.v2.TraceProto.internal_static_envoy_config_trace_v2_XRayConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.trace.v2.XRayConfig.class, io.envoyproxy.envoy.config.trace.v2.XRayConfig.Builder.class); } public static final int DAEMON_ENDPOINT_FIELD_NUMBER = 1; private volatile java.lang.Object daemonEndpoint_; /** *
   * The endpoint of the X-Ray Daemon where the spans will be sent. Since by default daemon
   * listens to localhost:2000, so the default value is 127.0.0.1:2000.
   * 
* * string daemon_endpoint = 1 [(.validate.rules) = { ... } */ public java.lang.String getDaemonEndpoint() { java.lang.Object ref = daemonEndpoint_; 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(); daemonEndpoint_ = s; return s; } } /** *
   * The endpoint of the X-Ray Daemon where the spans will be sent. Since by default daemon
   * listens to localhost:2000, so the default value is 127.0.0.1:2000.
   * 
* * string daemon_endpoint = 1 [(.validate.rules) = { ... } */ public com.google.protobuf.ByteString getDaemonEndpointBytes() { java.lang.Object ref = daemonEndpoint_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); daemonEndpoint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SEGMENT_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object segmentName_; /** *
   * The custom name to name a X-Ray segment. By default will use cluster name.
   * 
* * string segment_name = 2; */ public java.lang.String getSegmentName() { java.lang.Object ref = segmentName_; 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(); segmentName_ = s; return s; } } /** *
   * The custom name to name a X-Ray segment. By default will use cluster name.
   * 
* * string segment_name = 2; */ public com.google.protobuf.ByteString getSegmentNameBytes() { java.lang.Object ref = segmentName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); segmentName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SAMPLING_RULE_MANIFEST_FIELD_NUMBER = 3; private io.envoyproxy.envoy.api.v2.core.DataSource samplingRuleManifest_; /** *
   * The location of custom sampling rule json file.
   * 
* * .envoy.api.v2.core.DataSource sampling_rule_manifest = 3; */ public boolean hasSamplingRuleManifest() { return samplingRuleManifest_ != null; } /** *
   * The location of custom sampling rule json file.
   * 
* * .envoy.api.v2.core.DataSource sampling_rule_manifest = 3; */ public io.envoyproxy.envoy.api.v2.core.DataSource getSamplingRuleManifest() { return samplingRuleManifest_ == null ? io.envoyproxy.envoy.api.v2.core.DataSource.getDefaultInstance() : samplingRuleManifest_; } /** *
   * The location of custom sampling rule json file.
   * 
* * .envoy.api.v2.core.DataSource sampling_rule_manifest = 3; */ public io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder getSamplingRuleManifestOrBuilder() { return getSamplingRuleManifest(); } 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 (!getDaemonEndpointBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, daemonEndpoint_); } if (!getSegmentNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, segmentName_); } if (samplingRuleManifest_ != null) { output.writeMessage(3, getSamplingRuleManifest()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getDaemonEndpointBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, daemonEndpoint_); } if (!getSegmentNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, segmentName_); } if (samplingRuleManifest_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSamplingRuleManifest()); } 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.config.trace.v2.XRayConfig)) { return super.equals(obj); } io.envoyproxy.envoy.config.trace.v2.XRayConfig other = (io.envoyproxy.envoy.config.trace.v2.XRayConfig) obj; if (!getDaemonEndpoint() .equals(other.getDaemonEndpoint())) return false; if (!getSegmentName() .equals(other.getSegmentName())) return false; if (hasSamplingRuleManifest() != other.hasSamplingRuleManifest()) return false; if (hasSamplingRuleManifest()) { if (!getSamplingRuleManifest() .equals(other.getSamplingRuleManifest())) 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) + DAEMON_ENDPOINT_FIELD_NUMBER; hash = (53 * hash) + getDaemonEndpoint().hashCode(); hash = (37 * hash) + SEGMENT_NAME_FIELD_NUMBER; hash = (53 * hash) + getSegmentName().hashCode(); if (hasSamplingRuleManifest()) { hash = (37 * hash) + SAMPLING_RULE_MANIFEST_FIELD_NUMBER; hash = (53 * hash) + getSamplingRuleManifest().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.trace.v2.XRayConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.trace.v2.XRayConfig 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.config.trace.v2.XRayConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.trace.v2.XRayConfig 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.config.trace.v2.XRayConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.trace.v2.XRayConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.trace.v2.XRayConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.trace.v2.XRayConfig 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.config.trace.v2.XRayConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.trace.v2.XRayConfig 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.config.trace.v2.XRayConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.trace.v2.XRayConfig 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.config.trace.v2.XRayConfig 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; } /** *
   * [#not-implemented-hide:]
   * Configuration for AWS X-Ray tracer.
   * 
* * Protobuf type {@code envoy.config.trace.v2.XRayConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.trace.v2.XRayConfig) io.envoyproxy.envoy.config.trace.v2.XRayConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.trace.v2.TraceProto.internal_static_envoy_config_trace_v2_XRayConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.trace.v2.TraceProto.internal_static_envoy_config_trace_v2_XRayConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.trace.v2.XRayConfig.class, io.envoyproxy.envoy.config.trace.v2.XRayConfig.Builder.class); } // Construct using io.envoyproxy.envoy.config.trace.v2.XRayConfig.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(); daemonEndpoint_ = ""; segmentName_ = ""; if (samplingRuleManifestBuilder_ == null) { samplingRuleManifest_ = null; } else { samplingRuleManifest_ = null; samplingRuleManifestBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.trace.v2.TraceProto.internal_static_envoy_config_trace_v2_XRayConfig_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.trace.v2.XRayConfig getDefaultInstanceForType() { return io.envoyproxy.envoy.config.trace.v2.XRayConfig.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.trace.v2.XRayConfig build() { io.envoyproxy.envoy.config.trace.v2.XRayConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.trace.v2.XRayConfig buildPartial() { io.envoyproxy.envoy.config.trace.v2.XRayConfig result = new io.envoyproxy.envoy.config.trace.v2.XRayConfig(this); result.daemonEndpoint_ = daemonEndpoint_; result.segmentName_ = segmentName_; if (samplingRuleManifestBuilder_ == null) { result.samplingRuleManifest_ = samplingRuleManifest_; } else { result.samplingRuleManifest_ = samplingRuleManifestBuilder_.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.config.trace.v2.XRayConfig) { return mergeFrom((io.envoyproxy.envoy.config.trace.v2.XRayConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.trace.v2.XRayConfig other) { if (other == io.envoyproxy.envoy.config.trace.v2.XRayConfig.getDefaultInstance()) return this; if (!other.getDaemonEndpoint().isEmpty()) { daemonEndpoint_ = other.daemonEndpoint_; onChanged(); } if (!other.getSegmentName().isEmpty()) { segmentName_ = other.segmentName_; onChanged(); } if (other.hasSamplingRuleManifest()) { mergeSamplingRuleManifest(other.getSamplingRuleManifest()); } 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.config.trace.v2.XRayConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.trace.v2.XRayConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object daemonEndpoint_ = ""; /** *
     * The endpoint of the X-Ray Daemon where the spans will be sent. Since by default daemon
     * listens to localhost:2000, so the default value is 127.0.0.1:2000.
     * 
* * string daemon_endpoint = 1 [(.validate.rules) = { ... } */ public java.lang.String getDaemonEndpoint() { java.lang.Object ref = daemonEndpoint_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); daemonEndpoint_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The endpoint of the X-Ray Daemon where the spans will be sent. Since by default daemon
     * listens to localhost:2000, so the default value is 127.0.0.1:2000.
     * 
* * string daemon_endpoint = 1 [(.validate.rules) = { ... } */ public com.google.protobuf.ByteString getDaemonEndpointBytes() { java.lang.Object ref = daemonEndpoint_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); daemonEndpoint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The endpoint of the X-Ray Daemon where the spans will be sent. Since by default daemon
     * listens to localhost:2000, so the default value is 127.0.0.1:2000.
     * 
* * string daemon_endpoint = 1 [(.validate.rules) = { ... } */ public Builder setDaemonEndpoint( java.lang.String value) { if (value == null) { throw new NullPointerException(); } daemonEndpoint_ = value; onChanged(); return this; } /** *
     * The endpoint of the X-Ray Daemon where the spans will be sent. Since by default daemon
     * listens to localhost:2000, so the default value is 127.0.0.1:2000.
     * 
* * string daemon_endpoint = 1 [(.validate.rules) = { ... } */ public Builder clearDaemonEndpoint() { daemonEndpoint_ = getDefaultInstance().getDaemonEndpoint(); onChanged(); return this; } /** *
     * The endpoint of the X-Ray Daemon where the spans will be sent. Since by default daemon
     * listens to localhost:2000, so the default value is 127.0.0.1:2000.
     * 
* * string daemon_endpoint = 1 [(.validate.rules) = { ... } */ public Builder setDaemonEndpointBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); daemonEndpoint_ = value; onChanged(); return this; } private java.lang.Object segmentName_ = ""; /** *
     * The custom name to name a X-Ray segment. By default will use cluster name.
     * 
* * string segment_name = 2; */ public java.lang.String getSegmentName() { java.lang.Object ref = segmentName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); segmentName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The custom name to name a X-Ray segment. By default will use cluster name.
     * 
* * string segment_name = 2; */ public com.google.protobuf.ByteString getSegmentNameBytes() { java.lang.Object ref = segmentName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); segmentName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The custom name to name a X-Ray segment. By default will use cluster name.
     * 
* * string segment_name = 2; */ public Builder setSegmentName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } segmentName_ = value; onChanged(); return this; } /** *
     * The custom name to name a X-Ray segment. By default will use cluster name.
     * 
* * string segment_name = 2; */ public Builder clearSegmentName() { segmentName_ = getDefaultInstance().getSegmentName(); onChanged(); return this; } /** *
     * The custom name to name a X-Ray segment. By default will use cluster name.
     * 
* * string segment_name = 2; */ public Builder setSegmentNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); segmentName_ = value; onChanged(); return this; } private io.envoyproxy.envoy.api.v2.core.DataSource samplingRuleManifest_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v2.core.DataSource, io.envoyproxy.envoy.api.v2.core.DataSource.Builder, io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder> samplingRuleManifestBuilder_; /** *
     * The location of custom sampling rule json file.
     * 
* * .envoy.api.v2.core.DataSource sampling_rule_manifest = 3; */ public boolean hasSamplingRuleManifest() { return samplingRuleManifestBuilder_ != null || samplingRuleManifest_ != null; } /** *
     * The location of custom sampling rule json file.
     * 
* * .envoy.api.v2.core.DataSource sampling_rule_manifest = 3; */ public io.envoyproxy.envoy.api.v2.core.DataSource getSamplingRuleManifest() { if (samplingRuleManifestBuilder_ == null) { return samplingRuleManifest_ == null ? io.envoyproxy.envoy.api.v2.core.DataSource.getDefaultInstance() : samplingRuleManifest_; } else { return samplingRuleManifestBuilder_.getMessage(); } } /** *
     * The location of custom sampling rule json file.
     * 
* * .envoy.api.v2.core.DataSource sampling_rule_manifest = 3; */ public Builder setSamplingRuleManifest(io.envoyproxy.envoy.api.v2.core.DataSource value) { if (samplingRuleManifestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } samplingRuleManifest_ = value; onChanged(); } else { samplingRuleManifestBuilder_.setMessage(value); } return this; } /** *
     * The location of custom sampling rule json file.
     * 
* * .envoy.api.v2.core.DataSource sampling_rule_manifest = 3; */ public Builder setSamplingRuleManifest( io.envoyproxy.envoy.api.v2.core.DataSource.Builder builderForValue) { if (samplingRuleManifestBuilder_ == null) { samplingRuleManifest_ = builderForValue.build(); onChanged(); } else { samplingRuleManifestBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The location of custom sampling rule json file.
     * 
* * .envoy.api.v2.core.DataSource sampling_rule_manifest = 3; */ public Builder mergeSamplingRuleManifest(io.envoyproxy.envoy.api.v2.core.DataSource value) { if (samplingRuleManifestBuilder_ == null) { if (samplingRuleManifest_ != null) { samplingRuleManifest_ = io.envoyproxy.envoy.api.v2.core.DataSource.newBuilder(samplingRuleManifest_).mergeFrom(value).buildPartial(); } else { samplingRuleManifest_ = value; } onChanged(); } else { samplingRuleManifestBuilder_.mergeFrom(value); } return this; } /** *
     * The location of custom sampling rule json file.
     * 
* * .envoy.api.v2.core.DataSource sampling_rule_manifest = 3; */ public Builder clearSamplingRuleManifest() { if (samplingRuleManifestBuilder_ == null) { samplingRuleManifest_ = null; onChanged(); } else { samplingRuleManifest_ = null; samplingRuleManifestBuilder_ = null; } return this; } /** *
     * The location of custom sampling rule json file.
     * 
* * .envoy.api.v2.core.DataSource sampling_rule_manifest = 3; */ public io.envoyproxy.envoy.api.v2.core.DataSource.Builder getSamplingRuleManifestBuilder() { onChanged(); return getSamplingRuleManifestFieldBuilder().getBuilder(); } /** *
     * The location of custom sampling rule json file.
     * 
* * .envoy.api.v2.core.DataSource sampling_rule_manifest = 3; */ public io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder getSamplingRuleManifestOrBuilder() { if (samplingRuleManifestBuilder_ != null) { return samplingRuleManifestBuilder_.getMessageOrBuilder(); } else { return samplingRuleManifest_ == null ? io.envoyproxy.envoy.api.v2.core.DataSource.getDefaultInstance() : samplingRuleManifest_; } } /** *
     * The location of custom sampling rule json file.
     * 
* * .envoy.api.v2.core.DataSource sampling_rule_manifest = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v2.core.DataSource, io.envoyproxy.envoy.api.v2.core.DataSource.Builder, io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder> getSamplingRuleManifestFieldBuilder() { if (samplingRuleManifestBuilder_ == null) { samplingRuleManifestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v2.core.DataSource, io.envoyproxy.envoy.api.v2.core.DataSource.Builder, io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder>( getSamplingRuleManifest(), getParentForChildren(), isClean()); samplingRuleManifest_ = null; } return samplingRuleManifestBuilder_; } @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.config.trace.v2.XRayConfig) } // @@protoc_insertion_point(class_scope:envoy.config.trace.v2.XRayConfig) private static final io.envoyproxy.envoy.config.trace.v2.XRayConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.trace.v2.XRayConfig(); } public static io.envoyproxy.envoy.config.trace.v2.XRayConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public XRayConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new XRayConfig(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.config.trace.v2.XRayConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy