Class Gnmi.ModelData.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ModelData.Builder>
-
- org.opennms.features.openconfig.proto.gnmi.Gnmi.ModelData.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,Gnmi.ModelDataOrBuilder
- Enclosing class:
- Gnmi.ModelData
public static final class Gnmi.ModelData.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ModelData.Builder> implements Gnmi.ModelDataOrBuilder
ModelData is used to describe a set of schema modules. It can be used in a CapabilityResponse where a target reports the set of modules that it supports, and within the SubscribeRequest and GetRequest messages to specify the set of models from which data tree elements should be reported. Reference: gNMI Specification Section 3.2.3
Protobuf typegnmi.ModelData
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Gnmi.ModelData.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Gnmi.ModelData
build()
Gnmi.ModelData
buildPartial()
Gnmi.ModelData.Builder
clear()
Gnmi.ModelData.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Gnmi.ModelData.Builder
clearName()
Name of the model.Gnmi.ModelData.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Gnmi.ModelData.Builder
clearOrganization()
Organization publishing the model.Gnmi.ModelData.Builder
clearVersion()
Semantic version of the model.Gnmi.ModelData.Builder
clone()
Gnmi.ModelData
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getName()
Name of the model.com.google.protobuf.ByteString
getNameBytes()
Name of the model.String
getOrganization()
Organization publishing the model.com.google.protobuf.ByteString
getOrganizationBytes()
Organization publishing the model.String
getVersion()
Semantic version of the model.com.google.protobuf.ByteString
getVersionBytes()
Semantic version of the model.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Gnmi.ModelData.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Gnmi.ModelData.Builder
mergeFrom(com.google.protobuf.Message other)
Gnmi.ModelData.Builder
mergeFrom(Gnmi.ModelData other)
Gnmi.ModelData.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Gnmi.ModelData.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Gnmi.ModelData.Builder
setName(String value)
Name of the model.Gnmi.ModelData.Builder
setNameBytes(com.google.protobuf.ByteString value)
Name of the model.Gnmi.ModelData.Builder
setOrganization(String value)
Organization publishing the model.Gnmi.ModelData.Builder
setOrganizationBytes(com.google.protobuf.ByteString value)
Organization publishing the model.Gnmi.ModelData.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Gnmi.ModelData.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Gnmi.ModelData.Builder
setVersion(String value)
Semantic version of the model.Gnmi.ModelData.Builder
setVersionBytes(com.google.protobuf.ByteString value)
Semantic version of the model.-
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, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ModelData.Builder>
-
clear
public Gnmi.ModelData.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ModelData.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ModelData.Builder>
-
getDefaultInstanceForType
public Gnmi.ModelData getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Gnmi.ModelData build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Gnmi.ModelData buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Gnmi.ModelData.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ModelData.Builder>
-
setField
public Gnmi.ModelData.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ModelData.Builder>
-
clearField
public Gnmi.ModelData.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ModelData.Builder>
-
clearOneof
public Gnmi.ModelData.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ModelData.Builder>
-
setRepeatedField
public Gnmi.ModelData.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ModelData.Builder>
-
addRepeatedField
public Gnmi.ModelData.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ModelData.Builder>
-
mergeFrom
public Gnmi.ModelData.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Gnmi.ModelData.Builder>
-
mergeFrom
public Gnmi.ModelData.Builder mergeFrom(Gnmi.ModelData other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ModelData.Builder>
-
mergeFrom
public Gnmi.ModelData.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Gnmi.ModelData.Builder>
- Throws:
IOException
-
getName
public String getName()
Name of the model.
string name = 1;
- Specified by:
getName
in interfaceGnmi.ModelDataOrBuilder
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Name of the model.
string name = 1;
- Specified by:
getNameBytes
in interfaceGnmi.ModelDataOrBuilder
-
setName
public Gnmi.ModelData.Builder setName(String value)
Name of the model.
string name = 1;
-
clearName
public Gnmi.ModelData.Builder clearName()
Name of the model.
string name = 1;
-
setNameBytes
public Gnmi.ModelData.Builder setNameBytes(com.google.protobuf.ByteString value)
Name of the model.
string name = 1;
-
getOrganization
public String getOrganization()
Organization publishing the model.
string organization = 2;
- Specified by:
getOrganization
in interfaceGnmi.ModelDataOrBuilder
-
getOrganizationBytes
public com.google.protobuf.ByteString getOrganizationBytes()
Organization publishing the model.
string organization = 2;
- Specified by:
getOrganizationBytes
in interfaceGnmi.ModelDataOrBuilder
-
setOrganization
public Gnmi.ModelData.Builder setOrganization(String value)
Organization publishing the model.
string organization = 2;
-
clearOrganization
public Gnmi.ModelData.Builder clearOrganization()
Organization publishing the model.
string organization = 2;
-
setOrganizationBytes
public Gnmi.ModelData.Builder setOrganizationBytes(com.google.protobuf.ByteString value)
Organization publishing the model.
string organization = 2;
-
getVersion
public String getVersion()
Semantic version of the model.
string version = 3;
- Specified by:
getVersion
in interfaceGnmi.ModelDataOrBuilder
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()
Semantic version of the model.
string version = 3;
- Specified by:
getVersionBytes
in interfaceGnmi.ModelDataOrBuilder
-
setVersion
public Gnmi.ModelData.Builder setVersion(String value)
Semantic version of the model.
string version = 3;
-
clearVersion
public Gnmi.ModelData.Builder clearVersion()
Semantic version of the model.
string version = 3;
-
setVersionBytes
public Gnmi.ModelData.Builder setVersionBytes(com.google.protobuf.ByteString value)
Semantic version of the model.
string version = 3;
-
setUnknownFields
public final Gnmi.ModelData.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ModelData.Builder>
-
mergeUnknownFields
public final Gnmi.ModelData.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ModelData.Builder>
-
-