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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
DeviceCredential
build()
DeviceCredential
buildPartial()
DeviceCredential.Builder
clear()
DeviceCredential.Builder
clearCredential()
DeviceCredential.Builder
clearExpirationTime()
[Optional] The time at which this credential becomes invalid.DeviceCredential.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
DeviceCredential.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
DeviceCredential.Builder
clearPublicKey()
A public key used to verify the signature of JSON Web Tokens (JWTs).DeviceCredential.Builder
clone()
DeviceCredential.CredentialCase
getCredentialCase()
DeviceCredential
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.protobuf.Timestamp
getExpirationTime()
[Optional] The time at which this credential becomes invalid.com.google.protobuf.Timestamp.Builder
getExpirationTimeBuilder()
[Optional] The time at which this credential becomes invalid.com.google.protobuf.TimestampOrBuilder
getExpirationTimeOrBuilder()
[Optional] The time at which this credential becomes invalid.PublicKeyCredential
getPublicKey()
A public key used to verify the signature of JSON Web Tokens (JWTs).PublicKeyCredential.Builder
getPublicKeyBuilder()
A public key used to verify the signature of JSON Web Tokens (JWTs).PublicKeyCredentialOrBuilder
getPublicKeyOrBuilder()
A public key used to verify the signature of JSON Web Tokens (JWTs).boolean
hasExpirationTime()
[Optional] The time at which this credential becomes invalid.boolean
hasPublicKey()
A public key used to verify the signature of JSON Web Tokens (JWTs).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
DeviceCredential.Builder
mergeExpirationTime(com.google.protobuf.Timestamp value)
[Optional] The time at which this credential becomes invalid.DeviceCredential.Builder
mergeFrom(DeviceCredential other)
DeviceCredential.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
DeviceCredential.Builder
mergeFrom(com.google.protobuf.Message other)
DeviceCredential.Builder
mergePublicKey(PublicKeyCredential value)
A public key used to verify the signature of JSON Web Tokens (JWTs).DeviceCredential.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
DeviceCredential.Builder
setExpirationTime(com.google.protobuf.Timestamp value)
[Optional] The time at which this credential becomes invalid.DeviceCredential.Builder
setExpirationTime(com.google.protobuf.Timestamp.Builder builderForValue)
[Optional] The time at which this credential becomes invalid.DeviceCredential.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
DeviceCredential.Builder
setPublicKey(PublicKeyCredential value)
A public key used to verify the signature of JSON Web Tokens (JWTs).DeviceCredential.Builder
setPublicKey(PublicKeyCredential.Builder builderForValue)
A public key used to verify the signature of JSON Web Tokens (JWTs).DeviceCredential.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
DeviceCredential.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceCredential.Builder>
-
clear
public DeviceCredential.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.GeneratedMessageV3.Builder<DeviceCredential.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.GeneratedMessageV3.Builder<DeviceCredential.Builder>
-
getDefaultInstanceForType
public DeviceCredential getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public DeviceCredential build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DeviceCredential buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DeviceCredential.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceCredential.Builder>
-
setField
public DeviceCredential.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceCredential.Builder>
-
clearField
public DeviceCredential.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceCredential.Builder>
-
clearOneof
public DeviceCredential.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceCredential.Builder>
-
setRepeatedField
public DeviceCredential.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceCredential.Builder>
-
addRepeatedField
public DeviceCredential.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceCredential.Builder>
-
mergeFrom
public DeviceCredential.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DeviceCredential.Builder>
-
mergeFrom
public DeviceCredential.Builder mergeFrom(DeviceCredential other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DeviceCredential.Builder>
- Throws:
IOException
-
getCredentialCase
public DeviceCredential.CredentialCase getCredentialCase()
- Specified by:
getCredentialCase
in 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:
hasPublicKey
in 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:
getPublicKey
in 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:
getPublicKeyOrBuilder
in 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:
hasExpirationTime
in 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:
getExpirationTime
in 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:
getExpirationTimeOrBuilder
in interfaceDeviceCredentialOrBuilder
-
setUnknownFields
public final DeviceCredential.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceCredential.Builder>
-
mergeUnknownFields
public final DeviceCredential.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeviceCredential.Builder>
-
-