public static final class DeviceCredential.Builder extends GeneratedMessageV3.Builder<DeviceCredential.Builder> implements DeviceCredentialOrBuilder
A server-stored device credential used for authentication.
Protobuf type google.events.cloud.iot.v1.DeviceCredential
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DeviceCredential.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public DeviceCredential build()
buildPartial()
public DeviceCredential buildPartial()
clear()
public DeviceCredential.Builder clear()
Overrides
clearCredential()
public DeviceCredential.Builder clearCredential()
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;
clearField(Descriptors.FieldDescriptor field)
public DeviceCredential.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public DeviceCredential.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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.events.cloud.iot.v1.PublicKeyCredential public_key = 2;
clone()
public DeviceCredential.Builder clone()
Overrides
getCredentialCase()
public DeviceCredential.CredentialCase getCredentialCase()
getDefaultInstanceForType()
public DeviceCredential getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
Type |
Description |
Timestamp |
The expirationTime.
|
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;
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;
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.events.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.events.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.events.cloud.iot.v1.PublicKeyCredential public_key = 2;
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.events.cloud.iot.v1.PublicKeyCredential public_key = 2;
Returns |
Type |
Description |
boolean |
Whether the publicKey field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
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;
mergeFrom(DeviceCredential other)
public DeviceCredential.Builder mergeFrom(DeviceCredential other)
public DeviceCredential.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public DeviceCredential.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
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.events.cloud.iot.v1.PublicKeyCredential public_key = 2;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DeviceCredential.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public DeviceCredential.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.events.cloud.iot.v1.PublicKeyCredential public_key = 2;
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.events.cloud.iot.v1.PublicKeyCredential public_key = 2;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DeviceCredential.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final DeviceCredential.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides