PageRenderTime 42ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/functions/helloworld/hello-gcs/src/main/java/functions/eventpojos/GcsEvent.java

https://github.com/GoogleCloudPlatform/java-docs-samples
Java | 72 lines | 39 code | 13 blank | 20 comment | 0 complexity | b60218965781843666008de33a68e426 MD5 | raw file
Possible License(s): Apache-2.0
  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. * http://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. package functions.eventpojos;
  17. import java.util.Date;
  18. // [START functions_helloworld_gcs_event]
  19. public class GcsEvent {
  20. // Cloud Functions uses GSON to populate this object.
  21. // Field types/names are specified by Cloud Functions
  22. // Changing them may break your code!
  23. private String bucket;
  24. private String name;
  25. private String metageneration;
  26. private Date timeCreated;
  27. private Date updated;
  28. public String getBucket() {
  29. return bucket;
  30. }
  31. public void setBucket(String bucket) {
  32. this.bucket = bucket;
  33. }
  34. public String getName() {
  35. return name;
  36. }
  37. public void setName(String name) {
  38. this.name = name;
  39. }
  40. public String getMetageneration() {
  41. return metageneration;
  42. }
  43. public void setMetageneration(String metageneration) {
  44. this.metageneration = metageneration;
  45. }
  46. public Date getTimeCreated() {
  47. return timeCreated;
  48. }
  49. public void setTimeCreated(Date timeCreated) {
  50. this.timeCreated = timeCreated;
  51. }
  52. public Date getUpdated() {
  53. return updated;
  54. }
  55. public void setUpdated(Date updated) {
  56. this.updated = updated;
  57. }
  58. }
  59. // [END functions_helloworld_gcs_event]