1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/cloud/iot/v1/resources.proto 18 19 package com.google.cloud.iot.v1; 20 21 public interface DeviceCredentialOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.DeviceCredential) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * A public key used to verify the signature of JSON Web Tokens (JWTs). 31 * When adding a new device credential, either via device creation or via 32 * modifications, this public key credential may be required to be signed by 33 * one of the registry level certificates. More specifically, if the 34 * registry contains at least one certificate, any new device credential 35 * must be signed by one of the registry certificates. As a result, 36 * when the registry contains certificates, only X.509 certificates are 37 * accepted as device credentials. However, if the registry does 38 * not contain a certificate, self-signed certificates and public keys will 39 * be accepted. New device credentials must be different from every 40 * registry-level certificate. 41 * </pre> 42 * 43 * <code>.google.cloud.iot.v1.PublicKeyCredential public_key = 2;</code> 44 * 45 * @return Whether the publicKey field is set. 46 */ hasPublicKey()47 boolean hasPublicKey(); 48 /** 49 * 50 * 51 * <pre> 52 * A public key used to verify the signature of JSON Web Tokens (JWTs). 53 * When adding a new device credential, either via device creation or via 54 * modifications, this public key credential may be required to be signed by 55 * one of the registry level certificates. More specifically, if the 56 * registry contains at least one certificate, any new device credential 57 * must be signed by one of the registry certificates. As a result, 58 * when the registry contains certificates, only X.509 certificates are 59 * accepted as device credentials. However, if the registry does 60 * not contain a certificate, self-signed certificates and public keys will 61 * be accepted. New device credentials must be different from every 62 * registry-level certificate. 63 * </pre> 64 * 65 * <code>.google.cloud.iot.v1.PublicKeyCredential public_key = 2;</code> 66 * 67 * @return The publicKey. 68 */ getPublicKey()69 com.google.cloud.iot.v1.PublicKeyCredential getPublicKey(); 70 /** 71 * 72 * 73 * <pre> 74 * A public key used to verify the signature of JSON Web Tokens (JWTs). 75 * When adding a new device credential, either via device creation or via 76 * modifications, this public key credential may be required to be signed by 77 * one of the registry level certificates. More specifically, if the 78 * registry contains at least one certificate, any new device credential 79 * must be signed by one of the registry certificates. As a result, 80 * when the registry contains certificates, only X.509 certificates are 81 * accepted as device credentials. However, if the registry does 82 * not contain a certificate, self-signed certificates and public keys will 83 * be accepted. New device credentials must be different from every 84 * registry-level certificate. 85 * </pre> 86 * 87 * <code>.google.cloud.iot.v1.PublicKeyCredential public_key = 2;</code> 88 */ getPublicKeyOrBuilder()89 com.google.cloud.iot.v1.PublicKeyCredentialOrBuilder getPublicKeyOrBuilder(); 90 91 /** 92 * 93 * 94 * <pre> 95 * [Optional] The time at which this credential becomes invalid. This 96 * credential will be ignored for new client authentication requests after 97 * this timestamp; however, it will not be automatically deleted. 98 * </pre> 99 * 100 * <code>.google.protobuf.Timestamp expiration_time = 6;</code> 101 * 102 * @return Whether the expirationTime field is set. 103 */ hasExpirationTime()104 boolean hasExpirationTime(); 105 /** 106 * 107 * 108 * <pre> 109 * [Optional] The time at which this credential becomes invalid. This 110 * credential will be ignored for new client authentication requests after 111 * this timestamp; however, it will not be automatically deleted. 112 * </pre> 113 * 114 * <code>.google.protobuf.Timestamp expiration_time = 6;</code> 115 * 116 * @return The expirationTime. 117 */ getExpirationTime()118 com.google.protobuf.Timestamp getExpirationTime(); 119 /** 120 * 121 * 122 * <pre> 123 * [Optional] The time at which this credential becomes invalid. This 124 * credential will be ignored for new client authentication requests after 125 * this timestamp; however, it will not be automatically deleted. 126 * </pre> 127 * 128 * <code>.google.protobuf.Timestamp expiration_time = 6;</code> 129 */ getExpirationTimeOrBuilder()130 com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder(); 131 getCredentialCase()132 public com.google.cloud.iot.v1.DeviceCredential.CredentialCase getCredentialCase(); 133 } 134