📂 File Browser

/AgentAI/vendor/google/apiclient-services/src/ServiceManagement
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 Advice.php
▶ Open 📄 View Source
🐘 Api.php
▶ Open 📄 View Source
🐘 Aspect.php
▶ Open 📄 View Source
🐘 AspectRule.php
▶ Open 📄 View Source
🐘 AuditConfig.php
▶ Open 📄 View Source
🐘 AuditLogConfig.php
▶ Open 📄 View Source
🐘 AuthProvider.php
▶ Open 📄 View Source
🐘 AuthRequirement.php
▶ Open 📄 View Source
🐘 Authentication.php
▶ Open 📄 View Source
🐘 AuthenticationRule.php
▶ Open 📄 View Source
🐘 Backend.php
▶ Open 📄 View Source
🐘 BackendRule.php
▶ Open 📄 View Source
🐘 BatchingConfigProto.php
▶ Open 📄 View Source
🐘 BatchingDescriptorProto.php
▶ Open 📄 View Source
🐘 BatchingSettingsProto.php
▶ Open 📄 View Source
🐘 Billing.php
▶ Open 📄 View Source
🐘 BillingDestination.php
▶ Open 📄 View Source
🐘 Binding.php
▶ Open 📄 View Source
🐘 ChangeReport.php
▶ Open 📄 View Source
🐘 ClientLibrarySettings.php
▶ Open 📄 View Source
🐘 CommonLanguageSettings.php
▶ Open 📄 View Source
🐘 ConfigChange.php
▶ Open 📄 View Source
🐘 ConfigFile.php
▶ Open 📄 View Source
🐘 ConfigRef.php
▶ Open 📄 View Source
🐘 ConfigSource.php
▶ Open 📄 View Source
🐘 Context.php
▶ Open 📄 View Source
🐘 ContextRule.php
▶ Open 📄 View Source
🐘 Control.php
▶ Open 📄 View Source
🐘 CppSettings.php
▶ Open 📄 View Source
🐘 CustomError.php
▶ Open 📄 View Source
🐘 CustomErrorRule.php
▶ Open 📄 View Source
🐘 CustomHttpPattern.php
▶ Open 📄 View Source
🐘 DeleteServiceStrategy.php
▶ Open 📄 View Source
🐘 Diagnostic.php
▶ Open 📄 View Source
🐘 Documentation.php
▶ Open 📄 View Source
🐘 DocumentationRule.php
▶ Open 📄 View Source
🐘 DotnetSettings.php
▶ Open 📄 View Source
🐘 EnableServiceResponse.php
▶ Open 📄 View Source
🐘 Endpoint.php
▶ Open 📄 View Source
🐘 Enum.php
▶ Open 📄 View Source
🐘 EnumValue.php
▶ Open 📄 View Source
🐘 ExperimentalFeatures.php
▶ Open 📄 View Source
🐘 Expr.php
▶ Open 📄 View Source
🐘 Field.php
▶ Open 📄 View Source
🐘 FieldPolicy.php
▶ Open 📄 View Source
🐘 FlowErrorDetails.php
▶ Open 📄 View Source
🐘 GenerateConfigReportRequest.php
▶ Open 📄 View Source
🐘 GenerateConfigReportResponse.php
▶ Open 📄 View Source
🐘 GetIamPolicyRequest.php
▶ Open 📄 View Source
🐘 GetPolicyOptions.php
▶ Open 📄 View Source
🐘 GoSettings.php
▶ Open 📄 View Source
🐘 Http.php
▶ Open 📄 View Source
🐘 HttpRule.php
▶ Open 📄 View Source
🐘 JavaSettings.php
▶ Open 📄 View Source
🐘 JwtLocation.php
▶ Open 📄 View Source
🐘 LabelDescriptor.php
▶ Open 📄 View Source
🐘 ListOperationsResponse.php
▶ Open 📄 View Source
🐘 ListServiceConfigsResponse.php
▶ Open 📄 View Source
🐘 ListServiceRolloutsResponse.php
▶ Open 📄 View Source
🐘 ListServicesResponse.php
▶ Open 📄 View Source
🐘 LogDescriptor.php
▶ Open 📄 View Source
🐘 Logging.php
▶ Open 📄 View Source
🐘 LoggingDestination.php
▶ Open 📄 View Source
🐘 LongRunning.php
▶ Open 📄 View Source
🐘 ManagedService.php
▶ Open 📄 View Source
🐘 Method.php
▶ Open 📄 View Source
🐘 MethodPolicy.php
▶ Open 📄 View Source
🐘 MethodSettings.php
▶ Open 📄 View Source
🐘 MetricDescriptor.php
▶ Open 📄 View Source
🐘 MetricDescriptorMetadata.php
▶ Open 📄 View Source
🐘 MetricRule.php
▶ Open 📄 View Source
🐘 Mixin.php
▶ Open 📄 View Source
🐘 MonitoredResourceDescriptor.php
▶ Open 📄 View Source
🐘 Monitoring.php
▶ Open 📄 View Source
🐘 MonitoringDestination.php
▶ Open 📄 View Source
🐘 NodeSettings.php
▶ Open 📄 View Source
🐘 OAuthRequirements.php
▶ Open 📄 View Source
🐘 Operation.php
▶ Open 📄 View Source
🐘 OperationInfo.php
▶ Open 📄 View Source
🐘 OperationMetadata.php
▶ Open 📄 View Source
🐘 Option.php
▶ Open 📄 View Source
🐘 Page.php
▶ Open 📄 View Source
🐘 PhpSettings.php
▶ Open 📄 View Source
🐘 Policy.php
▶ Open 📄 View Source
🐘 Publishing.php
▶ Open 📄 View Source
🐘 PythonSettings.php
▶ Open 📄 View Source
🐘 Quota.php
▶ Open 📄 View Source
🐘 QuotaLimit.php
▶ Open 📄 View Source
🐘 ResourceReference.php
▶ Open 📄 View Source
🐘 Rollout.php
▶ Open 📄 View Source
🐘 RubySettings.php
▶ Open 📄 View Source
🐘 SelectiveGapicGeneration.php
▶ Open 📄 View Source
🐘 Service.php
▶ Open 📄 View Source
🐘 SetIamPolicyRequest.php
▶ Open 📄 View Source
🐘 SourceContext.php
▶ Open 📄 View Source
🐘 SourceInfo.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 Step.php
▶ Open 📄 View Source
🐘 SubmitConfigSourceRequest.php
▶ Open 📄 View Source
🐘 SubmitConfigSourceResponse.php
▶ Open 📄 View Source
🐘 SystemParameter.php
▶ Open 📄 View Source
🐘 SystemParameterRule.php
▶ Open 📄 View Source
🐘 SystemParameters.php
▶ Open 📄 View Source
🐘 TestIamPermissionsRequest.php
▶ Open 📄 View Source
🐘 TestIamPermissionsResponse.php
▶ Open 📄 View Source
🐘 TrafficPercentStrategy.php
▶ Open 📄 View Source
🐘 Type.php
▶ Open 📄 View Source
🐘 UndeleteServiceResponse.php
▶ Open 📄 View Source
🐘 Usage.php
▶ Open 📄 View Source
🐘 UsageRule.php
▶ Open 📄 View Source

📄 Source: Field.php

<?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\ServiceManagement;

class Field extends \Google\Collection
{
  /**
   * For fields with unknown cardinality.
   */
  public const CARDINALITY_CARDINALITY_UNKNOWN = 'CARDINALITY_UNKNOWN';
  /**
   * For optional fields.
   */
  public const CARDINALITY_CARDINALITY_OPTIONAL = 'CARDINALITY_OPTIONAL';
  /**
   * For required fields. Proto2 syntax only.
   */
  public const CARDINALITY_CARDINALITY_REQUIRED = 'CARDINALITY_REQUIRED';
  /**
   * For repeated fields.
   */
  public const CARDINALITY_CARDINALITY_REPEATED = 'CARDINALITY_REPEATED';
  /**
   * Field type unknown.
   */
  public const KIND_TYPE_UNKNOWN = 'TYPE_UNKNOWN';
  /**
   * Field type double.
   */
  public const KIND_TYPE_DOUBLE = 'TYPE_DOUBLE';
  /**
   * Field type float.
   */
  public const KIND_TYPE_FLOAT = 'TYPE_FLOAT';
  /**
   * Field type int64.
   */
  public const KIND_TYPE_INT64 = 'TYPE_INT64';
  /**
   * Field type uint64.
   */
  public const KIND_TYPE_UINT64 = 'TYPE_UINT64';
  /**
   * Field type int32.
   */
  public const KIND_TYPE_INT32 = 'TYPE_INT32';
  /**
   * Field type fixed64.
   */
  public const KIND_TYPE_FIXED64 = 'TYPE_FIXED64';
  /**
   * Field type fixed32.
   */
  public const KIND_TYPE_FIXED32 = 'TYPE_FIXED32';
  /**
   * Field type bool.
   */
  public const KIND_TYPE_BOOL = 'TYPE_BOOL';
  /**
   * Field type string.
   */
  public const KIND_TYPE_STRING = 'TYPE_STRING';
  /**
   * Field type group. Proto2 syntax only, and deprecated.
   */
  public const KIND_TYPE_GROUP = 'TYPE_GROUP';
  /**
   * Field type message.
   */
  public const KIND_TYPE_MESSAGE = 'TYPE_MESSAGE';
  /**
   * Field type bytes.
   */
  public const KIND_TYPE_BYTES = 'TYPE_BYTES';
  /**
   * Field type uint32.
   */
  public const KIND_TYPE_UINT32 = 'TYPE_UINT32';
  /**
   * Field type enum.
   */
  public const KIND_TYPE_ENUM = 'TYPE_ENUM';
  /**
   * Field type sfixed32.
   */
  public const KIND_TYPE_SFIXED32 = 'TYPE_SFIXED32';
  /**
   * Field type sfixed64.
   */
  public const KIND_TYPE_SFIXED64 = 'TYPE_SFIXED64';
  /**
   * Field type sint32.
   */
  public const KIND_TYPE_SINT32 = 'TYPE_SINT32';
  /**
   * Field type sint64.
   */
  public const KIND_TYPE_SINT64 = 'TYPE_SINT64';
  protected $collection_key = 'options';
  /**
   * The field cardinality.
   *
   * @var string
   */
  public $cardinality;
  /**
   * The string value of the default value of this field. Proto2 syntax only.
   *
   * @var string
   */
  public $defaultValue;
  /**
   * The field JSON name.
   *
   * @var string
   */
  public $jsonName;
  /**
   * The field type.
   *
   * @var string
   */
  public $kind;
  /**
   * The field name.
   *
   * @var string
   */
  public $name;
  /**
   * The field number.
   *
   * @var int
   */
  public $number;
  /**
   * The index of the field type in `Type.oneofs`, for message or enumeration
   * types. The first type has index 1; zero means the type is not in the list.
   *
   * @var int
   */
  public $oneofIndex;
  protected $optionsType = Option::class;
  protected $optionsDataType = 'array';
  /**
   * Whether to use alternative packed wire representation.
   *
   * @var bool
   */
  public $packed;
  /**
   * The field type URL, without the scheme, for message or enumeration types.
   * Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
   *
   * @var string
   */
  public $typeUrl;

  /**
   * The field cardinality.
   *
   * Accepted values: CARDINALITY_UNKNOWN, CARDINALITY_OPTIONAL,
   * CARDINALITY_REQUIRED, CARDINALITY_REPEATED
   *
   * @param self::CARDINALITY_* $cardinality
   */
  public function setCardinality($cardinality)
  {
    $this->cardinality = $cardinality;
  }
  /**
   * @return self::CARDINALITY_*
   */
  public function getCardinality()
  {
    return $this->cardinality;
  }
  /**
   * The string value of the default value of this field. Proto2 syntax only.
   *
   * @param string $defaultValue
   */
  public function setDefaultValue($defaultValue)
  {
    $this->defaultValue = $defaultValue;
  }
  /**
   * @return string
   */
  public function getDefaultValue()
  {
    return $this->defaultValue;
  }
  /**
   * The field JSON name.
   *
   * @param string $jsonName
   */
  public function setJsonName($jsonName)
  {
    $this->jsonName = $jsonName;
  }
  /**
   * @return string
   */
  public function getJsonName()
  {
    return $this->jsonName;
  }
  /**
   * The field type.
   *
   * Accepted values: TYPE_UNKNOWN, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INT64,
   * TYPE_UINT64, TYPE_INT32, TYPE_FIXED64, TYPE_FIXED32, TYPE_BOOL,
   * TYPE_STRING, TYPE_GROUP, TYPE_MESSAGE, TYPE_BYTES, TYPE_UINT32, TYPE_ENUM,
   * TYPE_SFIXED32, TYPE_SFIXED64, TYPE_SINT32, TYPE_SINT64
   *
   * @param self::KIND_* $kind
   */
  public function setKind($kind)
  {
    $this->kind = $kind;
  }
  /**
   * @return self::KIND_*
   */
  public function getKind()
  {
    return $this->kind;
  }
  /**
   * The field name.
   *
   * @param string $name
   */
  public function setName($name)
  {
    $this->name = $name;
  }
  /**
   * @return string
   */
  public function getName()
  {
    return $this->name;
  }
  /**
   * The field number.
   *
   * @param int $number
   */
  public function setNumber($number)
  {
    $this->number = $number;
  }
  /**
   * @return int
   */
  public function getNumber()
  {
    return $this->number;
  }
  /**
   * The index of the field type in `Type.oneofs`, for message or enumeration
   * types. The first type has index 1; zero means the type is not in the list.
   *
   * @param int $oneofIndex
   */
  public function setOneofIndex($oneofIndex)
  {
    $this->oneofIndex = $oneofIndex;
  }
  /**
   * @return int
   */
  public function getOneofIndex()
  {
    return $this->oneofIndex;
  }
  /**
   * The protocol buffer options.
   *
   * @param Option[] $options
   */
  public function setOptions($options)
  {
    $this->options = $options;
  }
  /**
   * @return Option[]
   */
  public function getOptions()
  {
    return $this->options;
  }
  /**
   * Whether to use alternative packed wire representation.
   *
   * @param bool $packed
   */
  public function setPacked($packed)
  {
    $this->packed = $packed;
  }
  /**
   * @return bool
   */
  public function getPacked()
  {
    return $this->packed;
  }
  /**
   * The field type URL, without the scheme, for message or enumeration types.
   * Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
   *
   * @param string $typeUrl
   */
  public function setTypeUrl($typeUrl)
  {
    $this->typeUrl = $typeUrl;
  }
  /**
   * @return string
   */
  public function getTypeUrl()
  {
    return $this->typeUrl;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Field::class, 'Google_Service_ServiceManagement_Field');
← Back