// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/api/resource.proto

package com.google.api;

public final class ResourceProto {
  private ResourceProto() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
    registry.add(com.google.api.ResourceProto.resourceReference);
    registry.add(com.google.api.ResourceProto.resource);
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public static final int RESOURCE_REFERENCE_FIELD_NUMBER = 1055;
  /**
   * <pre>
   * The fully qualified message name of the type that this field references.
   * Marks this as a field referring to a resource in another message.
   * Example:
   *   message Subscription {
   *     string topic = 2 [(google.api.resource_reference) = {
   *       type: "pubsub.googleapis.com/Topic"
   *     }];
   *   }
   * If the referenced message is in the same proto package, the package
   * may be omitted:
   *   message Subscription {
   *     string topic = 2
   *       [(google.api.resource_reference).type = "Topic"];
   *   }
   * Only one of {`resource`, `resource_reference`} may be set.
   * </pre>
   *
   * <code>extend .google.protobuf.FieldOptions { ... }</code>
   */
  public static final
    com.google.protobuf.GeneratedMessage.GeneratedExtension<
      com.google.protobuf.DescriptorProtos.FieldOptions,
      com.google.api.ResourceReference> resourceReference = com.google.protobuf.GeneratedMessage
          .newFileScopedGeneratedExtension(
        com.google.api.ResourceReference.class,
        com.google.api.ResourceReference.getDefaultInstance());
  public static final int RESOURCE_FIELD_NUMBER = 1053;
  /**
   * <pre>
   * An annotation describing a resource.
   * Example:
   *     message Topic {
   *       option (google.api.resource) = {
   *         type: "pubsub.googleapis.com/Topic"
   *         pattern: "projects/{project}/topics/{topic}"
   *       };
   *     }
   * Only one of {`resource`, `resource_reference`} may be set.
   * </pre>
   *
   * <code>extend .google.protobuf.MessageOptions { ... }</code>
   */
  public static final
    com.google.protobuf.GeneratedMessage.GeneratedExtension<
      com.google.protobuf.DescriptorProtos.MessageOptions,
      com.google.api.ResourceDescriptor> resource = com.google.protobuf.GeneratedMessage
          .newFileScopedGeneratedExtension(
        com.google.api.ResourceDescriptor.class,
        com.google.api.ResourceDescriptor.getDefaultInstance());
  static final com.google.protobuf.Descriptors.Descriptor
    internal_static_google_api_ResourceDescriptor_descriptor;
  static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_google_api_ResourceDescriptor_fieldAccessorTable;
  static final com.google.protobuf.Descriptors.Descriptor
    internal_static_google_api_ResourceReference_descriptor;
  static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_google_api_ResourceReference_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\031google/api/resource.proto\022\ngoogle.api\032" +
      " google/protobuf/descriptor.proto\"\335\001\n\022Re" +
      "sourceDescriptor\022\014\n\004type\030\001 \001(\t\022\017\n\007patter" +
      "n\030\002 \003(\t\022\022\n\nname_field\030\003 \001(\t\0227\n\007history\030\004" +
      " \001(\0162&.google.api.ResourceDescriptor.His" +
      "tory\"[\n\007History\022\027\n\023HISTORY_UNSPECIFIED\020\000" +
      "\022\035\n\031ORIGINALLY_SINGLE_PATTERN\020\001\022\030\n\024FUTUR" +
      "E_MULTI_PATTERN\020\002\"5\n\021ResourceReference\022\014" +
      "\n\004type\030\001 \001(\t\022\022\n\nchild_type\030\002 \001(\t:Y\n\022reso" +
      "urce_reference\022\035.google.protobuf.FieldOp" +
      "tions\030\237\010 \001(\0132\035.google.api.ResourceRefere" +
      "nce:R\n\010resource\022\037.google.protobuf.Messag" +
      "eOptions\030\235\010 \001(\0132\036.google.api.ResourceDes" +
      "criptorBn\n\016com.google.apiB\rResourceProto" +
      "P\001ZAgoogle.golang.org/genproto/googleapi" +
      "s/api/annotations;annotations\370\001\001\242\002\004GAPIb" +
      "\006proto3"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
          public com.google.protobuf.ExtensionRegistry assignDescriptors(
              com.google.protobuf.Descriptors.FileDescriptor root) {
            descriptor = root;
            return null;
          }
        };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          com.google.protobuf.DescriptorProtos.getDescriptor(),
        }, assigner);
    internal_static_google_api_ResourceDescriptor_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_google_api_ResourceDescriptor_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_google_api_ResourceDescriptor_descriptor,
        new java.lang.String[] { "Type", "Pattern", "NameField", "History", });
    internal_static_google_api_ResourceReference_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_google_api_ResourceReference_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_google_api_ResourceReference_descriptor,
        new java.lang.String[] { "Type", "ChildType", });
    resourceReference.internalInit(descriptor.getExtensions().get(0));
    resource.internalInit(descriptor.getExtensions().get(1));
    com.google.protobuf.DescriptorProtos.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
