Package com.google.cloud.iot.v1
Class DeviceCredential.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<DeviceCredential.Builder>
-
- com.google.cloud.iot.v1.DeviceCredential.Builder
-
- All Implemented Interfaces:
DeviceCredentialOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DeviceCredential
public static final class DeviceCredential.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DeviceCredential.Builder> implements DeviceCredentialOrBuilder
A server-stored device credential used for authentication.
Protobuf typegoogle.cloud.iot.v1.DeviceCredential
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DeviceCredential.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DeviceCredentialbuild()DeviceCredentialbuildPartial()DeviceCredential.Builderclear()DeviceCredential.BuilderclearCredential()DeviceCredential.BuilderclearExpirationTime()[Optional] The time at which this credential becomes invalid.DeviceCredential.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)DeviceCredential.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)DeviceCredential.BuilderclearPublicKey()A public key used to verify the signature of JSON Web Tokens (JWTs).DeviceCredential.Builderclone()DeviceCredential.CredentialCasegetCredentialCase()DeviceCredentialgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.TimestampgetExpirationTime()[Optional] The time at which this credential becomes invalid.com.google.protobuf.Timestamp.BuildergetExpirationTimeBuilder()[Optional] The time at which this credential becomes invalid.com.google.protobuf.TimestampOrBuildergetExpirationTimeOrBuilder()[Optional] The time at which this credential becomes invalid.PublicKeyCredentialgetPublicKey()A public key used to verify the signature of JSON Web Tokens (JWTs).PublicKeyCredential.BuildergetPublicKeyBuilder()A public key used to verify the signature of JSON Web Tokens (JWTs).PublicKeyCredentialOrBuildergetPublicKeyOrBuilder()A public key used to verify the signature of JSON Web Tokens (JWTs).booleanhasExpirationTime()[Optional] The time at which this credential becomes invalid.booleanhasPublicKey()A public key used to verify the signature of JSON Web Tokens (JWTs).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()DeviceCredential.BuildermergeExpirationTime(com.google.protobuf.Timestamp value)[Optional] The time at which this credential becomes invalid.DeviceCredential.BuildermergeFrom(DeviceCredential other)DeviceCredential.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)DeviceCredential.BuildermergeFrom(com.google.protobuf.Message other)DeviceCredential.BuildermergePublicKey(PublicKeyCredential value)A public key used to verify the signature of JSON Web Tokens (JWTs).DeviceCredential.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DeviceCredential.BuildersetExpirationTime(com.google.protobuf.Timestamp value)[Optional] The time at which this credential becomes invalid.DeviceCredential.BuildersetExpirationTime(com.google.protobuf.Timestamp.Builder builderForValue)[Optional] The time at which this credential becomes invalid.DeviceCredential.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DeviceCredential.BuildersetPublicKey(PublicKeyCredential value)A public key used to verify the signature of JSON Web Tokens (JWTs).DeviceCredential.BuildersetPublicKey(PublicKeyCredential.Builder builderForValue)A public key used to verify the signature of JSON Web Tokens (JWTs).DeviceCredential.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)DeviceCredential.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceCredential.Builder>
-
clear
public DeviceCredential.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceCredential.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.GeneratedMessageV3.Builder<DeviceCredential.Builder>
-
getDefaultInstanceForType
public DeviceCredential getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public DeviceCredential build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DeviceCredential buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DeviceCredential.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceCredential.Builder>
-
setField
public DeviceCredential.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceCredential.Builder>
-
clearField
public DeviceCredential.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceCredential.Builder>
-
clearOneof
public DeviceCredential.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceCredential.Builder>
-
setRepeatedField
public DeviceCredential.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceCredential.Builder>
-
addRepeatedField
public DeviceCredential.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceCredential.Builder>
-
mergeFrom
public DeviceCredential.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DeviceCredential.Builder>
-
mergeFrom
public DeviceCredential.Builder mergeFrom(DeviceCredential other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceCredential.Builder>
-
mergeFrom
public DeviceCredential.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<DeviceCredential.Builder>- Throws:
IOException
-
getCredentialCase
public DeviceCredential.CredentialCase getCredentialCase()
- Specified by:
getCredentialCasein interfaceDeviceCredentialOrBuilder
-
clearCredential
public DeviceCredential.Builder clearCredential()
-
hasPublicKey
public boolean hasPublicKey()
A public key used to verify the signature of JSON Web Tokens (JWTs). When adding a new device credential, either via device creation or via modifications, this public key credential may be required to be signed by one of the registry level certificates. More specifically, if the registry contains at least one certificate, any new device credential must be signed by one of the registry certificates. As a result, when the registry contains certificates, only X.509 certificates are accepted as device credentials. However, if the registry does not contain a certificate, self-signed certificates and public keys will be accepted. New device credentials must be different from every registry-level certificate.
.google.cloud.iot.v1.PublicKeyCredential public_key = 2;- Specified by:
hasPublicKeyin interfaceDeviceCredentialOrBuilder- Returns:
- Whether the publicKey field is set.
-
getPublicKey
public PublicKeyCredential getPublicKey()
A public key used to verify the signature of JSON Web Tokens (JWTs). When adding a new device credential, either via device creation or via modifications, this public key credential may be required to be signed by one of the registry level certificates. More specifically, if the registry contains at least one certificate, any new device credential must be signed by one of the registry certificates. As a result, when the registry contains certificates, only X.509 certificates are accepted as device credentials. However, if the registry does not contain a certificate, self-signed certificates and public keys will be accepted. New device credentials must be different from every registry-level certificate.
.google.cloud.iot.v1.PublicKeyCredential public_key = 2;- Specified by:
getPublicKeyin interfaceDeviceCredentialOrBuilder- Returns:
- The publicKey.
-
setPublicKey
public DeviceCredential.Builder setPublicKey(PublicKeyCredential value)
A public key used to verify the signature of JSON Web Tokens (JWTs). When adding a new device credential, either via device creation or via modifications, this public key credential may be required to be signed by one of the registry level certificates. More specifically, if the registry contains at least one certificate, any new device credential must be signed by one of the registry certificates. As a result, when the registry contains certificates, only X.509 certificates are accepted as device credentials. However, if the registry does not contain a certificate, self-signed certificates and public keys will be accepted. New device credentials must be different from every registry-level certificate.
.google.cloud.iot.v1.PublicKeyCredential public_key = 2;
-
setPublicKey
public DeviceCredential.Builder setPublicKey(PublicKeyCredential.Builder builderForValue)
A public key used to verify the signature of JSON Web Tokens (JWTs). When adding a new device credential, either via device creation or via modifications, this public key credential may be required to be signed by one of the registry level certificates. More specifically, if the registry contains at least one certificate, any new device credential must be signed by one of the registry certificates. As a result, when the registry contains certificates, only X.509 certificates are accepted as device credentials. However, if the registry does not contain a certificate, self-signed certificates and public keys will be accepted. New device credentials must be different from every registry-level certificate.
.google.cloud.iot.v1.PublicKeyCredential public_key = 2;
-
mergePublicKey
public DeviceCredential.Builder mergePublicKey(PublicKeyCredential value)
A public key used to verify the signature of JSON Web Tokens (JWTs). When adding a new device credential, either via device creation or via modifications, this public key credential may be required to be signed by one of the registry level certificates. More specifically, if the registry contains at least one certificate, any new device credential must be signed by one of the registry certificates. As a result, when the registry contains certificates, only X.509 certificates are accepted as device credentials. However, if the registry does not contain a certificate, self-signed certificates and public keys will be accepted. New device credentials must be different from every registry-level certificate.
.google.cloud.iot.v1.PublicKeyCredential public_key = 2;
-
clearPublicKey
public DeviceCredential.Builder clearPublicKey()
A public key used to verify the signature of JSON Web Tokens (JWTs). When adding a new device credential, either via device creation or via modifications, this public key credential may be required to be signed by one of the registry level certificates. More specifically, if the registry contains at least one certificate, any new device credential must be signed by one of the registry certificates. As a result, when the registry contains certificates, only X.509 certificates are accepted as device credentials. However, if the registry does not contain a certificate, self-signed certificates and public keys will be accepted. New device credentials must be different from every registry-level certificate.
.google.cloud.iot.v1.PublicKeyCredential public_key = 2;
-
getPublicKeyBuilder
public PublicKeyCredential.Builder getPublicKeyBuilder()
A public key used to verify the signature of JSON Web Tokens (JWTs). When adding a new device credential, either via device creation or via modifications, this public key credential may be required to be signed by one of the registry level certificates. More specifically, if the registry contains at least one certificate, any new device credential must be signed by one of the registry certificates. As a result, when the registry contains certificates, only X.509 certificates are accepted as device credentials. However, if the registry does not contain a certificate, self-signed certificates and public keys will be accepted. New device credentials must be different from every registry-level certificate.
.google.cloud.iot.v1.PublicKeyCredential public_key = 2;
-
getPublicKeyOrBuilder
public PublicKeyCredentialOrBuilder getPublicKeyOrBuilder()
A public key used to verify the signature of JSON Web Tokens (JWTs). When adding a new device credential, either via device creation or via modifications, this public key credential may be required to be signed by one of the registry level certificates. More specifically, if the registry contains at least one certificate, any new device credential must be signed by one of the registry certificates. As a result, when the registry contains certificates, only X.509 certificates are accepted as device credentials. However, if the registry does not contain a certificate, self-signed certificates and public keys will be accepted. New device credentials must be different from every registry-level certificate.
.google.cloud.iot.v1.PublicKeyCredential public_key = 2;- Specified by:
getPublicKeyOrBuilderin interfaceDeviceCredentialOrBuilder
-
hasExpirationTime
public boolean hasExpirationTime()
[Optional] The time at which this credential becomes invalid. This credential will be ignored for new client authentication requests after this timestamp; however, it will not be automatically deleted.
.google.protobuf.Timestamp expiration_time = 6;- Specified by:
hasExpirationTimein interfaceDeviceCredentialOrBuilder- Returns:
- Whether the expirationTime field is set.
-
getExpirationTime
public com.google.protobuf.Timestamp getExpirationTime()
[Optional] The time at which this credential becomes invalid. This credential will be ignored for new client authentication requests after this timestamp; however, it will not be automatically deleted.
.google.protobuf.Timestamp expiration_time = 6;- Specified by:
getExpirationTimein interfaceDeviceCredentialOrBuilder- Returns:
- The expirationTime.
-
setExpirationTime
public DeviceCredential.Builder setExpirationTime(com.google.protobuf.Timestamp value)
[Optional] The time at which this credential becomes invalid. This credential will be ignored for new client authentication requests after this timestamp; however, it will not be automatically deleted.
.google.protobuf.Timestamp expiration_time = 6;
-
setExpirationTime
public DeviceCredential.Builder setExpirationTime(com.google.protobuf.Timestamp.Builder builderForValue)
[Optional] The time at which this credential becomes invalid. This credential will be ignored for new client authentication requests after this timestamp; however, it will not be automatically deleted.
.google.protobuf.Timestamp expiration_time = 6;
-
mergeExpirationTime
public DeviceCredential.Builder mergeExpirationTime(com.google.protobuf.Timestamp value)
[Optional] The time at which this credential becomes invalid. This credential will be ignored for new client authentication requests after this timestamp; however, it will not be automatically deleted.
.google.protobuf.Timestamp expiration_time = 6;
-
clearExpirationTime
public DeviceCredential.Builder clearExpirationTime()
[Optional] The time at which this credential becomes invalid. This credential will be ignored for new client authentication requests after this timestamp; however, it will not be automatically deleted.
.google.protobuf.Timestamp expiration_time = 6;
-
getExpirationTimeBuilder
public com.google.protobuf.Timestamp.Builder getExpirationTimeBuilder()
[Optional] The time at which this credential becomes invalid. This credential will be ignored for new client authentication requests after this timestamp; however, it will not be automatically deleted.
.google.protobuf.Timestamp expiration_time = 6;
-
getExpirationTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder()
[Optional] The time at which this credential becomes invalid. This credential will be ignored for new client authentication requests after this timestamp; however, it will not be automatically deleted.
.google.protobuf.Timestamp expiration_time = 6;- Specified by:
getExpirationTimeOrBuilderin interfaceDeviceCredentialOrBuilder
-
setUnknownFields
public final DeviceCredential.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceCredential.Builder>
-
mergeUnknownFields
public final DeviceCredential.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceCredential.Builder>
-
-