target.apidocs.com.google.api.services.pubsub.model.SchemaSettings.html Maven / Gradle / Ivy
SchemaSettings (Cloud Pub/Sub API v1-rev20240607-2.0.0)
com.google.api.services.pubsub.model
Class SchemaSettings
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.pubsub.model.SchemaSettings
-
public final class SchemaSettings
extends com.google.api.client.json.GenericJson
Settings for validating messages published against a schema.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Cloud Pub/Sub API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
SchemaSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
SchemaSettings
clone()
String
getEncoding()
Optional.
String
getFirstRevisionId()
Optional.
String
getLastRevisionId()
Optional.
String
getSchema()
Required.
SchemaSettings
set(String fieldName,
Object value)
SchemaSettings
setEncoding(String encoding)
Optional.
SchemaSettings
setFirstRevisionId(String firstRevisionId)
Optional.
SchemaSettings
setLastRevisionId(String lastRevisionId)
Optional.
SchemaSettings
setSchema(String schema)
Required.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getEncoding
public String getEncoding()
Optional. The encoding of messages validated against `schema`.
- Returns:
- value or
null
for none
-
setEncoding
public SchemaSettings setEncoding(String encoding)
Optional. The encoding of messages validated against `schema`.
- Parameters:
encoding
- encoding or null
for none
-
getFirstRevisionId
public String getFirstRevisionId()
Optional. The minimum (inclusive) revision allowed for validating messages. If empty or not
present, allow any revision to be validated against last_revision or any revision created
before.
- Returns:
- value or
null
for none
-
setFirstRevisionId
public SchemaSettings setFirstRevisionId(String firstRevisionId)
Optional. The minimum (inclusive) revision allowed for validating messages. If empty or not
present, allow any revision to be validated against last_revision or any revision created
before.
- Parameters:
firstRevisionId
- firstRevisionId or null
for none
-
getLastRevisionId
public String getLastRevisionId()
Optional. The maximum (inclusive) revision allowed for validating messages. If empty or not
present, allow any revision to be validated against first_revision or any revision created
after.
- Returns:
- value or
null
for none
-
setLastRevisionId
public SchemaSettings setLastRevisionId(String lastRevisionId)
Optional. The maximum (inclusive) revision allowed for validating messages. If empty or not
present, allow any revision to be validated against first_revision or any revision created
after.
- Parameters:
lastRevisionId
- lastRevisionId or null
for none
-
getSchema
public String getSchema()
Required. The name of the schema that messages published should be validated against. Format is
`projects/{project}/schemas/{schema}`. The value of this field will be `_deleted-schema_` if
the schema has been deleted.
- Returns:
- value or
null
for none
-
setSchema
public SchemaSettings setSchema(String schema)
Required. The name of the schema that messages published should be validated against. Format is
`projects/{project}/schemas/{schema}`. The value of this field will be `_deleted-schema_` if
the schema has been deleted.
- Parameters:
schema
- schema or null
for none
-
set
public SchemaSettings set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public SchemaSettings clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy