Package io.grpc.alts.internal
Class Identity.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Identity.Builder>
com.google.protobuf.GeneratedMessage.Builder<Identity.Builder>
io.grpc.alts.internal.Identity.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,IdentityOrBuilder,Cloneable
- Enclosing class:
Identity
public static final class Identity.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Identity.Builder>
implements IdentityOrBuilder
Protobuf type
grpc.gcp.Identity-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()private voidbuildPartial0(Identity result) private voidbuildPartialOneofs(Identity result) clear()Hostname of a connection endpoint.Service account of a connection endpoint.booleancontainsAttributes(String key) Additional attributes of the identity.Deprecated.intAdditional attributes of the identity.Additional attributes of the identity.getAttributesOrDefault(String key, String defaultValue) Additional attributes of the identity.Additional attributes of the identity.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorHostname of a connection endpoint.com.google.protobuf.ByteStringHostname of a connection endpoint.Deprecated.Service account of a connection endpoint.com.google.protobuf.ByteStringService account of a connection endpoint.booleanHostname of a connection endpoint.booleanService account of a connection endpoint.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllAttributes(Map<String, String> values) Additional attributes of the identity.putAttributes(String key, String value) Additional attributes of the identity.removeAttributes(String key) Additional attributes of the identity.setHostname(String value) Hostname of a connection endpoint.setHostnameBytes(com.google.protobuf.ByteString value) Hostname of a connection endpoint.setServiceAccount(String value) Service account of a connection endpoint.setServiceAccountBytes(com.google.protobuf.ByteString value) Service account of a connection endpoint.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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
-
Field Details
-
identityOneofCase_
private int identityOneofCase_ -
identityOneof_
-
bitField0_
private int bitField0_ -
attributes_
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Identity.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Identity.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Identity.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Identity.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Identity.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
buildPartialOneofs
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Identity.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Identity.Builder>
-
mergeFrom
public Identity.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Identity.Builder>- Throws:
IOException
-
getIdentityOneofCase
- Specified by:
getIdentityOneofCasein interfaceIdentityOrBuilder
-
clearIdentityOneof
-
hasServiceAccount
public boolean hasServiceAccount()Service account of a connection endpoint.
string service_account = 1;- Specified by:
hasServiceAccountin interfaceIdentityOrBuilder- Returns:
- Whether the serviceAccount field is set.
-
getServiceAccount
Service account of a connection endpoint.
string service_account = 1;- Specified by:
getServiceAccountin interfaceIdentityOrBuilder- Returns:
- The serviceAccount.
-
getServiceAccountBytes
public com.google.protobuf.ByteString getServiceAccountBytes()Service account of a connection endpoint.
string service_account = 1;- Specified by:
getServiceAccountBytesin interfaceIdentityOrBuilder- Returns:
- The bytes for serviceAccount.
-
setServiceAccount
Service account of a connection endpoint.
string service_account = 1;- Parameters:
value- The serviceAccount to set.- Returns:
- This builder for chaining.
-
clearServiceAccount
Service account of a connection endpoint.
string service_account = 1;- Returns:
- This builder for chaining.
-
setServiceAccountBytes
Service account of a connection endpoint.
string service_account = 1;- Parameters:
value- The bytes for serviceAccount to set.- Returns:
- This builder for chaining.
-
hasHostname
public boolean hasHostname()Hostname of a connection endpoint.
string hostname = 2;- Specified by:
hasHostnamein interfaceIdentityOrBuilder- Returns:
- Whether the hostname field is set.
-
getHostname
Hostname of a connection endpoint.
string hostname = 2;- Specified by:
getHostnamein interfaceIdentityOrBuilder- Returns:
- The hostname.
-
getHostnameBytes
public com.google.protobuf.ByteString getHostnameBytes()Hostname of a connection endpoint.
string hostname = 2;- Specified by:
getHostnameBytesin interfaceIdentityOrBuilder- Returns:
- The bytes for hostname.
-
setHostname
Hostname of a connection endpoint.
string hostname = 2;- Parameters:
value- The hostname to set.- Returns:
- This builder for chaining.
-
clearHostname
Hostname of a connection endpoint.
string hostname = 2;- Returns:
- This builder for chaining.
-
setHostnameBytes
Hostname of a connection endpoint.
string hostname = 2;- Parameters:
value- The bytes for hostname to set.- Returns:
- This builder for chaining.
-
internalGetAttributes
-
internalGetMutableAttributes
-
getAttributesCount
public int getAttributesCount()Description copied from interface:IdentityOrBuilderAdditional attributes of the identity.
map<string, string> attributes = 3;- Specified by:
getAttributesCountin interfaceIdentityOrBuilder
-
containsAttributes
Additional attributes of the identity.
map<string, string> attributes = 3;- Specified by:
containsAttributesin interfaceIdentityOrBuilder
-
getAttributes
Deprecated.UsegetAttributesMap()instead.- Specified by:
getAttributesin interfaceIdentityOrBuilder
-
getAttributesMap
Additional attributes of the identity.
map<string, string> attributes = 3;- Specified by:
getAttributesMapin interfaceIdentityOrBuilder
-
getAttributesOrDefault
Additional attributes of the identity.
map<string, string> attributes = 3;- Specified by:
getAttributesOrDefaultin interfaceIdentityOrBuilder
-
getAttributesOrThrow
Additional attributes of the identity.
map<string, string> attributes = 3;- Specified by:
getAttributesOrThrowin interfaceIdentityOrBuilder
-
clearAttributes
-
removeAttributes
Additional attributes of the identity.
map<string, string> attributes = 3; -
getMutableAttributes
Deprecated.Use alternate mutation accessors instead. -
putAttributes
Additional attributes of the identity.
map<string, string> attributes = 3; -
putAllAttributes
Additional attributes of the identity.
map<string, string> attributes = 3;
-