Class CustomTag.Metadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<CustomTag.Metadata.Builder>
com.google.protobuf.GeneratedMessage.Builder<CustomTag.Metadata.Builder>
io.envoyproxy.envoy.type.tracing.v3.CustomTag.Metadata.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, CustomTag.MetadataOrBuilder, Cloneable
Enclosing class:
CustomTag.Metadata

public static final class CustomTag.Metadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<CustomTag.Metadata.Builder> implements CustomTag.MetadataOrBuilder
 Metadata type custom tag using
 :ref:`MetadataKey <envoy_v3_api_msg_type.metadata.v3.MetadataKey>` to retrieve the protobuf value
 from :ref:`Metadata <envoy_v3_api_msg_config.core.v3.Metadata>`, and populate the tag value with
 `the canonical JSON <https://developers.google.com/protocol-buffers/docs/proto3#json>`_
 representation of it.
 
Protobuf type envoy.type.tracing.v3.CustomTag.Metadata
  • Field Details

  • Constructor Details

    • Builder

      private Builder()
    • Builder

      private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CustomTag.Metadata.Builder>
    • maybeForceBuilderInitialization

      private void maybeForceBuilderInitialization()
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CustomTag.Metadata.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CustomTag.Metadata.Builder>
    • getDefaultInstanceForType

      public CustomTag.Metadata getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public CustomTag.Metadata build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CustomTag.Metadata buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • buildPartial0

      private void buildPartial0(CustomTag.Metadata result)
    • mergeFrom

      public CustomTag.Metadata.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CustomTag.Metadata.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CustomTag.Metadata.Builder>
    • mergeFrom

      public CustomTag.Metadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CustomTag.Metadata.Builder>
      Throws:
      IOException
    • hasKind

      public boolean hasKind()
       Specify what kind of metadata to obtain tag value from.
       
      .envoy.type.metadata.v3.MetadataKind kind = 1;
      Specified by:
      hasKind in interface CustomTag.MetadataOrBuilder
      Returns:
      Whether the kind field is set.
    • getKind

      public MetadataKind getKind()
       Specify what kind of metadata to obtain tag value from.
       
      .envoy.type.metadata.v3.MetadataKind kind = 1;
      Specified by:
      getKind in interface CustomTag.MetadataOrBuilder
      Returns:
      The kind.
    • setKind

      public CustomTag.Metadata.Builder setKind(MetadataKind value)
       Specify what kind of metadata to obtain tag value from.
       
      .envoy.type.metadata.v3.MetadataKind kind = 1;
    • setKind

      public CustomTag.Metadata.Builder setKind(MetadataKind.Builder builderForValue)
       Specify what kind of metadata to obtain tag value from.
       
      .envoy.type.metadata.v3.MetadataKind kind = 1;
    • mergeKind

      public CustomTag.Metadata.Builder mergeKind(MetadataKind value)
       Specify what kind of metadata to obtain tag value from.
       
      .envoy.type.metadata.v3.MetadataKind kind = 1;
    • clearKind

      public CustomTag.Metadata.Builder clearKind()
       Specify what kind of metadata to obtain tag value from.
       
      .envoy.type.metadata.v3.MetadataKind kind = 1;
    • getKindBuilder

      public MetadataKind.Builder getKindBuilder()
       Specify what kind of metadata to obtain tag value from.
       
      .envoy.type.metadata.v3.MetadataKind kind = 1;
    • getKindOrBuilder

      public MetadataKindOrBuilder getKindOrBuilder()
       Specify what kind of metadata to obtain tag value from.
       
      .envoy.type.metadata.v3.MetadataKind kind = 1;
      Specified by:
      getKindOrBuilder in interface CustomTag.MetadataOrBuilder
    • internalGetKindFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<MetadataKind,MetadataKind.Builder,MetadataKindOrBuilder> internalGetKindFieldBuilder()
       Specify what kind of metadata to obtain tag value from.
       
      .envoy.type.metadata.v3.MetadataKind kind = 1;
    • hasMetadataKey

      public boolean hasMetadataKey()
       Metadata key to define the path to retrieve the tag value.
       
      .envoy.type.metadata.v3.MetadataKey metadata_key = 2;
      Specified by:
      hasMetadataKey in interface CustomTag.MetadataOrBuilder
      Returns:
      Whether the metadataKey field is set.
    • getMetadataKey

      public MetadataKey getMetadataKey()
       Metadata key to define the path to retrieve the tag value.
       
      .envoy.type.metadata.v3.MetadataKey metadata_key = 2;
      Specified by:
      getMetadataKey in interface CustomTag.MetadataOrBuilder
      Returns:
      The metadataKey.
    • setMetadataKey

      public CustomTag.Metadata.Builder setMetadataKey(MetadataKey value)
       Metadata key to define the path to retrieve the tag value.
       
      .envoy.type.metadata.v3.MetadataKey metadata_key = 2;
    • setMetadataKey

      public CustomTag.Metadata.Builder setMetadataKey(MetadataKey.Builder builderForValue)
       Metadata key to define the path to retrieve the tag value.
       
      .envoy.type.metadata.v3.MetadataKey metadata_key = 2;
    • mergeMetadataKey

      public CustomTag.Metadata.Builder mergeMetadataKey(MetadataKey value)
       Metadata key to define the path to retrieve the tag value.
       
      .envoy.type.metadata.v3.MetadataKey metadata_key = 2;
    • clearMetadataKey

      public CustomTag.Metadata.Builder clearMetadataKey()
       Metadata key to define the path to retrieve the tag value.
       
      .envoy.type.metadata.v3.MetadataKey metadata_key = 2;
    • getMetadataKeyBuilder

      public MetadataKey.Builder getMetadataKeyBuilder()
       Metadata key to define the path to retrieve the tag value.
       
      .envoy.type.metadata.v3.MetadataKey metadata_key = 2;
    • getMetadataKeyOrBuilder

      public MetadataKeyOrBuilder getMetadataKeyOrBuilder()
       Metadata key to define the path to retrieve the tag value.
       
      .envoy.type.metadata.v3.MetadataKey metadata_key = 2;
      Specified by:
      getMetadataKeyOrBuilder in interface CustomTag.MetadataOrBuilder
    • internalGetMetadataKeyFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<MetadataKey,MetadataKey.Builder,MetadataKeyOrBuilder> internalGetMetadataKeyFieldBuilder()
       Metadata key to define the path to retrieve the tag value.
       
      .envoy.type.metadata.v3.MetadataKey metadata_key = 2;
    • getDefaultValue

      public String getDefaultValue()
       When no valid metadata is found,
       the tag value would be populated with this default value if specified,
       otherwise no tag would be populated.
       
      string default_value = 3;
      Specified by:
      getDefaultValue in interface CustomTag.MetadataOrBuilder
      Returns:
      The defaultValue.
    • getDefaultValueBytes

      public com.google.protobuf.ByteString getDefaultValueBytes()
       When no valid metadata is found,
       the tag value would be populated with this default value if specified,
       otherwise no tag would be populated.
       
      string default_value = 3;
      Specified by:
      getDefaultValueBytes in interface CustomTag.MetadataOrBuilder
      Returns:
      The bytes for defaultValue.
    • setDefaultValue

      public CustomTag.Metadata.Builder setDefaultValue(String value)
       When no valid metadata is found,
       the tag value would be populated with this default value if specified,
       otherwise no tag would be populated.
       
      string default_value = 3;
      Parameters:
      value - The defaultValue to set.
      Returns:
      This builder for chaining.
    • clearDefaultValue

      public CustomTag.Metadata.Builder clearDefaultValue()
       When no valid metadata is found,
       the tag value would be populated with this default value if specified,
       otherwise no tag would be populated.
       
      string default_value = 3;
      Returns:
      This builder for chaining.
    • setDefaultValueBytes

      public CustomTag.Metadata.Builder setDefaultValueBytes(com.google.protobuf.ByteString value)
       When no valid metadata is found,
       the tag value would be populated with this default value if specified,
       otherwise no tag would be populated.
       
      string default_value = 3;
      Parameters:
      value - The bytes for defaultValue to set.
      Returns:
      This builder for chaining.