public final class OpenCensusConfig extends com.google.protobuf.GeneratedMessageV3 implements OpenCensusConfigOrBuilder
Configuration for the OpenCensus tracer. [#next-free-field: 15] [#extension: envoy.tracers.opencensus]Protobuf type
envoy.extensions.tracers.opencensus.v4alpha.OpenCensusConfig| Modifier and Type | Class and Description |
|---|---|
static class |
OpenCensusConfig.Builder
Configuration for the OpenCensus tracer.
|
static class |
OpenCensusConfig.TraceContext
Protobuf enum
envoy.extensions.tracers.opencensus.v4alpha.OpenCensusConfig.TraceContext |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
INCOMING_TRACE_CONTEXT_FIELD_NUMBER |
static int |
OCAGENT_ADDRESS_FIELD_NUMBER |
static int |
OCAGENT_EXPORTER_ENABLED_FIELD_NUMBER |
static int |
OCAGENT_GRPC_SERVICE_FIELD_NUMBER |
static int |
OUTGOING_TRACE_CONTEXT_FIELD_NUMBER |
static int |
STACKDRIVER_ADDRESS_FIELD_NUMBER |
static int |
STACKDRIVER_EXPORTER_ENABLED_FIELD_NUMBER |
static int |
STACKDRIVER_GRPC_SERVICE_FIELD_NUMBER |
static int |
STACKDRIVER_PROJECT_ID_FIELD_NUMBER |
static int |
STDOUT_EXPORTER_ENABLED_FIELD_NUMBER |
static int |
TRACE_CONFIG_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static OpenCensusConfig |
getDefaultInstance() |
OpenCensusConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
OpenCensusConfig.TraceContext |
getIncomingTraceContext(int index)
List of incoming trace context headers we will accept.
|
int |
getIncomingTraceContextCount()
List of incoming trace context headers we will accept.
|
List<OpenCensusConfig.TraceContext> |
getIncomingTraceContextList()
List of incoming trace context headers we will accept.
|
int |
getIncomingTraceContextValue(int index)
List of incoming trace context headers we will accept.
|
List<Integer> |
getIncomingTraceContextValueList()
List of incoming trace context headers we will accept.
|
String |
getOcagentAddress()
The address of the OpenCensus Agent, if its exporter is enabled, in gRPC
format: https://github.com/grpc/grpc/blob/master/doc/naming.md
[#comment:TODO: deprecate this field]
string ocagent_address = 12; |
com.google.protobuf.ByteString |
getOcagentAddressBytes()
The address of the OpenCensus Agent, if its exporter is enabled, in gRPC
format: https://github.com/grpc/grpc/blob/master/doc/naming.md
[#comment:TODO: deprecate this field]
string ocagent_address = 12; |
boolean |
getOcagentExporterEnabled()
Enables the OpenCensus Agent exporter if set to true.
|
GrpcService |
getOcagentGrpcService()
(optional) The gRPC server hosted by the OpenCensus Agent.
|
GrpcServiceOrBuilder |
getOcagentGrpcServiceOrBuilder()
(optional) The gRPC server hosted by the OpenCensus Agent.
|
OpenCensusConfig.TraceContext |
getOutgoingTraceContext(int index)
List of outgoing trace context headers we will produce.
|
int |
getOutgoingTraceContextCount()
List of outgoing trace context headers we will produce.
|
List<OpenCensusConfig.TraceContext> |
getOutgoingTraceContextList()
List of outgoing trace context headers we will produce.
|
int |
getOutgoingTraceContextValue(int index)
List of outgoing trace context headers we will produce.
|
List<Integer> |
getOutgoingTraceContextValueList()
List of outgoing trace context headers we will produce.
|
com.google.protobuf.Parser<OpenCensusConfig> |
getParserForType() |
int |
getSerializedSize() |
String |
getStackdriverAddress()
(optional) By default, the Stackdriver exporter will connect to production
Stackdriver.
|
com.google.protobuf.ByteString |
getStackdriverAddressBytes()
(optional) By default, the Stackdriver exporter will connect to production
Stackdriver.
|
boolean |
getStackdriverExporterEnabled()
Enables the Stackdriver exporter if set to true.
|
GrpcService |
getStackdriverGrpcService()
(optional) The gRPC server that hosts Stackdriver tracing service.
|
GrpcServiceOrBuilder |
getStackdriverGrpcServiceOrBuilder()
(optional) The gRPC server that hosts Stackdriver tracing service.
|
String |
getStackdriverProjectId()
The Cloud project_id to use for Stackdriver tracing.
|
com.google.protobuf.ByteString |
getStackdriverProjectIdBytes()
The Cloud project_id to use for Stackdriver tracing.
|
boolean |
getStdoutExporterEnabled()
Enables the stdout exporter if set to true.
|
TraceConfig |
getTraceConfig()
Configures tracing, e.g. the sampler, max number of annotations, etc.
|
TraceConfigOrBuilder |
getTraceConfigOrBuilder()
Configures tracing, e.g. the sampler, max number of annotations, etc.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasOcagentGrpcService()
(optional) The gRPC server hosted by the OpenCensus Agent.
|
boolean |
hasStackdriverGrpcService()
(optional) The gRPC server that hosts Stackdriver tracing service.
|
boolean |
hasTraceConfig()
Configures tracing, e.g. the sampler, max number of annotations, etc.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static OpenCensusConfig.Builder |
newBuilder() |
static OpenCensusConfig.Builder |
newBuilder(OpenCensusConfig prototype) |
OpenCensusConfig.Builder |
newBuilderForType() |
protected OpenCensusConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static OpenCensusConfig |
parseDelimitedFrom(InputStream input) |
static OpenCensusConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OpenCensusConfig |
parseFrom(byte[] data) |
static OpenCensusConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OpenCensusConfig |
parseFrom(ByteBuffer data) |
static OpenCensusConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OpenCensusConfig |
parseFrom(com.google.protobuf.ByteString data) |
static OpenCensusConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OpenCensusConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static OpenCensusConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OpenCensusConfig |
parseFrom(InputStream input) |
static OpenCensusConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<OpenCensusConfig> |
parser() |
OpenCensusConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TRACE_CONFIG_FIELD_NUMBER
public static final int STDOUT_EXPORTER_ENABLED_FIELD_NUMBER
public static final int STACKDRIVER_EXPORTER_ENABLED_FIELD_NUMBER
public static final int STACKDRIVER_PROJECT_ID_FIELD_NUMBER
public static final int STACKDRIVER_ADDRESS_FIELD_NUMBER
public static final int STACKDRIVER_GRPC_SERVICE_FIELD_NUMBER
public static final int OCAGENT_EXPORTER_ENABLED_FIELD_NUMBER
public static final int OCAGENT_ADDRESS_FIELD_NUMBER
public static final int OCAGENT_GRPC_SERVICE_FIELD_NUMBER
public static final int INCOMING_TRACE_CONTEXT_FIELD_NUMBER
public static final int OUTGOING_TRACE_CONTEXT_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasTraceConfig()
Configures tracing, e.g. the sampler, max number of annotations, etc.
.opencensus.proto.trace.v1.TraceConfig trace_config = 1;hasTraceConfig in interface OpenCensusConfigOrBuilderpublic TraceConfig getTraceConfig()
Configures tracing, e.g. the sampler, max number of annotations, etc.
.opencensus.proto.trace.v1.TraceConfig trace_config = 1;getTraceConfig in interface OpenCensusConfigOrBuilderpublic TraceConfigOrBuilder getTraceConfigOrBuilder()
Configures tracing, e.g. the sampler, max number of annotations, etc.
.opencensus.proto.trace.v1.TraceConfig trace_config = 1;getTraceConfigOrBuilder in interface OpenCensusConfigOrBuilderpublic boolean getStdoutExporterEnabled()
Enables the stdout exporter if set to true. This is intended for debugging purposes.
bool stdout_exporter_enabled = 2;getStdoutExporterEnabled in interface OpenCensusConfigOrBuilderpublic boolean getStackdriverExporterEnabled()
Enables the Stackdriver exporter if set to true. The project_id must also be set.
bool stackdriver_exporter_enabled = 3;getStackdriverExporterEnabled in interface OpenCensusConfigOrBuilderpublic String getStackdriverProjectId()
The Cloud project_id to use for Stackdriver tracing.
string stackdriver_project_id = 4;getStackdriverProjectId in interface OpenCensusConfigOrBuilderpublic com.google.protobuf.ByteString getStackdriverProjectIdBytes()
The Cloud project_id to use for Stackdriver tracing.
string stackdriver_project_id = 4;getStackdriverProjectIdBytes in interface OpenCensusConfigOrBuilderpublic String getStackdriverAddress()
(optional) By default, the Stackdriver exporter will connect to production Stackdriver. If stackdriver_address is non-empty, it will instead connect to this address, which is in the gRPC format: https://github.com/grpc/grpc/blob/master/doc/naming.md
string stackdriver_address = 10;getStackdriverAddress in interface OpenCensusConfigOrBuilderpublic com.google.protobuf.ByteString getStackdriverAddressBytes()
(optional) By default, the Stackdriver exporter will connect to production Stackdriver. If stackdriver_address is non-empty, it will instead connect to this address, which is in the gRPC format: https://github.com/grpc/grpc/blob/master/doc/naming.md
string stackdriver_address = 10;getStackdriverAddressBytes in interface OpenCensusConfigOrBuilderpublic boolean hasStackdriverGrpcService()
(optional) The gRPC server that hosts Stackdriver tracing service. Only Google gRPC is supported. If :ref:`target_uri <envoy_v3_api_field_config.core.v3.GrpcService.GoogleGrpc.target_uri>` is not provided, the default production Stackdriver address will be used.
.envoy.config.core.v4alpha.GrpcService stackdriver_grpc_service = 13;hasStackdriverGrpcService in interface OpenCensusConfigOrBuilderpublic GrpcService getStackdriverGrpcService()
(optional) The gRPC server that hosts Stackdriver tracing service. Only Google gRPC is supported. If :ref:`target_uri <envoy_v3_api_field_config.core.v3.GrpcService.GoogleGrpc.target_uri>` is not provided, the default production Stackdriver address will be used.
.envoy.config.core.v4alpha.GrpcService stackdriver_grpc_service = 13;getStackdriverGrpcService in interface OpenCensusConfigOrBuilderpublic GrpcServiceOrBuilder getStackdriverGrpcServiceOrBuilder()
(optional) The gRPC server that hosts Stackdriver tracing service. Only Google gRPC is supported. If :ref:`target_uri <envoy_v3_api_field_config.core.v3.GrpcService.GoogleGrpc.target_uri>` is not provided, the default production Stackdriver address will be used.
.envoy.config.core.v4alpha.GrpcService stackdriver_grpc_service = 13;getStackdriverGrpcServiceOrBuilder in interface OpenCensusConfigOrBuilderpublic boolean getOcagentExporterEnabled()
Enables the OpenCensus Agent exporter if set to true. The ocagent_address or ocagent_grpc_service must also be set.
bool ocagent_exporter_enabled = 11;getOcagentExporterEnabled in interface OpenCensusConfigOrBuilderpublic String getOcagentAddress()
The address of the OpenCensus Agent, if its exporter is enabled, in gRPC format: https://github.com/grpc/grpc/blob/master/doc/naming.md [#comment:TODO: deprecate this field]
string ocagent_address = 12;getOcagentAddress in interface OpenCensusConfigOrBuilderpublic com.google.protobuf.ByteString getOcagentAddressBytes()
The address of the OpenCensus Agent, if its exporter is enabled, in gRPC format: https://github.com/grpc/grpc/blob/master/doc/naming.md [#comment:TODO: deprecate this field]
string ocagent_address = 12;getOcagentAddressBytes in interface OpenCensusConfigOrBuilderpublic boolean hasOcagentGrpcService()
(optional) The gRPC server hosted by the OpenCensus Agent. Only Google gRPC is supported. This is only used if the ocagent_address is left empty.
.envoy.config.core.v4alpha.GrpcService ocagent_grpc_service = 14;hasOcagentGrpcService in interface OpenCensusConfigOrBuilderpublic GrpcService getOcagentGrpcService()
(optional) The gRPC server hosted by the OpenCensus Agent. Only Google gRPC is supported. This is only used if the ocagent_address is left empty.
.envoy.config.core.v4alpha.GrpcService ocagent_grpc_service = 14;getOcagentGrpcService in interface OpenCensusConfigOrBuilderpublic GrpcServiceOrBuilder getOcagentGrpcServiceOrBuilder()
(optional) The gRPC server hosted by the OpenCensus Agent. Only Google gRPC is supported. This is only used if the ocagent_address is left empty.
.envoy.config.core.v4alpha.GrpcService ocagent_grpc_service = 14;getOcagentGrpcServiceOrBuilder in interface OpenCensusConfigOrBuilderpublic List<OpenCensusConfig.TraceContext> getIncomingTraceContextList()
List of incoming trace context headers we will accept. First one found wins.
repeated .envoy.extensions.tracers.opencensus.v4alpha.OpenCensusConfig.TraceContext incoming_trace_context = 8;getIncomingTraceContextList in interface OpenCensusConfigOrBuilderpublic int getIncomingTraceContextCount()
List of incoming trace context headers we will accept. First one found wins.
repeated .envoy.extensions.tracers.opencensus.v4alpha.OpenCensusConfig.TraceContext incoming_trace_context = 8;getIncomingTraceContextCount in interface OpenCensusConfigOrBuilderpublic OpenCensusConfig.TraceContext getIncomingTraceContext(int index)
List of incoming trace context headers we will accept. First one found wins.
repeated .envoy.extensions.tracers.opencensus.v4alpha.OpenCensusConfig.TraceContext incoming_trace_context = 8;getIncomingTraceContext in interface OpenCensusConfigOrBuilderpublic List<Integer> getIncomingTraceContextValueList()
List of incoming trace context headers we will accept. First one found wins.
repeated .envoy.extensions.tracers.opencensus.v4alpha.OpenCensusConfig.TraceContext incoming_trace_context = 8;getIncomingTraceContextValueList in interface OpenCensusConfigOrBuilderpublic int getIncomingTraceContextValue(int index)
List of incoming trace context headers we will accept. First one found wins.
repeated .envoy.extensions.tracers.opencensus.v4alpha.OpenCensusConfig.TraceContext incoming_trace_context = 8;getIncomingTraceContextValue in interface OpenCensusConfigOrBuilderpublic List<OpenCensusConfig.TraceContext> getOutgoingTraceContextList()
List of outgoing trace context headers we will produce.
repeated .envoy.extensions.tracers.opencensus.v4alpha.OpenCensusConfig.TraceContext outgoing_trace_context = 9;getOutgoingTraceContextList in interface OpenCensusConfigOrBuilderpublic int getOutgoingTraceContextCount()
List of outgoing trace context headers we will produce.
repeated .envoy.extensions.tracers.opencensus.v4alpha.OpenCensusConfig.TraceContext outgoing_trace_context = 9;getOutgoingTraceContextCount in interface OpenCensusConfigOrBuilderpublic OpenCensusConfig.TraceContext getOutgoingTraceContext(int index)
List of outgoing trace context headers we will produce.
repeated .envoy.extensions.tracers.opencensus.v4alpha.OpenCensusConfig.TraceContext outgoing_trace_context = 9;getOutgoingTraceContext in interface OpenCensusConfigOrBuilderpublic List<Integer> getOutgoingTraceContextValueList()
List of outgoing trace context headers we will produce.
repeated .envoy.extensions.tracers.opencensus.v4alpha.OpenCensusConfig.TraceContext outgoing_trace_context = 9;getOutgoingTraceContextValueList in interface OpenCensusConfigOrBuilderpublic int getOutgoingTraceContextValue(int index)
List of outgoing trace context headers we will produce.
repeated .envoy.extensions.tracers.opencensus.v4alpha.OpenCensusConfig.TraceContext outgoing_trace_context = 9;getOutgoingTraceContextValue in interface OpenCensusConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static OpenCensusConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OpenCensusConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OpenCensusConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OpenCensusConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OpenCensusConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OpenCensusConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OpenCensusConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static OpenCensusConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OpenCensusConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static OpenCensusConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OpenCensusConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static OpenCensusConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic OpenCensusConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static OpenCensusConfig.Builder newBuilder()
public static OpenCensusConfig.Builder newBuilder(OpenCensusConfig prototype)
public OpenCensusConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected OpenCensusConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static OpenCensusConfig getDefaultInstance()
public static com.google.protobuf.Parser<OpenCensusConfig> parser()
public com.google.protobuf.Parser<OpenCensusConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public OpenCensusConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.