Package xg.md
Class ProtocolMetadata.protocolIdentity.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ProtocolMetadata.protocolIdentity.Builder>
xg.md.ProtocolMetadata.protocolIdentity.Builder
- All Implemented Interfaces:
Message.Builder,MessageLite.Builder,MessageLiteOrBuilder,MessageOrBuilder,Cloneable,ProtocolMetadata.protocolIdentityOrBuilder
- Enclosing class:
- ProtocolMetadata.protocolIdentity
public static final class ProtocolMetadata.protocolIdentity.Builder
extends GeneratedMessageV3.Builder<ProtocolMetadata.protocolIdentity.Builder>
implements ProtocolMetadata.protocolIdentityOrBuilder
Represents a protocol identityProtobuf type
xg.md.protocolIdentity-
Method Summary
Modifier and TypeMethodDescriptionbuild()Constructs the message based on the state of the Builder.LikeMessageLite.Builder.build(), but does not throw an exception if the message is missing required fields.clear()Called by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.anonymous identitycert fingerprint identityhostname identityThe type of the identityanonymous identityanonymous identityanonymous identitycert fingerprint identitycert fingerprint identitycert fingerprint identityGet an instance of the type with no fields set.static final Descriptors.DescriptorGet the message's type's descriptor.hostname identityhostname identityhostname identitygetType()The type of the identityintThe type of the identitybooleananonymous identitybooleancert fingerprint identitybooleanhostname identityprotected GeneratedMessageV3.FieldAccessorTableGet the FieldAccessorTable for this type.final booleanReturns true if all required fields in the message and all embedded messages are set, false otherwise.anonymous identitycert fingerprint identitymergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) LikeMessageLite.Builder.mergeFrom(CodedInputStream), but also parses extensions.Mergeotherinto the message being built.hostname identitymergeUnknownFields(UnknownFieldSet unknownFields) Merge some unknown fields into theUnknownFieldSetfor this message.anonymous identityanonymous identitycert fingerprint identitysetCertFingerprintIdentity(ProtocolMetadata.protocolIdentity.certFingerprintIdentity.Builder builderForValue) cert fingerprint identityhostname identityhostname identityThe type of the identitysetTypeValue(int value) The type of the identitysetUnknownFields(UnknownFieldSet unknownFields) Set theUnknownFieldSetfor this message.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
Description copied from class:GeneratedMessageV3.BuilderGet the FieldAccessorTable for this type. We can't have the message class pass this in to the constructor because of bootstrapping trouble with DescriptorProtos.- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<ProtocolMetadata.protocolIdentity.Builder>
-
clear
Description copied from class:GeneratedMessageV3.BuilderCalled by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<ProtocolMetadata.protocolIdentity.Builder>
-
getDescriptorForType
Description copied from interface:Message.BuilderGet the message's type's descriptor. SeeMessageOrBuilder.getDescriptorForType().- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<ProtocolMetadata.protocolIdentity.Builder>
-
getDefaultInstanceForType
Description copied from interface:MessageLiteOrBuilderGet an instance of the type with no fields set. Because no fields are set, all getters for singular fields will return default values and repeated fields will appear empty. This may or may not be a singleton. This differs from thegetDefaultInstance()method of generated message classes in that this method is an abstract method of theMessageLiteinterface whereasgetDefaultInstance()is a static method of a specific class. They return the same thing.- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
Description copied from interface:MessageLite.BuilderConstructs the message based on the state of the Builder. Subsequent changes to the Builder will not affect the returned message.- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
Description copied from interface:MessageLite.BuilderLikeMessageLite.Builder.build(), but does not throw an exception if the message is missing required fields. Instead, a partial message is returned. Subsequent changes to the Builder will not affect the returned message.- Specified by:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
mergeFrom
Description copied from interface:Message.BuilderMergeotherinto the message being built.othermust have the exact same type asthis(i.e.getDescriptorForType() == other.getDescriptorForType()).Merging occurs as follows. For each field:
* For singular primitive fields, if the field is set inother, thenother's value overwrites the value in this message.
* For singular message fields, if the field is set inother, it is merged into the corresponding sub-message of this message using the same merging rules.
* For repeated fields, the elements inotherare concatenated with the elements in this message.
* For oneof groups, if the other message has one of the fields set, the group of this message is cleared and replaced by the field of the other message, so that the oneof constraint is preserved.This is equivalent to the
Message::MergeFrommethod in C++.- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<ProtocolMetadata.protocolIdentity.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()Description copied from interface:MessageLiteOrBuilderReturns true if all required fields in the message and all embedded messages are set, false otherwise.- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<ProtocolMetadata.protocolIdentity.Builder>
-
mergeFrom
public ProtocolMetadata.protocolIdentity.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException Description copied from interface:MessageLite.BuilderLikeMessageLite.Builder.mergeFrom(CodedInputStream), but also parses extensions. The extensions that you want to be able to parse must be registered inextensionRegistry. Extensions not in the registry will be treated as unknown fields.- Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<ProtocolMetadata.protocolIdentity.Builder>- Throws:
InvalidProtocolBufferException- the bytes read are not syntactically correct according to the protobuf wire format specification. The data is corrupt, incomplete, or was never a protobuf in the first place.IOException- an I/O error reading from the stream
-
getIdentityCase
- Specified by:
getIdentityCasein interfaceProtocolMetadata.protocolIdentityOrBuilder
-
clearIdentity
-
getTypeValue
public int getTypeValue()The type of the identity
.xg.md.protocolIdentity.identityType type = 1;- Specified by:
getTypeValuein interfaceProtocolMetadata.protocolIdentityOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
The type of the identity
.xg.md.protocolIdentity.identityType type = 1;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
The type of the identity
.xg.md.protocolIdentity.identityType type = 1;- Specified by:
getTypein interfaceProtocolMetadata.protocolIdentityOrBuilder- Returns:
- The type.
-
setType
public ProtocolMetadata.protocolIdentity.Builder setType(ProtocolMetadata.protocolIdentity.identityType value) The type of the identity
.xg.md.protocolIdentity.identityType type = 1;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
The type of the identity
.xg.md.protocolIdentity.identityType type = 1;- Returns:
- This builder for chaining.
-
hasHostnameIdentity
public boolean hasHostnameIdentity()hostname identity
.xg.md.protocolIdentity.hostnameIdentity hostname_identity = 11;- Specified by:
hasHostnameIdentityin interfaceProtocolMetadata.protocolIdentityOrBuilder- Returns:
- Whether the hostnameIdentity field is set.
-
getHostnameIdentity
hostname identity
.xg.md.protocolIdentity.hostnameIdentity hostname_identity = 11;- Specified by:
getHostnameIdentityin interfaceProtocolMetadata.protocolIdentityOrBuilder- Returns:
- The hostnameIdentity.
-
setHostnameIdentity
public ProtocolMetadata.protocolIdentity.Builder setHostnameIdentity(ProtocolMetadata.protocolIdentity.hostnameIdentity value) hostname identity
.xg.md.protocolIdentity.hostnameIdentity hostname_identity = 11; -
setHostnameIdentity
public ProtocolMetadata.protocolIdentity.Builder setHostnameIdentity(ProtocolMetadata.protocolIdentity.hostnameIdentity.Builder builderForValue) hostname identity
.xg.md.protocolIdentity.hostnameIdentity hostname_identity = 11; -
mergeHostnameIdentity
public ProtocolMetadata.protocolIdentity.Builder mergeHostnameIdentity(ProtocolMetadata.protocolIdentity.hostnameIdentity value) hostname identity
.xg.md.protocolIdentity.hostnameIdentity hostname_identity = 11; -
clearHostnameIdentity
hostname identity
.xg.md.protocolIdentity.hostnameIdentity hostname_identity = 11; -
getHostnameIdentityBuilder
hostname identity
.xg.md.protocolIdentity.hostnameIdentity hostname_identity = 11; -
getHostnameIdentityOrBuilder
hostname identity
.xg.md.protocolIdentity.hostnameIdentity hostname_identity = 11;- Specified by:
getHostnameIdentityOrBuilderin interfaceProtocolMetadata.protocolIdentityOrBuilder
-
hasAnonymousIdentity
public boolean hasAnonymousIdentity()anonymous identity
.xg.md.protocolIdentity.anonymousIdentity anonymous_identity = 12;- Specified by:
hasAnonymousIdentityin interfaceProtocolMetadata.protocolIdentityOrBuilder- Returns:
- Whether the anonymousIdentity field is set.
-
getAnonymousIdentity
anonymous identity
.xg.md.protocolIdentity.anonymousIdentity anonymous_identity = 12;- Specified by:
getAnonymousIdentityin interfaceProtocolMetadata.protocolIdentityOrBuilder- Returns:
- The anonymousIdentity.
-
setAnonymousIdentity
public ProtocolMetadata.protocolIdentity.Builder setAnonymousIdentity(ProtocolMetadata.protocolIdentity.anonymousIdentity value) anonymous identity
.xg.md.protocolIdentity.anonymousIdentity anonymous_identity = 12; -
setAnonymousIdentity
public ProtocolMetadata.protocolIdentity.Builder setAnonymousIdentity(ProtocolMetadata.protocolIdentity.anonymousIdentity.Builder builderForValue) anonymous identity
.xg.md.protocolIdentity.anonymousIdentity anonymous_identity = 12; -
mergeAnonymousIdentity
public ProtocolMetadata.protocolIdentity.Builder mergeAnonymousIdentity(ProtocolMetadata.protocolIdentity.anonymousIdentity value) anonymous identity
.xg.md.protocolIdentity.anonymousIdentity anonymous_identity = 12; -
clearAnonymousIdentity
anonymous identity
.xg.md.protocolIdentity.anonymousIdentity anonymous_identity = 12; -
getAnonymousIdentityBuilder
anonymous identity
.xg.md.protocolIdentity.anonymousIdentity anonymous_identity = 12; -
getAnonymousIdentityOrBuilder
anonymous identity
.xg.md.protocolIdentity.anonymousIdentity anonymous_identity = 12;- Specified by:
getAnonymousIdentityOrBuilderin interfaceProtocolMetadata.protocolIdentityOrBuilder
-
hasCertFingerprintIdentity
public boolean hasCertFingerprintIdentity()cert fingerprint identity
.xg.md.protocolIdentity.certFingerprintIdentity cert_fingerprint_identity = 13;- Specified by:
hasCertFingerprintIdentityin interfaceProtocolMetadata.protocolIdentityOrBuilder- Returns:
- Whether the certFingerprintIdentity field is set.
-
getCertFingerprintIdentity
cert fingerprint identity
.xg.md.protocolIdentity.certFingerprintIdentity cert_fingerprint_identity = 13;- Specified by:
getCertFingerprintIdentityin interfaceProtocolMetadata.protocolIdentityOrBuilder- Returns:
- The certFingerprintIdentity.
-
setCertFingerprintIdentity
public ProtocolMetadata.protocolIdentity.Builder setCertFingerprintIdentity(ProtocolMetadata.protocolIdentity.certFingerprintIdentity value) cert fingerprint identity
.xg.md.protocolIdentity.certFingerprintIdentity cert_fingerprint_identity = 13; -
setCertFingerprintIdentity
public ProtocolMetadata.protocolIdentity.Builder setCertFingerprintIdentity(ProtocolMetadata.protocolIdentity.certFingerprintIdentity.Builder builderForValue) cert fingerprint identity
.xg.md.protocolIdentity.certFingerprintIdentity cert_fingerprint_identity = 13; -
mergeCertFingerprintIdentity
public ProtocolMetadata.protocolIdentity.Builder mergeCertFingerprintIdentity(ProtocolMetadata.protocolIdentity.certFingerprintIdentity value) cert fingerprint identity
.xg.md.protocolIdentity.certFingerprintIdentity cert_fingerprint_identity = 13; -
clearCertFingerprintIdentity
cert fingerprint identity
.xg.md.protocolIdentity.certFingerprintIdentity cert_fingerprint_identity = 13; -
getCertFingerprintIdentityBuilder
public ProtocolMetadata.protocolIdentity.certFingerprintIdentity.Builder getCertFingerprintIdentityBuilder()cert fingerprint identity
.xg.md.protocolIdentity.certFingerprintIdentity cert_fingerprint_identity = 13; -
getCertFingerprintIdentityOrBuilder
public ProtocolMetadata.protocolIdentity.certFingerprintIdentityOrBuilder getCertFingerprintIdentityOrBuilder()cert fingerprint identity
.xg.md.protocolIdentity.certFingerprintIdentity cert_fingerprint_identity = 13;- Specified by:
getCertFingerprintIdentityOrBuilderin interfaceProtocolMetadata.protocolIdentityOrBuilder
-
setUnknownFields
public final ProtocolMetadata.protocolIdentity.Builder setUnknownFields(UnknownFieldSet unknownFields) Description copied from interface:Message.BuilderSet theUnknownFieldSetfor this message.- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<ProtocolMetadata.protocolIdentity.Builder>
-
mergeUnknownFields
public final ProtocolMetadata.protocolIdentity.Builder mergeUnknownFields(UnknownFieldSet unknownFields) Description copied from interface:Message.BuilderMerge some unknown fields into theUnknownFieldSetfor this message.- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<ProtocolMetadata.protocolIdentity.Builder>
-