Class GnmiExt.MasterArbitration.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GnmiExt.MasterArbitration.Builder>
-
- org.opennms.features.openconfig.proto.gnmi.GnmiExt.MasterArbitration.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,GnmiExt.MasterArbitrationOrBuilder
- Enclosing class:
- GnmiExt.MasterArbitration
public static final class GnmiExt.MasterArbitration.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GnmiExt.MasterArbitration.Builder> implements GnmiExt.MasterArbitrationOrBuilder
MasterArbitration is used to select the master among multiple gNMI clients with the same Roles. The client with the largest election_id is honored as the master. The document about gNMI master arbitration can be found at https://github.com/openconfig/reference/blob/master/rpc/gnmi/gnmi-master-arbitration.md
Protobuf typegnmi_ext.MasterArbitration
-
-
Method Summary
-
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<GnmiExt.MasterArbitration.Builder>
-
clear
public GnmiExt.MasterArbitration.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<GnmiExt.MasterArbitration.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<GnmiExt.MasterArbitration.Builder>
-
getDefaultInstanceForType
public GnmiExt.MasterArbitration getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GnmiExt.MasterArbitration build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GnmiExt.MasterArbitration buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GnmiExt.MasterArbitration.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<GnmiExt.MasterArbitration.Builder>
-
setField
public GnmiExt.MasterArbitration.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<GnmiExt.MasterArbitration.Builder>
-
clearField
public GnmiExt.MasterArbitration.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<GnmiExt.MasterArbitration.Builder>
-
clearOneof
public GnmiExt.MasterArbitration.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<GnmiExt.MasterArbitration.Builder>
-
setRepeatedField
public GnmiExt.MasterArbitration.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<GnmiExt.MasterArbitration.Builder>
-
addRepeatedField
public GnmiExt.MasterArbitration.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<GnmiExt.MasterArbitration.Builder>
-
mergeFrom
public GnmiExt.MasterArbitration.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GnmiExt.MasterArbitration.Builder>
-
mergeFrom
public GnmiExt.MasterArbitration.Builder mergeFrom(GnmiExt.MasterArbitration other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<GnmiExt.MasterArbitration.Builder>
-
mergeFrom
public GnmiExt.MasterArbitration.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<GnmiExt.MasterArbitration.Builder>
- Throws:
IOException
-
hasRole
public boolean hasRole()
.gnmi_ext.Role role = 1;
- Specified by:
hasRole
in interfaceGnmiExt.MasterArbitrationOrBuilder
-
getRole
public GnmiExt.Role getRole()
.gnmi_ext.Role role = 1;
- Specified by:
getRole
in interfaceGnmiExt.MasterArbitrationOrBuilder
-
setRole
public GnmiExt.MasterArbitration.Builder setRole(GnmiExt.Role value)
.gnmi_ext.Role role = 1;
-
setRole
public GnmiExt.MasterArbitration.Builder setRole(GnmiExt.Role.Builder builderForValue)
.gnmi_ext.Role role = 1;
-
mergeRole
public GnmiExt.MasterArbitration.Builder mergeRole(GnmiExt.Role value)
.gnmi_ext.Role role = 1;
-
clearRole
public GnmiExt.MasterArbitration.Builder clearRole()
.gnmi_ext.Role role = 1;
-
getRoleBuilder
public GnmiExt.Role.Builder getRoleBuilder()
.gnmi_ext.Role role = 1;
-
getRoleOrBuilder
public GnmiExt.RoleOrBuilder getRoleOrBuilder()
.gnmi_ext.Role role = 1;
- Specified by:
getRoleOrBuilder
in interfaceGnmiExt.MasterArbitrationOrBuilder
-
hasElectionId
public boolean hasElectionId()
.gnmi_ext.Uint128 election_id = 2;
- Specified by:
hasElectionId
in interfaceGnmiExt.MasterArbitrationOrBuilder
-
getElectionId
public GnmiExt.Uint128 getElectionId()
.gnmi_ext.Uint128 election_id = 2;
- Specified by:
getElectionId
in interfaceGnmiExt.MasterArbitrationOrBuilder
-
setElectionId
public GnmiExt.MasterArbitration.Builder setElectionId(GnmiExt.Uint128 value)
.gnmi_ext.Uint128 election_id = 2;
-
setElectionId
public GnmiExt.MasterArbitration.Builder setElectionId(GnmiExt.Uint128.Builder builderForValue)
.gnmi_ext.Uint128 election_id = 2;
-
mergeElectionId
public GnmiExt.MasterArbitration.Builder mergeElectionId(GnmiExt.Uint128 value)
.gnmi_ext.Uint128 election_id = 2;
-
clearElectionId
public GnmiExt.MasterArbitration.Builder clearElectionId()
.gnmi_ext.Uint128 election_id = 2;
-
getElectionIdBuilder
public GnmiExt.Uint128.Builder getElectionIdBuilder()
.gnmi_ext.Uint128 election_id = 2;
-
getElectionIdOrBuilder
public GnmiExt.Uint128OrBuilder getElectionIdOrBuilder()
.gnmi_ext.Uint128 election_id = 2;
- Specified by:
getElectionIdOrBuilder
in interfaceGnmiExt.MasterArbitrationOrBuilder
-
setUnknownFields
public final GnmiExt.MasterArbitration.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GnmiExt.MasterArbitration.Builder>
-
mergeUnknownFields
public final GnmiExt.MasterArbitration.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GnmiExt.MasterArbitration.Builder>
-
-