Class Gnmi.TypedValue.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Gnmi.TypedValueOrBuilder
    Enclosing class:
    Gnmi.TypedValue

    public static final class Gnmi.TypedValue.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.TypedValue.Builder>
    implements Gnmi.TypedValueOrBuilder
     TypedValue is used to encode a value being sent between the client and
     target (originated by either entity).
     
    Protobuf type gnmi.TypedValue
    • 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<Gnmi.TypedValue.Builder>
      • clear

        public Gnmi.TypedValue.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<Gnmi.TypedValue.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<Gnmi.TypedValue.Builder>
      • getDefaultInstanceForType

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

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

        public Gnmi.TypedValue buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

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

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

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

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

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

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

        public Gnmi.TypedValue.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<Gnmi.TypedValue.Builder>
      • isInitialized

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

        public Gnmi.TypedValue.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<Gnmi.TypedValue.Builder>
        Throws:
        IOException
      • setStringValBytes

        public Gnmi.TypedValue.Builder setStringValBytes​(com.google.protobuf.ByteString value)
         String value.
         
        string string_val = 1;
      • setUintVal

        public Gnmi.TypedValue.Builder setUintVal​(long value)
         Unsigned integer value.
         
        uint64 uint_val = 3;
      • getBytesVal

        public com.google.protobuf.ByteString getBytesVal()
         Arbitrary byte sequence value.
         
        bytes bytes_val = 5;
        Specified by:
        getBytesVal in interface Gnmi.TypedValueOrBuilder
      • setBytesVal

        public Gnmi.TypedValue.Builder setBytesVal​(com.google.protobuf.ByteString value)
         Arbitrary byte sequence value.
         
        bytes bytes_val = 5;
      • clearBytesVal

        public Gnmi.TypedValue.Builder clearBytesVal()
         Arbitrary byte sequence value.
         
        bytes bytes_val = 5;
      • setFloatVal

        public Gnmi.TypedValue.Builder setFloatVal​(float value)
         Floating point value.
         
        float float_val = 6;
      • clearDecimalVal

        public Gnmi.TypedValue.Builder clearDecimalVal()
         Decimal64 encoded value.
         
        .gnmi.Decimal64 decimal_val = 7;
      • getDecimalValBuilder

        public Gnmi.Decimal64.Builder getDecimalValBuilder()
         Decimal64 encoded value.
         
        .gnmi.Decimal64 decimal_val = 7;
      • clearLeaflistVal

        public Gnmi.TypedValue.Builder clearLeaflistVal()
         Mixed type scalar array value.
         
        .gnmi.ScalarArray leaflist_val = 8;
      • getLeaflistValBuilder

        public Gnmi.ScalarArray.Builder getLeaflistValBuilder()
         Mixed type scalar array value.
         
        .gnmi.ScalarArray leaflist_val = 8;
      • hasAnyVal

        public boolean hasAnyVal()
         protobuf.Any encoded bytes.
         
        .google.protobuf.Any any_val = 9;
        Specified by:
        hasAnyVal in interface Gnmi.TypedValueOrBuilder
      • getAnyVal

        public com.google.protobuf.Any getAnyVal()
         protobuf.Any encoded bytes.
         
        .google.protobuf.Any any_val = 9;
        Specified by:
        getAnyVal in interface Gnmi.TypedValueOrBuilder
      • setAnyVal

        public Gnmi.TypedValue.Builder setAnyVal​(com.google.protobuf.Any value)
         protobuf.Any encoded bytes.
         
        .google.protobuf.Any any_val = 9;
      • setAnyVal

        public Gnmi.TypedValue.Builder setAnyVal​(com.google.protobuf.Any.Builder builderForValue)
         protobuf.Any encoded bytes.
         
        .google.protobuf.Any any_val = 9;
      • mergeAnyVal

        public Gnmi.TypedValue.Builder mergeAnyVal​(com.google.protobuf.Any value)
         protobuf.Any encoded bytes.
         
        .google.protobuf.Any any_val = 9;
      • clearAnyVal

        public Gnmi.TypedValue.Builder clearAnyVal()
         protobuf.Any encoded bytes.
         
        .google.protobuf.Any any_val = 9;
      • getAnyValBuilder

        public com.google.protobuf.Any.Builder getAnyValBuilder()
         protobuf.Any encoded bytes.
         
        .google.protobuf.Any any_val = 9;
      • getAnyValOrBuilder

        public com.google.protobuf.AnyOrBuilder getAnyValOrBuilder()
         protobuf.Any encoded bytes.
         
        .google.protobuf.Any any_val = 9;
        Specified by:
        getAnyValOrBuilder in interface Gnmi.TypedValueOrBuilder
      • getJsonVal

        public com.google.protobuf.ByteString getJsonVal()
         JSON-encoded text.
         
        bytes json_val = 10;
        Specified by:
        getJsonVal in interface Gnmi.TypedValueOrBuilder
      • setJsonVal

        public Gnmi.TypedValue.Builder setJsonVal​(com.google.protobuf.ByteString value)
         JSON-encoded text.
         
        bytes json_val = 10;
      • getJsonIetfVal

        public com.google.protobuf.ByteString getJsonIetfVal()
         JSON-encoded text per RFC7951.
         
        bytes json_ietf_val = 11;
        Specified by:
        getJsonIetfVal in interface Gnmi.TypedValueOrBuilder
      • setJsonIetfVal

        public Gnmi.TypedValue.Builder setJsonIetfVal​(com.google.protobuf.ByteString value)
         JSON-encoded text per RFC7951.
         
        bytes json_ietf_val = 11;
      • clearJsonIetfVal

        public Gnmi.TypedValue.Builder clearJsonIetfVal()
         JSON-encoded text per RFC7951.
         
        bytes json_ietf_val = 11;
      • setAsciiValBytes

        public Gnmi.TypedValue.Builder setAsciiValBytes​(com.google.protobuf.ByteString value)
         Arbitrary ASCII text.
         
        string ascii_val = 12;
      • getProtoBytes

        public com.google.protobuf.ByteString getProtoBytes()
         Protobuf binary encoded bytes. The message type is not included.
         See the specification at
         github.com/openconfig/reference/blob/master/rpc/gnmi/protobuf-vals.md
         for a complete specification.
         
        bytes proto_bytes = 13;
        Specified by:
        getProtoBytes in interface Gnmi.TypedValueOrBuilder
      • setProtoBytes

        public Gnmi.TypedValue.Builder setProtoBytes​(com.google.protobuf.ByteString value)
         Protobuf binary encoded bytes. The message type is not included.
         See the specification at
         github.com/openconfig/reference/blob/master/rpc/gnmi/protobuf-vals.md
         for a complete specification.
         
        bytes proto_bytes = 13;
      • clearProtoBytes

        public Gnmi.TypedValue.Builder clearProtoBytes()
         Protobuf binary encoded bytes. The message type is not included.
         See the specification at
         github.com/openconfig/reference/blob/master/rpc/gnmi/protobuf-vals.md
         for a complete specification.
         
        bytes proto_bytes = 13;
      • setUnknownFields

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

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