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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DeviceCredential.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public DeviceCredential build()
Returns
buildPartial()
public DeviceCredential buildPartial()
Returns
clear()
public DeviceCredential.Builder clear()
Returns
Overrides
clearCredential()
public DeviceCredential.Builder clearCredential()
Returns
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;
Returns
clearField(Descriptors.FieldDescriptor field)
public DeviceCredential.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public DeviceCredential.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
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;
Returns
clone()
public DeviceCredential.Builder clone()
Returns
Overrides
getCredentialCase()
public DeviceCredential.CredentialCase getCredentialCase()
Returns
getDefaultInstanceForType()
public DeviceCredential getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getExpirationTime()
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;
Returns
getExpirationTimeBuilder()
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;
Returns
getExpirationTimeOrBuilder()
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;
Returns
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;
Returns
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;
Returns
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;
Returns
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;
Returns
Type | Description |
boolean | Whether the expirationTime field is set.
|
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;
Returns
Type | Description |
boolean | Whether the publicKey field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeExpirationTime(Timestamp value)
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;
Parameter
Returns
mergeFrom(DeviceCredential other)
public DeviceCredential.Builder mergeFrom(DeviceCredential other)
Parameter
Returns
public DeviceCredential.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public DeviceCredential.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergePublicKey(PublicKeyCredential value)
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;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DeviceCredential.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setExpirationTime(Timestamp value)
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;
Parameter
Returns
setExpirationTime(Timestamp.Builder builderForValue)
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;
Parameter
Name | Description |
builderForValue | Builder
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public DeviceCredential.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setPublicKey(PublicKeyCredential value)
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;
Parameter
Returns
setPublicKey(PublicKeyCredential.Builder builderForValue)
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;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DeviceCredential.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final DeviceCredential.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides