public static final class DeviceCredential.Builder extends GeneratedMessageV3.Builder<DeviceCredential.Builder> implements DeviceCredentialOrBuilder
A server-stored device credential used for authentication.Protobuf type
google.cloud.iot.v1.DeviceCredential
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<DeviceCredential.Builder>
public DeviceCredential.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<DeviceCredential.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<DeviceCredential.Builder>
public DeviceCredential getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public DeviceCredential build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public DeviceCredential buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public DeviceCredential.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<DeviceCredential.Builder>
public DeviceCredential.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<DeviceCredential.Builder>
public DeviceCredential.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<DeviceCredential.Builder>
public DeviceCredential.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<DeviceCredential.Builder>
public DeviceCredential.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<DeviceCredential.Builder>
public DeviceCredential.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<DeviceCredential.Builder>
public DeviceCredential.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<DeviceCredential.Builder>
public DeviceCredential.Builder mergeFrom(DeviceCredential other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<DeviceCredential.Builder>
public DeviceCredential.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<DeviceCredential.Builder>
IOException
public DeviceCredential.CredentialCase getCredentialCase()
getCredentialCase
in interface DeviceCredentialOrBuilder
public DeviceCredential.Builder clearCredential()
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;
hasPublicKey
in interface DeviceCredentialOrBuilder
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;
getPublicKey
in interface DeviceCredentialOrBuilder
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;
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;
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;
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;
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;
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;
getPublicKeyOrBuilder
in interface DeviceCredentialOrBuilder
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;
hasExpirationTime
in interface DeviceCredentialOrBuilder
public 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;
getExpirationTime
in interface DeviceCredentialOrBuilder
public DeviceCredential.Builder setExpirationTime(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;
public DeviceCredential.Builder setExpirationTime(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;
public DeviceCredential.Builder mergeExpirationTime(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;
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;
public 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;
public 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;
getExpirationTimeOrBuilder
in interface DeviceCredentialOrBuilder
public final DeviceCredential.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<DeviceCredential.Builder>
public final DeviceCredential.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<DeviceCredential.Builder>
Copyright © 2022 Google LLC. All rights reserved.