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 void
buildPartial0
(Identity result) private void
buildPartialOneofs
(Identity result) clear()
Hostname of a connection endpoint.Service account of a connection endpoint.boolean
containsAttributes
(String key) Additional attributes of the identity.Deprecated.int
Additional 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.Descriptor
com.google.protobuf.Descriptors.Descriptor
Hostname of a connection endpoint.com.google.protobuf.ByteString
Hostname of a connection endpoint.Deprecated.Service account of a connection endpoint.com.google.protobuf.ByteString
Service account of a connection endpoint.boolean
Hostname of a connection endpoint.boolean
Service account of a connection endpoint.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
protected com.google.protobuf.MapFieldReflectionAccessor
internalGetMapFieldReflection
(int number) protected com.google.protobuf.MapFieldReflectionAccessor
internalGetMutableMapFieldReflection
(int number) final boolean
mergeFrom
(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, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetMapFieldReflection
in classcom.google.protobuf.GeneratedMessage.Builder<Identity.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflection
in classcom.google.protobuf.GeneratedMessage.Builder<Identity.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<Identity.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.GeneratedMessage.Builder<Identity.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.GeneratedMessage.Builder<Identity.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
buildPartialOneofs
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Identity.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Identity.Builder>
- Throws:
IOException
-
getIdentityOneofCase
- Specified by:
getIdentityOneofCase
in interfaceIdentityOrBuilder
-
clearIdentityOneof
-
hasServiceAccount
public boolean hasServiceAccount()Service account of a connection endpoint.
string service_account = 1;
- Specified by:
hasServiceAccount
in interfaceIdentityOrBuilder
- Returns:
- Whether the serviceAccount field is set.
-
getServiceAccount
Service account of a connection endpoint.
string service_account = 1;
- Specified by:
getServiceAccount
in interfaceIdentityOrBuilder
- Returns:
- The serviceAccount.
-
getServiceAccountBytes
public com.google.protobuf.ByteString getServiceAccountBytes()Service account of a connection endpoint.
string service_account = 1;
- Specified by:
getServiceAccountBytes
in 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:
hasHostname
in interfaceIdentityOrBuilder
- Returns:
- Whether the hostname field is set.
-
getHostname
Hostname of a connection endpoint.
string hostname = 2;
- Specified by:
getHostname
in interfaceIdentityOrBuilder
- Returns:
- The hostname.
-
getHostnameBytes
public com.google.protobuf.ByteString getHostnameBytes()Hostname of a connection endpoint.
string hostname = 2;
- Specified by:
getHostnameBytes
in 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:IdentityOrBuilder
Additional attributes of the identity.
map<string, string> attributes = 3;
- Specified by:
getAttributesCount
in interfaceIdentityOrBuilder
-
containsAttributes
Additional attributes of the identity.
map<string, string> attributes = 3;
- Specified by:
containsAttributes
in interfaceIdentityOrBuilder
-
getAttributes
Deprecated.UsegetAttributesMap()
instead.- Specified by:
getAttributes
in interfaceIdentityOrBuilder
-
getAttributesMap
Additional attributes of the identity.
map<string, string> attributes = 3;
- Specified by:
getAttributesMap
in interfaceIdentityOrBuilder
-
getAttributesOrDefault
Additional attributes of the identity.
map<string, string> attributes = 3;
- Specified by:
getAttributesOrDefault
in interfaceIdentityOrBuilder
-
getAttributesOrThrow
Additional attributes of the identity.
map<string, string> attributes = 3;
- Specified by:
getAttributesOrThrow
in 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;
-