JFIF x x C C " } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w !1AQ aq"2B #3Rbr{
File "SchemaConfig.php"
Full Path: /home/palsarh/web/palsarh.in/public_html/vendor/google/apiclient-services/src/ManagedKafka/SchemaConfig.php
File size: 3.93 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ManagedKafka;
class SchemaConfig extends \Google\Model
{
/**
* No compatibility check.
*/
public const COMPATIBILITY_NONE = 'NONE';
/**
* Backwards compatible with the most recent version.
*/
public const COMPATIBILITY_BACKWARD = 'BACKWARD';
/**
* Backwards compatible with all previous versions.
*/
public const COMPATIBILITY_BACKWARD_TRANSITIVE = 'BACKWARD_TRANSITIVE';
/**
* Forwards compatible with the most recent version.
*/
public const COMPATIBILITY_FORWARD = 'FORWARD';
/**
* Forwards compatible with all previous versions.
*/
public const COMPATIBILITY_FORWARD_TRANSITIVE = 'FORWARD_TRANSITIVE';
/**
* Backwards and forwards compatible with the most recent version.
*/
public const COMPATIBILITY_FULL = 'FULL';
/**
* Backwards and forwards compatible with all previous versions.
*/
public const COMPATIBILITY_FULL_TRANSITIVE = 'FULL_TRANSITIVE';
/**
* Optional. The subject to which this subject is an alias of. Only applicable
* for subject config.
*
* @var string
*/
public $alias;
/**
* Required. The compatibility type of the schema. The default value is
* BACKWARD. If unset in a SchemaSubject-level SchemaConfig, defaults to the
* global value. If unset in a SchemaRegistry-level SchemaConfig, reverts to
* the default value.
*
* @var string
*/
public $compatibility;
/**
* Optional. If true, the schema will be normalized before being stored or
* looked up. The default is false. If unset in a SchemaSubject-level
* SchemaConfig, the global value will be used. If unset in a SchemaRegistry-
* level SchemaConfig, reverts to the default value.
*
* @var bool
*/
public $normalize;
/**
* Optional. The subject to which this subject is an alias of. Only applicable
* for subject config.
*
* @param string $alias
*/
public function setAlias($alias)
{
$this->alias = $alias;
}
/**
* @return string
*/
public function getAlias()
{
return $this->alias;
}
/**
* Required. The compatibility type of the schema. The default value is
* BACKWARD. If unset in a SchemaSubject-level SchemaConfig, defaults to the
* global value. If unset in a SchemaRegistry-level SchemaConfig, reverts to
* the default value.
*
* Accepted values: NONE, BACKWARD, BACKWARD_TRANSITIVE, FORWARD,
* FORWARD_TRANSITIVE, FULL, FULL_TRANSITIVE
*
* @param self::COMPATIBILITY_* $compatibility
*/
public function setCompatibility($compatibility)
{
$this->compatibility = $compatibility;
}
/**
* @return self::COMPATIBILITY_*
*/
public function getCompatibility()
{
return $this->compatibility;
}
/**
* Optional. If true, the schema will be normalized before being stored or
* looked up. The default is false. If unset in a SchemaSubject-level
* SchemaConfig, the global value will be used. If unset in a SchemaRegistry-
* level SchemaConfig, reverts to the default value.
*
* @param bool $normalize
*/
public function setNormalize($normalize)
{
$this->normalize = $normalize;
}
/**
* @return bool
*/
public function getNormalize()
{
return $this->normalize;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SchemaConfig::class, 'Google_Service_ManagedKafka_SchemaConfig');