Class ActivityDefinition.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<ActivityDefinition.Builder>
org.yamcs.activities.protobuf.ActivityDefinition.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, ActivityDefinitionOrBuilder
Enclosing class:
ActivityDefinition

public static final class ActivityDefinition.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ActivityDefinition.Builder> implements ActivityDefinitionOrBuilder
Protobuf type ActivityDefinition
  • Method Details

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

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

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

      public ActivityDefinition buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<ActivityDefinition.Builder>
    • setField

      public ActivityDefinition.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<ActivityDefinition.Builder>
    • clearField

      public ActivityDefinition.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<ActivityDefinition.Builder>
    • clearOneof

      public ActivityDefinition.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<ActivityDefinition.Builder>
    • setRepeatedField

      public ActivityDefinition.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<ActivityDefinition.Builder>
    • addRepeatedField

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

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

    • isInitialized

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

      public ActivityDefinition.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<ActivityDefinition.Builder>
      Throws:
      IOException
    • hasType

      public boolean hasType()
       Activity type
       
      optional string type = 1;
      Specified by:
      hasType in interface ActivityDefinitionOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public String getType()
       Activity type
       
      optional string type = 1;
      Specified by:
      getType in interface ActivityDefinitionOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       Activity type
       
      optional string type = 1;
      Specified by:
      getTypeBytes in interface ActivityDefinitionOrBuilder
      Returns:
      The bytes for type.
    • setType

      public ActivityDefinition.Builder setType(String value)
       Activity type
       
      optional string type = 1;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public ActivityDefinition.Builder clearType()
       Activity type
       
      optional string type = 1;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public ActivityDefinition.Builder setTypeBytes(com.google.protobuf.ByteString value)
       Activity type
       
      optional string type = 1;
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • hasArgs

      public boolean hasArgs()
       Activity arguments. The expected arguments
       are different for each activity type
       
      optional .google.protobuf.Struct args = 2;
      Specified by:
      hasArgs in interface ActivityDefinitionOrBuilder
      Returns:
      Whether the args field is set.
    • getArgs

      public com.google.protobuf.Struct getArgs()
       Activity arguments. The expected arguments
       are different for each activity type
       
      optional .google.protobuf.Struct args = 2;
      Specified by:
      getArgs in interface ActivityDefinitionOrBuilder
      Returns:
      The args.
    • setArgs

      public ActivityDefinition.Builder setArgs(com.google.protobuf.Struct value)
       Activity arguments. The expected arguments
       are different for each activity type
       
      optional .google.protobuf.Struct args = 2;
    • setArgs

      public ActivityDefinition.Builder setArgs(com.google.protobuf.Struct.Builder builderForValue)
       Activity arguments. The expected arguments
       are different for each activity type
       
      optional .google.protobuf.Struct args = 2;
    • mergeArgs

      public ActivityDefinition.Builder mergeArgs(com.google.protobuf.Struct value)
       Activity arguments. The expected arguments
       are different for each activity type
       
      optional .google.protobuf.Struct args = 2;
    • clearArgs

      public ActivityDefinition.Builder clearArgs()
       Activity arguments. The expected arguments
       are different for each activity type
       
      optional .google.protobuf.Struct args = 2;
    • getArgsBuilder

      public com.google.protobuf.Struct.Builder getArgsBuilder()
       Activity arguments. The expected arguments
       are different for each activity type
       
      optional .google.protobuf.Struct args = 2;
    • getArgsOrBuilder

      public com.google.protobuf.StructOrBuilder getArgsOrBuilder()
       Activity arguments. The expected arguments
       are different for each activity type
       
      optional .google.protobuf.Struct args = 2;
      Specified by:
      getArgsOrBuilder in interface ActivityDefinitionOrBuilder
    • setUnknownFields

      public final ActivityDefinition.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<ActivityDefinition.Builder>
    • mergeUnknownFields

      public final ActivityDefinition.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<ActivityDefinition.Builder>