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.mdProtobuf type
gnmi_ext.MasterArbitration
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<GnmiExt.MasterArbitration.Builder>
public GnmiExt.MasterArbitration.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<GnmiExt.MasterArbitration.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<GnmiExt.MasterArbitration.Builder>
public GnmiExt.MasterArbitration getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public GnmiExt.MasterArbitration build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public GnmiExt.MasterArbitration buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public GnmiExt.MasterArbitration.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<GnmiExt.MasterArbitration.Builder>
public GnmiExt.MasterArbitration.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<GnmiExt.MasterArbitration.Builder>
public GnmiExt.MasterArbitration.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<GnmiExt.MasterArbitration.Builder>
public GnmiExt.MasterArbitration.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<GnmiExt.MasterArbitration.Builder>
public GnmiExt.MasterArbitration.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<GnmiExt.MasterArbitration.Builder>
public GnmiExt.MasterArbitration.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<GnmiExt.MasterArbitration.Builder>
public GnmiExt.MasterArbitration.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<GnmiExt.MasterArbitration.Builder>
public GnmiExt.MasterArbitration.Builder mergeFrom(GnmiExt.MasterArbitration other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<GnmiExt.MasterArbitration.Builder>
public GnmiExt.MasterArbitration.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<GnmiExt.MasterArbitration.Builder>
IOException
public boolean hasRole()
.gnmi_ext.Role role = 1;
hasRole
in interface GnmiExt.MasterArbitrationOrBuilder
public GnmiExt.Role getRole()
.gnmi_ext.Role role = 1;
getRole
in interface GnmiExt.MasterArbitrationOrBuilder
public GnmiExt.MasterArbitration.Builder setRole(GnmiExt.Role value)
.gnmi_ext.Role role = 1;
public GnmiExt.MasterArbitration.Builder setRole(GnmiExt.Role.Builder builderForValue)
.gnmi_ext.Role role = 1;
public GnmiExt.MasterArbitration.Builder mergeRole(GnmiExt.Role value)
.gnmi_ext.Role role = 1;
public GnmiExt.MasterArbitration.Builder clearRole()
.gnmi_ext.Role role = 1;
public GnmiExt.Role.Builder getRoleBuilder()
.gnmi_ext.Role role = 1;
public GnmiExt.RoleOrBuilder getRoleOrBuilder()
.gnmi_ext.Role role = 1;
getRoleOrBuilder
in interface GnmiExt.MasterArbitrationOrBuilder
public boolean hasElectionId()
.gnmi_ext.Uint128 election_id = 2;
hasElectionId
in interface GnmiExt.MasterArbitrationOrBuilder
public GnmiExt.Uint128 getElectionId()
.gnmi_ext.Uint128 election_id = 2;
getElectionId
in interface GnmiExt.MasterArbitrationOrBuilder
public GnmiExt.MasterArbitration.Builder setElectionId(GnmiExt.Uint128 value)
.gnmi_ext.Uint128 election_id = 2;
public GnmiExt.MasterArbitration.Builder setElectionId(GnmiExt.Uint128.Builder builderForValue)
.gnmi_ext.Uint128 election_id = 2;
public GnmiExt.MasterArbitration.Builder mergeElectionId(GnmiExt.Uint128 value)
.gnmi_ext.Uint128 election_id = 2;
public GnmiExt.MasterArbitration.Builder clearElectionId()
.gnmi_ext.Uint128 election_id = 2;
public GnmiExt.Uint128.Builder getElectionIdBuilder()
.gnmi_ext.Uint128 election_id = 2;
public GnmiExt.Uint128OrBuilder getElectionIdOrBuilder()
.gnmi_ext.Uint128 election_id = 2;
getElectionIdOrBuilder
in interface GnmiExt.MasterArbitrationOrBuilder
public final GnmiExt.MasterArbitration.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<GnmiExt.MasterArbitration.Builder>
public final GnmiExt.MasterArbitration.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<GnmiExt.MasterArbitration.Builder>
Copyright © 2021. All rights reserved.