Class 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.GeneratedMessageV3.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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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).
      Trace.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)  
      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).
      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).
      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).
      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).
      Step.Builder addStepsBuilder()
      A trace of a test contains multiple steps from the initial state to the final state (delivered, dropped, forwarded, or aborted).
      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).
      Trace build()  
      Trace buildPartial()  
      Trace.Builder clear()  
      Trace.Builder clearEndpointInfo()
      Derived from the source and destination endpoints definition specified by user request, and validated by the data plane model.
      Trace.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)  
      Trace.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)  
      Trace.Builder clearSteps()
      A trace of a test contains multiple steps from the initial state to the final state (delivered, dropped, forwarded, or aborted).
      Trace.Builder clone()  
      Trace getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      com.google.protobuf.Descriptors.Descriptor getDescriptorForType()  
      EndpointInfo getEndpointInfo()
      Derived from the source and destination endpoints definition specified by user request, and validated by the data plane model.
      EndpointInfo.Builder getEndpointInfoBuilder()
      Derived from the source and destination endpoints definition specified by user request, and validated by the data plane model.
      EndpointInfoOrBuilder getEndpointInfoOrBuilder()
      Derived from the source and destination endpoints definition specified by user request, and validated by the data plane model.
      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).
      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).
      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).
      int getStepsCount()
      A trace of a test contains multiple steps from the initial state to the final state (delivered, dropped, forwarded, or aborted).
      List<Step> getStepsList()
      A trace of a test contains multiple steps from the initial state to the final state (delivered, dropped, forwarded, or aborted).
      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).
      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).
      boolean hasEndpointInfo()
      Derived from the source and destination endpoints definition specified by user request, and validated by the data plane model.
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      Trace.Builder mergeEndpointInfo​(EndpointInfo value)
      Derived from the source and destination endpoints definition specified by user request, and validated by the data plane model.
      Trace.Builder mergeFrom​(Trace other)  
      Trace.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      Trace.Builder mergeFrom​(com.google.protobuf.Message other)  
      Trace.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)  
      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).
      Trace.Builder setEndpointInfo​(EndpointInfo value)
      Derived from the source and destination endpoints definition specified by user request, and validated by the data plane model.
      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.
      Trace.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)  
      Trace.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)  
      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).
      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).
      Trace.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)  
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder

        getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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 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 Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public Trace.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Trace.Builder>
      • setField

        public Trace.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                      Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Trace.Builder>
      • clearField

        public Trace.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Trace.Builder>
      • clearOneof

        public Trace.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Trace.Builder>
      • setRepeatedField

        public Trace.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                              int index,
                                              Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Trace.Builder>
      • addRepeatedField

        public Trace.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                              Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Trace.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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;
      • setUnknownFields

        public final Trace.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Trace.Builder>
      • mergeUnknownFields

        public final Trace.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Trace.Builder>