Class GetParameterResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<GetParameterResponse.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<GetParameterResponse.Builder>
org.yamcs.sle.api.GetParameterResponse.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, GetParameterResponseOrBuilder
Enclosing class:
GetParameterResponse

public static final class GetParameterResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GetParameterResponse.Builder> implements GetParameterResponseOrBuilder
 The parameter response contains the parameter name and the value.
 The value can be of different types depending on the parameter.
 If the parameter is not available on the provider or if the link
 is not connected, the error field will be populated (if the parameter
 name is not correct, an HTTP 400 'Bad Request' error is returned instead).
 The parameter value returned by the provider may be null. In this case the
 response will contain only the parameter name with no other field populated
 
Protobuf type yamcs.protobuf.sle.GetParameterResponse
  • 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<GetParameterResponse.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<GetParameterResponse.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<GetParameterResponse.Builder>
    • getDefaultInstanceForType

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

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

      public GetParameterResponse 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<GetParameterResponse.Builder>
    • setField

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

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

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

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

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

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

      public GetParameterResponse.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<GetParameterResponse.Builder>
      Throws:
      IOException
    • hasParameterName

      public boolean hasParameterName()
       Parameter name
       
      optional string parameterName = 1;
      Specified by:
      hasParameterName in interface GetParameterResponseOrBuilder
      Returns:
      Whether the parameterName field is set.
    • getParameterName

      public String getParameterName()
       Parameter name
       
      optional string parameterName = 1;
      Specified by:
      getParameterName in interface GetParameterResponseOrBuilder
      Returns:
      The parameterName.
    • getParameterNameBytes

      public com.google.protobuf.ByteString getParameterNameBytes()
       Parameter name
       
      optional string parameterName = 1;
      Specified by:
      getParameterNameBytes in interface GetParameterResponseOrBuilder
      Returns:
      The bytes for parameterName.
    • setParameterName

      public GetParameterResponse.Builder setParameterName(String value)
       Parameter name
       
      optional string parameterName = 1;
      Parameters:
      value - The parameterName to set.
      Returns:
      This builder for chaining.
    • clearParameterName

      public GetParameterResponse.Builder clearParameterName()
       Parameter name
       
      optional string parameterName = 1;
      Returns:
      This builder for chaining.
    • setParameterNameBytes

      public GetParameterResponse.Builder setParameterNameBytes(com.google.protobuf.ByteString value)
       Parameter name
       
      optional string parameterName = 1;
      Parameters:
      value - The bytes for parameterName to set.
      Returns:
      This builder for chaining.
    • hasError

      public boolean hasError()
      optional string error = 2;
      Specified by:
      hasError in interface GetParameterResponseOrBuilder
      Returns:
      Whether the error field is set.
    • getError

      public String getError()
      optional string error = 2;
      Specified by:
      getError in interface GetParameterResponseOrBuilder
      Returns:
      The error.
    • getErrorBytes

      public com.google.protobuf.ByteString getErrorBytes()
      optional string error = 2;
      Specified by:
      getErrorBytes in interface GetParameterResponseOrBuilder
      Returns:
      The bytes for error.
    • setError

      public GetParameterResponse.Builder setError(String value)
      optional string error = 2;
      Parameters:
      value - The error to set.
      Returns:
      This builder for chaining.
    • clearError

      public GetParameterResponse.Builder clearError()
      optional string error = 2;
      Returns:
      This builder for chaining.
    • setErrorBytes

      public GetParameterResponse.Builder setErrorBytes(com.google.protobuf.ByteString value)
      optional string error = 2;
      Parameters:
      value - The bytes for error to set.
      Returns:
      This builder for chaining.
    • hasIntValue

      public boolean hasIntValue()
      optional int32 intValue = 3;
      Specified by:
      hasIntValue in interface GetParameterResponseOrBuilder
      Returns:
      Whether the intValue field is set.
    • getIntValue

      public int getIntValue()
      optional int32 intValue = 3;
      Specified by:
      getIntValue in interface GetParameterResponseOrBuilder
      Returns:
      The intValue.
    • setIntValue

      public GetParameterResponse.Builder setIntValue(int value)
      optional int32 intValue = 3;
      Parameters:
      value - The intValue to set.
      Returns:
      This builder for chaining.
    • clearIntValue

      public GetParameterResponse.Builder clearIntValue()
      optional int32 intValue = 3;
      Returns:
      This builder for chaining.
    • hasLongValue

      public boolean hasLongValue()
      the long value is used for the 32 bits unsigned parameters
       The only parameter of that type is the CLTU minimumDelayTime which is the
       minimum guard time the F-CLTU provider will accept between two consecutive
       CLTUs. It is very likely that the value will be small enough (2147 seconds)
       to fit into the intValue which means that the longValue will most certainly
       never be used.
       
      optional int64 longValue = 4;
      Specified by:
      hasLongValue in interface GetParameterResponseOrBuilder
      Returns:
      Whether the longValue field is set.
    • getLongValue

      public long getLongValue()
      the long value is used for the 32 bits unsigned parameters
       The only parameter of that type is the CLTU minimumDelayTime which is the
       minimum guard time the F-CLTU provider will accept between two consecutive
       CLTUs. It is very likely that the value will be small enough (2147 seconds)
       to fit into the intValue which means that the longValue will most certainly
       never be used.
       
      optional int64 longValue = 4;
      Specified by:
      getLongValue in interface GetParameterResponseOrBuilder
      Returns:
      The longValue.
    • setLongValue

      public GetParameterResponse.Builder setLongValue(long value)
      the long value is used for the 32 bits unsigned parameters
       The only parameter of that type is the CLTU minimumDelayTime which is the
       minimum guard time the F-CLTU provider will accept between two consecutive
       CLTUs. It is very likely that the value will be small enough (2147 seconds)
       to fit into the intValue which means that the longValue will most certainly
       never be used.
       
      optional int64 longValue = 4;
      Parameters:
      value - The longValue to set.
      Returns:
      This builder for chaining.
    • clearLongValue

      public GetParameterResponse.Builder clearLongValue()
      the long value is used for the 32 bits unsigned parameters
       The only parameter of that type is the CLTU minimumDelayTime which is the
       minimum guard time the F-CLTU provider will accept between two consecutive
       CLTUs. It is very likely that the value will be small enough (2147 seconds)
       to fit into the intValue which means that the longValue will most certainly
       never be used.
       
      optional int64 longValue = 4;
      Returns:
      This builder for chaining.
    • hasStringValue

      public boolean hasStringValue()
      optional string stringValue = 5;
      Specified by:
      hasStringValue in interface GetParameterResponseOrBuilder
      Returns:
      Whether the stringValue field is set.
    • getStringValue

      public String getStringValue()
      optional string stringValue = 5;
      Specified by:
      getStringValue in interface GetParameterResponseOrBuilder
      Returns:
      The stringValue.
    • getStringValueBytes

      public com.google.protobuf.ByteString getStringValueBytes()
      optional string stringValue = 5;
      Specified by:
      getStringValueBytes in interface GetParameterResponseOrBuilder
      Returns:
      The bytes for stringValue.
    • setStringValue

      public GetParameterResponse.Builder setStringValue(String value)
      optional string stringValue = 5;
      Parameters:
      value - The stringValue to set.
      Returns:
      This builder for chaining.
    • clearStringValue

      public GetParameterResponse.Builder clearStringValue()
      optional string stringValue = 5;
      Returns:
      This builder for chaining.
    • setStringValueBytes

      public GetParameterResponse.Builder setStringValueBytes(com.google.protobuf.ByteString value)
      optional string stringValue = 5;
      Parameters:
      value - The bytes for stringValue to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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