类 Command.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
org.apache.skywalking.apm.network.common.v3.Command.Builder
所有已实现的接口:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, CommandOrBuilder
封闭类:
Command

public static final class Command.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Command.Builder> implements CommandOrBuilder
 Command represents an protocol customized data when return.
 When the agent communicates with the OAP side using gRPC, the OAP uses Command to return the data content to the Agent.
 The available commands are,
 Name: ConfigurationDiscoveryCommand
 Args:
     SerialNumber: String
     UUID: String
     properties: Key-value pairs rely on agent-side implementations
 Ref, Java agent supported configurations, https://skywalking.apache.org/docs/skywalking-java/next/en/setup/service-agent/java-agent/configuration-discovery/
 Name: ProfileTaskQuery
 Args:
     SerialNumber: String
     TaskId: String
     EndpointName: String
     Duration: Integer
     MinDurationThreshold: Integer
     DumpPeriod: Integer
     MaxSamplingCount: Integer
     StartTime: Date Timestamp
     CreateTime: Date Timestamp
 Name: EBPFProfilingTaskQuery
 Args:
     TaskId: String
     ProcessId: Integer List
     TaskUpdateTime: Date timestamp
     TriggerType: Enum, value = FIXED_TIME
     TargetType: Enum, value = ON_CPU, OFF_CPU or NETWORK
     TaskStartTime: Date Timestamp
     ExtensionConfigJSON: JSON serialization of NetworkSamplings.
         --- NetworkSamplings ---
         NetworkSamplings: List
             URIRegex: String
             MinDuration: Integer
             When4xx: Boolean
             When5xx: Boolean
             Settings: Object
                 RequireCompleteRequest: Boolean
                 MaxRequestSize: Integer
                 RequireCompleteResponse: Boolean
                 MaxResponseSize: Integer
         ------------------------
     FixedTriggerDuration: Long
 Name: ContinuousProfilingPolicyQuery
 Args:
     ServiceWithPolicyJSON: List JSON serialization of ServiceWithPolicy.
         --- ServiceWithPolicy ---
         ServiceName: String
         UUID: String
         Profiling: Multiple profiling configuration. Map
             Key: Profiling type. Enum, value = ON_CPU, OFF_CPU, NETWORK
             Value: Profiling policies. Map
                 Key: Monitoring type. Enum, value = PROCESS_CPU, PROCESS_THREAD_COUNT, SYSTEM_LOAD, HTTP_ERROR_RATE, HTTP_AVG_RESPONSE_TIME
                 Value: Policy configuration. Object.
                     Threshold: String
                     Period(s): Integer
                     Count: Integer
                     URIList: List<String>
                     URIRegex: String
         ---------------------------
 Name: ContinuousProfilingReportTask
 Args:
     TaskId: String
 
Protobuf type skywalking.v3.Command
  • 方法详细资料

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      指定者:
      internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
    • clear

      public Command.Builder clear()
      指定者:
      clear 在接口中 com.google.protobuf.Message.Builder
      指定者:
      clear 在接口中 com.google.protobuf.MessageLite.Builder
      覆盖:
      clear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      指定者:
      getDescriptorForType 在接口中 com.google.protobuf.Message.Builder
      指定者:
      getDescriptorForType 在接口中 com.google.protobuf.MessageOrBuilder
      覆盖:
      getDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
    • getDefaultInstanceForType

      public Command getDefaultInstanceForType()
      指定者:
      getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuilder
      指定者:
      getDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilder
    • build

      public Command build()
      指定者:
      build 在接口中 com.google.protobuf.Message.Builder
      指定者:
      build 在接口中 com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Command buildPartial()
      指定者:
      buildPartial 在接口中 com.google.protobuf.Message.Builder
      指定者:
      buildPartial 在接口中 com.google.protobuf.MessageLite.Builder
    • clone

      public Command.Builder clone()
      指定者:
      clone 在接口中 com.google.protobuf.Message.Builder
      指定者:
      clone 在接口中 com.google.protobuf.MessageLite.Builder
      覆盖:
      clone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
    • setField

      public Command.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      指定者:
      setField 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      setField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
    • clearField

      public Command.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      指定者:
      clearField 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      clearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
    • clearOneof

      public Command.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      指定者:
      clearOneof 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      clearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
    • setRepeatedField

      public Command.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      指定者:
      setRepeatedField 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      setRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
    • addRepeatedField

      public Command.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      指定者:
      addRepeatedField 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      addRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
    • mergeFrom

      public Command.Builder mergeFrom(com.google.protobuf.Message other)
      指定者:
      mergeFrom 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      mergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<Command.Builder>
    • mergeFrom

      public Command.Builder mergeFrom(Command other)
    • isInitialized

      public final boolean isInitialized()
      指定者:
      isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilder
      覆盖:
      isInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
    • mergeFrom

      public Command.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      指定者:
      mergeFrom 在接口中 com.google.protobuf.Message.Builder
      指定者:
      mergeFrom 在接口中 com.google.protobuf.MessageLite.Builder
      覆盖:
      mergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<Command.Builder>
      抛出:
      IOException
    • getCommand

      public String getCommand()
       Use command name to distinguish different data type.
       
      string command = 1;
      指定者:
      getCommand 在接口中 CommandOrBuilder
      返回:
      The command.
    • getCommandBytes

      public com.google.protobuf.ByteString getCommandBytes()
       Use command name to distinguish different data type.
       
      string command = 1;
      指定者:
      getCommandBytes 在接口中 CommandOrBuilder
      返回:
      The bytes for command.
    • setCommand

      public Command.Builder setCommand(String value)
       Use command name to distinguish different data type.
       
      string command = 1;
      参数:
      value - The command to set.
      返回:
      This builder for chaining.
    • clearCommand

      public Command.Builder clearCommand()
       Use command name to distinguish different data type.
       
      string command = 1;
      返回:
      This builder for chaining.
    • setCommandBytes

      public Command.Builder setCommandBytes(com.google.protobuf.ByteString value)
       Use command name to distinguish different data type.
       
      string command = 1;
      参数:
      value - The bytes for command to set.
      返回:
      This builder for chaining.
    • getArgsList

      public List<KeyStringValuePair> getArgsList()
       Data content in command.
       The value of content needs to be serialized as string for transmission.
       Basic data type: convert as string.
       The list of basic data: multiple data are split by ",".
       Complex data: serialize string through json.
       
      repeated .skywalking.v3.KeyStringValuePair args = 2;
      指定者:
      getArgsList 在接口中 CommandOrBuilder
    • getArgsCount

      public int getArgsCount()
       Data content in command.
       The value of content needs to be serialized as string for transmission.
       Basic data type: convert as string.
       The list of basic data: multiple data are split by ",".
       Complex data: serialize string through json.
       
      repeated .skywalking.v3.KeyStringValuePair args = 2;
      指定者:
      getArgsCount 在接口中 CommandOrBuilder
    • getArgs

      public KeyStringValuePair getArgs(int index)
       Data content in command.
       The value of content needs to be serialized as string for transmission.
       Basic data type: convert as string.
       The list of basic data: multiple data are split by ",".
       Complex data: serialize string through json.
       
      repeated .skywalking.v3.KeyStringValuePair args = 2;
      指定者:
      getArgs 在接口中 CommandOrBuilder
    • setArgs

      public Command.Builder setArgs(int index, KeyStringValuePair value)
       Data content in command.
       The value of content needs to be serialized as string for transmission.
       Basic data type: convert as string.
       The list of basic data: multiple data are split by ",".
       Complex data: serialize string through json.
       
      repeated .skywalking.v3.KeyStringValuePair args = 2;
    • setArgs

      public Command.Builder setArgs(int index, KeyStringValuePair.Builder builderForValue)
       Data content in command.
       The value of content needs to be serialized as string for transmission.
       Basic data type: convert as string.
       The list of basic data: multiple data are split by ",".
       Complex data: serialize string through json.
       
      repeated .skywalking.v3.KeyStringValuePair args = 2;
    • addArgs

      public Command.Builder addArgs(KeyStringValuePair value)
       Data content in command.
       The value of content needs to be serialized as string for transmission.
       Basic data type: convert as string.
       The list of basic data: multiple data are split by ",".
       Complex data: serialize string through json.
       
      repeated .skywalking.v3.KeyStringValuePair args = 2;
    • addArgs

      public Command.Builder addArgs(int index, KeyStringValuePair value)
       Data content in command.
       The value of content needs to be serialized as string for transmission.
       Basic data type: convert as string.
       The list of basic data: multiple data are split by ",".
       Complex data: serialize string through json.
       
      repeated .skywalking.v3.KeyStringValuePair args = 2;
    • addArgs

      public Command.Builder addArgs(KeyStringValuePair.Builder builderForValue)
       Data content in command.
       The value of content needs to be serialized as string for transmission.
       Basic data type: convert as string.
       The list of basic data: multiple data are split by ",".
       Complex data: serialize string through json.
       
      repeated .skywalking.v3.KeyStringValuePair args = 2;
    • addArgs

      public Command.Builder addArgs(int index, KeyStringValuePair.Builder builderForValue)
       Data content in command.
       The value of content needs to be serialized as string for transmission.
       Basic data type: convert as string.
       The list of basic data: multiple data are split by ",".
       Complex data: serialize string through json.
       
      repeated .skywalking.v3.KeyStringValuePair args = 2;
    • addAllArgs

      public Command.Builder addAllArgs(Iterable<? extends KeyStringValuePair> values)
       Data content in command.
       The value of content needs to be serialized as string for transmission.
       Basic data type: convert as string.
       The list of basic data: multiple data are split by ",".
       Complex data: serialize string through json.
       
      repeated .skywalking.v3.KeyStringValuePair args = 2;
    • clearArgs

      public Command.Builder clearArgs()
       Data content in command.
       The value of content needs to be serialized as string for transmission.
       Basic data type: convert as string.
       The list of basic data: multiple data are split by ",".
       Complex data: serialize string through json.
       
      repeated .skywalking.v3.KeyStringValuePair args = 2;
    • removeArgs

      public Command.Builder removeArgs(int index)
       Data content in command.
       The value of content needs to be serialized as string for transmission.
       Basic data type: convert as string.
       The list of basic data: multiple data are split by ",".
       Complex data: serialize string through json.
       
      repeated .skywalking.v3.KeyStringValuePair args = 2;
    • getArgsBuilder

      public KeyStringValuePair.Builder getArgsBuilder(int index)
       Data content in command.
       The value of content needs to be serialized as string for transmission.
       Basic data type: convert as string.
       The list of basic data: multiple data are split by ",".
       Complex data: serialize string through json.
       
      repeated .skywalking.v3.KeyStringValuePair args = 2;
    • getArgsOrBuilder

      public KeyStringValuePairOrBuilder getArgsOrBuilder(int index)
       Data content in command.
       The value of content needs to be serialized as string for transmission.
       Basic data type: convert as string.
       The list of basic data: multiple data are split by ",".
       Complex data: serialize string through json.
       
      repeated .skywalking.v3.KeyStringValuePair args = 2;
      指定者:
      getArgsOrBuilder 在接口中 CommandOrBuilder
    • getArgsOrBuilderList

      public List<? extends KeyStringValuePairOrBuilder> getArgsOrBuilderList()
       Data content in command.
       The value of content needs to be serialized as string for transmission.
       Basic data type: convert as string.
       The list of basic data: multiple data are split by ",".
       Complex data: serialize string through json.
       
      repeated .skywalking.v3.KeyStringValuePair args = 2;
      指定者:
      getArgsOrBuilderList 在接口中 CommandOrBuilder
    • addArgsBuilder

      public KeyStringValuePair.Builder addArgsBuilder()
       Data content in command.
       The value of content needs to be serialized as string for transmission.
       Basic data type: convert as string.
       The list of basic data: multiple data are split by ",".
       Complex data: serialize string through json.
       
      repeated .skywalking.v3.KeyStringValuePair args = 2;
    • addArgsBuilder

      public KeyStringValuePair.Builder addArgsBuilder(int index)
       Data content in command.
       The value of content needs to be serialized as string for transmission.
       Basic data type: convert as string.
       The list of basic data: multiple data are split by ",".
       Complex data: serialize string through json.
       
      repeated .skywalking.v3.KeyStringValuePair args = 2;
    • getArgsBuilderList

      public List<KeyStringValuePair.Builder> getArgsBuilderList()
       Data content in command.
       The value of content needs to be serialized as string for transmission.
       Basic data type: convert as string.
       The list of basic data: multiple data are split by ",".
       Complex data: serialize string through json.
       
      repeated .skywalking.v3.KeyStringValuePair args = 2;
    • setUnknownFields

      public final Command.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      指定者:
      setUnknownFields 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      setUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
    • mergeUnknownFields

      public final Command.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      指定者:
      mergeUnknownFields 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      mergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>