Class Trace.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Trace.Builder>
com.google.cloud.networkmanagement.v1beta1.Trace.Builder
All Implemented Interfaces:
TraceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Trace

public static final class Trace.Builder extends com.google.protobuf.GeneratedMessage.Builder<Trace.Builder> implements TraceOrBuilder
 Trace represents one simulated packet forwarding path.

 * Each trace contains multiple ordered steps.
 * Each step is in a particular state with associated configuration.
 * State is categorized as final or non-final states.
 * Each final state has a reason associated.
 * Each trace must end with a final state (the last step).
 ```
 |---------------------Trace----------------------|
 Step1(State) Step2(State) ---  StepN(State(final))
 ```
 
Protobuf type google.cloud.networkmanagement.v1beta1.Trace
  • Method Summary

    Modifier and Type
    Method
    Description
    addAllSteps(Iterable<? extends Step> values)
    A trace of a test contains multiple steps from the initial state to the final state (delivered, dropped, forwarded, or aborted).
    addSteps(int index, Step value)
    A trace of a test contains multiple steps from the initial state to the final state (delivered, dropped, forwarded, or aborted).
    addSteps(int index, Step.Builder builderForValue)
    A trace of a test contains multiple steps from the initial state to the final state (delivered, dropped, forwarded, or aborted).
    addSteps(Step value)
    A trace of a test contains multiple steps from the initial state to the final state (delivered, dropped, forwarded, or aborted).
    addSteps(Step.Builder builderForValue)
    A trace of a test contains multiple steps from the initial state to the final state (delivered, dropped, forwarded, or aborted).
    A trace of a test contains multiple steps from the initial state to the final state (delivered, dropped, forwarded, or aborted).
    addStepsBuilder(int index)
    A trace of a test contains multiple steps from the initial state to the final state (delivered, dropped, forwarded, or aborted).
     
     
     
    Derived from the source and destination endpoints definition specified by user request, and validated by the data plane model.
    ID of trace.
    A trace of a test contains multiple steps from the initial state to the final state (delivered, dropped, forwarded, or aborted).
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    Derived from the source and destination endpoints definition specified by user request, and validated by the data plane model.
    Derived from the source and destination endpoints definition specified by user request, and validated by the data plane model.
    Derived from the source and destination endpoints definition specified by user request, and validated by the data plane model.
    int
    ID of trace.
    getSteps(int index)
    A trace of a test contains multiple steps from the initial state to the final state (delivered, dropped, forwarded, or aborted).
    getStepsBuilder(int index)
    A trace of a test contains multiple steps from the initial state to the final state (delivered, dropped, forwarded, or aborted).
    A trace of a test contains multiple steps from the initial state to the final state (delivered, dropped, forwarded, or aborted).
    int
    A trace of a test contains multiple steps from the initial state to the final state (delivered, dropped, forwarded, or aborted).
    A trace of a test contains multiple steps from the initial state to the final state (delivered, dropped, forwarded, or aborted).
    getStepsOrBuilder(int index)
    A trace of a test contains multiple steps from the initial state to the final state (delivered, dropped, forwarded, or aborted).
    List<? extends StepOrBuilder>
    A trace of a test contains multiple steps from the initial state to the final state (delivered, dropped, forwarded, or aborted).
    boolean
    Derived from the source and destination endpoints definition specified by user request, and validated by the data plane model.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    Derived from the source and destination endpoints definition specified by user request, and validated by the data plane model.
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    removeSteps(int index)
    A trace of a test contains multiple steps from the initial state to the final state (delivered, dropped, forwarded, or aborted).
    Derived from the source and destination endpoints definition specified by user request, and validated by the data plane model.
    Derived from the source and destination endpoints definition specified by user request, and validated by the data plane model.
    setForwardTraceId(int value)
    ID of trace.
    setSteps(int index, Step value)
    A trace of a test contains multiple steps from the initial state to the final state (delivered, dropped, forwarded, or aborted).
    setSteps(int index, Step.Builder builderForValue)
    A trace of a test contains multiple steps from the initial state to the final state (delivered, dropped, forwarded, or aborted).

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<Trace.Builder>
    • clear

      public Trace.Builder 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<Trace.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<Trace.Builder>
    • getDefaultInstanceForType

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

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

      public Trace buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Trace.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<Trace.Builder>
    • mergeFrom

      public Trace.Builder mergeFrom(Trace other)
    • isInitialized

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

      public Trace.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<Trace.Builder>
      Throws:
      IOException
    • hasEndpointInfo

      public boolean hasEndpointInfo()
       Derived from the source and destination endpoints definition specified by
       user request, and validated by the data plane model.
       If there are multiple traces starting from different source locations, then
       the endpoint_info may be different between traces.
       
      .google.cloud.networkmanagement.v1beta1.EndpointInfo endpoint_info = 1;
      Specified by:
      hasEndpointInfo in interface TraceOrBuilder
      Returns:
      Whether the endpointInfo field is set.
    • getEndpointInfo

      public EndpointInfo getEndpointInfo()
       Derived from the source and destination endpoints definition specified by
       user request, and validated by the data plane model.
       If there are multiple traces starting from different source locations, then
       the endpoint_info may be different between traces.
       
      .google.cloud.networkmanagement.v1beta1.EndpointInfo endpoint_info = 1;
      Specified by:
      getEndpointInfo in interface TraceOrBuilder
      Returns:
      The endpointInfo.
    • setEndpointInfo

      public Trace.Builder setEndpointInfo(EndpointInfo value)
       Derived from the source and destination endpoints definition specified by
       user request, and validated by the data plane model.
       If there are multiple traces starting from different source locations, then
       the endpoint_info may be different between traces.
       
      .google.cloud.networkmanagement.v1beta1.EndpointInfo endpoint_info = 1;
    • setEndpointInfo

      public Trace.Builder setEndpointInfo(EndpointInfo.Builder builderForValue)
       Derived from the source and destination endpoints definition specified by
       user request, and validated by the data plane model.
       If there are multiple traces starting from different source locations, then
       the endpoint_info may be different between traces.
       
      .google.cloud.networkmanagement.v1beta1.EndpointInfo endpoint_info = 1;
    • mergeEndpointInfo

      public Trace.Builder mergeEndpointInfo(EndpointInfo value)
       Derived from the source and destination endpoints definition specified by
       user request, and validated by the data plane model.
       If there are multiple traces starting from different source locations, then
       the endpoint_info may be different between traces.
       
      .google.cloud.networkmanagement.v1beta1.EndpointInfo endpoint_info = 1;
    • clearEndpointInfo

      public Trace.Builder clearEndpointInfo()
       Derived from the source and destination endpoints definition specified by
       user request, and validated by the data plane model.
       If there are multiple traces starting from different source locations, then
       the endpoint_info may be different between traces.
       
      .google.cloud.networkmanagement.v1beta1.EndpointInfo endpoint_info = 1;
    • getEndpointInfoBuilder

      public EndpointInfo.Builder getEndpointInfoBuilder()
       Derived from the source and destination endpoints definition specified by
       user request, and validated by the data plane model.
       If there are multiple traces starting from different source locations, then
       the endpoint_info may be different between traces.
       
      .google.cloud.networkmanagement.v1beta1.EndpointInfo endpoint_info = 1;
    • getEndpointInfoOrBuilder

      public EndpointInfoOrBuilder getEndpointInfoOrBuilder()
       Derived from the source and destination endpoints definition specified by
       user request, and validated by the data plane model.
       If there are multiple traces starting from different source locations, then
       the endpoint_info may be different between traces.
       
      .google.cloud.networkmanagement.v1beta1.EndpointInfo endpoint_info = 1;
      Specified by:
      getEndpointInfoOrBuilder in interface TraceOrBuilder
    • getStepsList

      public List<Step> getStepsList()
       A trace of a test contains multiple steps from the initial state to the
       final state (delivered, dropped, forwarded, or aborted).
      
       The steps are ordered by the processing sequence within the simulated
       network state machine. It is critical to preserve the order of the steps
       and avoid reordering or sorting them.
       
      repeated .google.cloud.networkmanagement.v1beta1.Step steps = 2;
      Specified by:
      getStepsList in interface TraceOrBuilder
    • getStepsCount

      public int getStepsCount()
       A trace of a test contains multiple steps from the initial state to the
       final state (delivered, dropped, forwarded, or aborted).
      
       The steps are ordered by the processing sequence within the simulated
       network state machine. It is critical to preserve the order of the steps
       and avoid reordering or sorting them.
       
      repeated .google.cloud.networkmanagement.v1beta1.Step steps = 2;
      Specified by:
      getStepsCount in interface TraceOrBuilder
    • getSteps

      public Step getSteps(int index)
       A trace of a test contains multiple steps from the initial state to the
       final state (delivered, dropped, forwarded, or aborted).
      
       The steps are ordered by the processing sequence within the simulated
       network state machine. It is critical to preserve the order of the steps
       and avoid reordering or sorting them.
       
      repeated .google.cloud.networkmanagement.v1beta1.Step steps = 2;
      Specified by:
      getSteps in interface TraceOrBuilder
    • setSteps

      public Trace.Builder setSteps(int index, Step value)
       A trace of a test contains multiple steps from the initial state to the
       final state (delivered, dropped, forwarded, or aborted).
      
       The steps are ordered by the processing sequence within the simulated
       network state machine. It is critical to preserve the order of the steps
       and avoid reordering or sorting them.
       
      repeated .google.cloud.networkmanagement.v1beta1.Step steps = 2;
    • setSteps

      public Trace.Builder setSteps(int index, Step.Builder builderForValue)
       A trace of a test contains multiple steps from the initial state to the
       final state (delivered, dropped, forwarded, or aborted).
      
       The steps are ordered by the processing sequence within the simulated
       network state machine. It is critical to preserve the order of the steps
       and avoid reordering or sorting them.
       
      repeated .google.cloud.networkmanagement.v1beta1.Step steps = 2;
    • addSteps

      public Trace.Builder addSteps(Step value)
       A trace of a test contains multiple steps from the initial state to the
       final state (delivered, dropped, forwarded, or aborted).
      
       The steps are ordered by the processing sequence within the simulated
       network state machine. It is critical to preserve the order of the steps
       and avoid reordering or sorting them.
       
      repeated .google.cloud.networkmanagement.v1beta1.Step steps = 2;
    • addSteps

      public Trace.Builder addSteps(int index, Step value)
       A trace of a test contains multiple steps from the initial state to the
       final state (delivered, dropped, forwarded, or aborted).
      
       The steps are ordered by the processing sequence within the simulated
       network state machine. It is critical to preserve the order of the steps
       and avoid reordering or sorting them.
       
      repeated .google.cloud.networkmanagement.v1beta1.Step steps = 2;
    • addSteps

      public Trace.Builder addSteps(Step.Builder builderForValue)
       A trace of a test contains multiple steps from the initial state to the
       final state (delivered, dropped, forwarded, or aborted).
      
       The steps are ordered by the processing sequence within the simulated
       network state machine. It is critical to preserve the order of the steps
       and avoid reordering or sorting them.
       
      repeated .google.cloud.networkmanagement.v1beta1.Step steps = 2;
    • addSteps

      public Trace.Builder addSteps(int index, Step.Builder builderForValue)
       A trace of a test contains multiple steps from the initial state to the
       final state (delivered, dropped, forwarded, or aborted).
      
       The steps are ordered by the processing sequence within the simulated
       network state machine. It is critical to preserve the order of the steps
       and avoid reordering or sorting them.
       
      repeated .google.cloud.networkmanagement.v1beta1.Step steps = 2;
    • addAllSteps

      public Trace.Builder addAllSteps(Iterable<? extends Step> values)
       A trace of a test contains multiple steps from the initial state to the
       final state (delivered, dropped, forwarded, or aborted).
      
       The steps are ordered by the processing sequence within the simulated
       network state machine. It is critical to preserve the order of the steps
       and avoid reordering or sorting them.
       
      repeated .google.cloud.networkmanagement.v1beta1.Step steps = 2;
    • clearSteps

      public Trace.Builder clearSteps()
       A trace of a test contains multiple steps from the initial state to the
       final state (delivered, dropped, forwarded, or aborted).
      
       The steps are ordered by the processing sequence within the simulated
       network state machine. It is critical to preserve the order of the steps
       and avoid reordering or sorting them.
       
      repeated .google.cloud.networkmanagement.v1beta1.Step steps = 2;
    • removeSteps

      public Trace.Builder removeSteps(int index)
       A trace of a test contains multiple steps from the initial state to the
       final state (delivered, dropped, forwarded, or aborted).
      
       The steps are ordered by the processing sequence within the simulated
       network state machine. It is critical to preserve the order of the steps
       and avoid reordering or sorting them.
       
      repeated .google.cloud.networkmanagement.v1beta1.Step steps = 2;
    • getStepsBuilder

      public Step.Builder getStepsBuilder(int index)
       A trace of a test contains multiple steps from the initial state to the
       final state (delivered, dropped, forwarded, or aborted).
      
       The steps are ordered by the processing sequence within the simulated
       network state machine. It is critical to preserve the order of the steps
       and avoid reordering or sorting them.
       
      repeated .google.cloud.networkmanagement.v1beta1.Step steps = 2;
    • getStepsOrBuilder

      public StepOrBuilder getStepsOrBuilder(int index)
       A trace of a test contains multiple steps from the initial state to the
       final state (delivered, dropped, forwarded, or aborted).
      
       The steps are ordered by the processing sequence within the simulated
       network state machine. It is critical to preserve the order of the steps
       and avoid reordering or sorting them.
       
      repeated .google.cloud.networkmanagement.v1beta1.Step steps = 2;
      Specified by:
      getStepsOrBuilder in interface TraceOrBuilder
    • getStepsOrBuilderList

      public List<? extends StepOrBuilder> getStepsOrBuilderList()
       A trace of a test contains multiple steps from the initial state to the
       final state (delivered, dropped, forwarded, or aborted).
      
       The steps are ordered by the processing sequence within the simulated
       network state machine. It is critical to preserve the order of the steps
       and avoid reordering or sorting them.
       
      repeated .google.cloud.networkmanagement.v1beta1.Step steps = 2;
      Specified by:
      getStepsOrBuilderList in interface TraceOrBuilder
    • addStepsBuilder

      public Step.Builder addStepsBuilder()
       A trace of a test contains multiple steps from the initial state to the
       final state (delivered, dropped, forwarded, or aborted).
      
       The steps are ordered by the processing sequence within the simulated
       network state machine. It is critical to preserve the order of the steps
       and avoid reordering or sorting them.
       
      repeated .google.cloud.networkmanagement.v1beta1.Step steps = 2;
    • addStepsBuilder

      public Step.Builder addStepsBuilder(int index)
       A trace of a test contains multiple steps from the initial state to the
       final state (delivered, dropped, forwarded, or aborted).
      
       The steps are ordered by the processing sequence within the simulated
       network state machine. It is critical to preserve the order of the steps
       and avoid reordering or sorting them.
       
      repeated .google.cloud.networkmanagement.v1beta1.Step steps = 2;
    • getStepsBuilderList

      public List<Step.Builder> getStepsBuilderList()
       A trace of a test contains multiple steps from the initial state to the
       final state (delivered, dropped, forwarded, or aborted).
      
       The steps are ordered by the processing sequence within the simulated
       network state machine. It is critical to preserve the order of the steps
       and avoid reordering or sorting them.
       
      repeated .google.cloud.networkmanagement.v1beta1.Step steps = 2;
    • getForwardTraceId

      public int getForwardTraceId()
       ID of trace. For forward traces, this ID is unique for each trace. For
       return traces, it matches ID of associated forward trace. A single forward
       trace can be associated with none, one or more than one return trace.
       
      int32 forward_trace_id = 4;
      Specified by:
      getForwardTraceId in interface TraceOrBuilder
      Returns:
      The forwardTraceId.
    • setForwardTraceId

      public Trace.Builder setForwardTraceId(int value)
       ID of trace. For forward traces, this ID is unique for each trace. For
       return traces, it matches ID of associated forward trace. A single forward
       trace can be associated with none, one or more than one return trace.
       
      int32 forward_trace_id = 4;
      Parameters:
      value - The forwardTraceId to set.
      Returns:
      This builder for chaining.
    • clearForwardTraceId

      public Trace.Builder clearForwardTraceId()
       ID of trace. For forward traces, this ID is unique for each trace. For
       return traces, it matches ID of associated forward trace. A single forward
       trace can be associated with none, one or more than one return trace.
       
      int32 forward_trace_id = 4;
      Returns:
      This builder for chaining.