Class 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
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,CommandOrBuilder
- Enclosing class:
- 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-
Method Summary
Modifier and TypeMethodDescriptionaddAllArgs(Iterable<? extends KeyStringValuePair> values) Data content in command.addArgs(int index, KeyStringValuePair value) Data content in command.addArgs(int index, KeyStringValuePair.Builder builderForValue) Data content in command.addArgs(KeyStringValuePair value) Data content in command.addArgs(KeyStringValuePair.Builder builderForValue) Data content in command.Data content in command.addArgsBuilder(int index) Data content in command.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Data content in command.Use command name to distinguish different data type.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()getArgs(int index) Data content in command.getArgsBuilder(int index) Data content in command.Data content in command.intData content in command.Data content in command.getArgsOrBuilder(int index) Data content in command.List<? extends KeyStringValuePairOrBuilder>Data content in command.Use command name to distinguish different data type.com.google.protobuf.ByteStringUse command name to distinguish different data type.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final Command.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeArgs(int index) Data content in command.setArgs(int index, KeyStringValuePair value) Data content in command.setArgs(int index, KeyStringValuePair.Builder builderForValue) Data content in command.setCommand(String value) Use command name to distinguish different data type.setCommandBytes(com.google.protobuf.ByteString value) Use command name to distinguish different data type.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final Command.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
-
setField
public Command.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
-
setRepeatedField
public Command.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
-
addRepeatedField
public Command.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Command.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
-
mergeFrom
public Command.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Command.Builder>- Throws:
IOException
-
getCommand
Use command name to distinguish different data type.
string command = 1;- Specified by:
getCommandin interfaceCommandOrBuilder- Returns:
- The command.
-
getCommandBytes
public com.google.protobuf.ByteString getCommandBytes()Use command name to distinguish different data type.
string command = 1;- Specified by:
getCommandBytesin interfaceCommandOrBuilder- Returns:
- The bytes for command.
-
setCommand
Use command name to distinguish different data type.
string command = 1;- Parameters:
value- The command to set.- Returns:
- This builder for chaining.
-
clearCommand
Use command name to distinguish different data type.
string command = 1;- Returns:
- This builder for chaining.
-
setCommandBytes
Use command name to distinguish different data type.
string command = 1;- Parameters:
value- The bytes for command to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getArgsListin interfaceCommandOrBuilder
-
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;- Specified by:
getArgsCountin interfaceCommandOrBuilder
-
getArgs
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;- Specified by:
getArgsin interfaceCommandOrBuilder
-
setArgs
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
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
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
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
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
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
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
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
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
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
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;- Specified by:
getArgsOrBuilderin interfaceCommandOrBuilder
-
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;- Specified by:
getArgsOrBuilderListin interfaceCommandOrBuilder
-
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
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
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
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Command.Builder>
-