Class CreateQuotaPreferenceRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.api.cloudquotas.v1.CreateQuotaPreferenceRequest
All Implemented Interfaces:
CreateQuotaPreferenceRequestOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class CreateQuotaPreferenceRequest extends com.google.protobuf.GeneratedMessage implements CreateQuotaPreferenceRequestOrBuilder
 Message for creating a QuotaPreference
 
Protobuf type google.api.cloudquotas.v1.CreateQuotaPreferenceRequest
See Also:
  • Field Details

    • PARENT_FIELD_NUMBER

      public static final int PARENT_FIELD_NUMBER
      See Also:
    • QUOTA_PREFERENCE_ID_FIELD_NUMBER

      public static final int QUOTA_PREFERENCE_ID_FIELD_NUMBER
      See Also:
    • QUOTA_PREFERENCE_FIELD_NUMBER

      public static final int QUOTA_PREFERENCE_FIELD_NUMBER
      See Also:
    • IGNORE_SAFETY_CHECKS_FIELD_NUMBER

      public static final int IGNORE_SAFETY_CHECKS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getParent

      public String getParent()
       Required. Value for parent.
      
       Example:
       `projects/123/locations/global`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateQuotaPreferenceRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. Value for parent.
      
       Example:
       `projects/123/locations/global`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateQuotaPreferenceRequestOrBuilder
      Returns:
      The bytes for parent.
    • getQuotaPreferenceId

      public String getQuotaPreferenceId()
       Optional. Id of the requesting object, must be unique under its parent.
       If client does not set this field, the service will generate one.
       
      string quota_preference_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getQuotaPreferenceId in interface CreateQuotaPreferenceRequestOrBuilder
      Returns:
      The quotaPreferenceId.
    • getQuotaPreferenceIdBytes

      public com.google.protobuf.ByteString getQuotaPreferenceIdBytes()
       Optional. Id of the requesting object, must be unique under its parent.
       If client does not set this field, the service will generate one.
       
      string quota_preference_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getQuotaPreferenceIdBytes in interface CreateQuotaPreferenceRequestOrBuilder
      Returns:
      The bytes for quotaPreferenceId.
    • hasQuotaPreference

      public boolean hasQuotaPreference()
       Required. The resource being created
       
      .google.api.cloudquotas.v1.QuotaPreference quota_preference = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasQuotaPreference in interface CreateQuotaPreferenceRequestOrBuilder
      Returns:
      Whether the quotaPreference field is set.
    • getQuotaPreference

      public QuotaPreference getQuotaPreference()
       Required. The resource being created
       
      .google.api.cloudquotas.v1.QuotaPreference quota_preference = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQuotaPreference in interface CreateQuotaPreferenceRequestOrBuilder
      Returns:
      The quotaPreference.
    • getQuotaPreferenceOrBuilder

      public QuotaPreferenceOrBuilder getQuotaPreferenceOrBuilder()
       Required. The resource being created
       
      .google.api.cloudquotas.v1.QuotaPreference quota_preference = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQuotaPreferenceOrBuilder in interface CreateQuotaPreferenceRequestOrBuilder
    • getIgnoreSafetyChecksList

      public List<QuotaSafetyCheck> getIgnoreSafetyChecksList()
       The list of quota safety checks to be ignored.
       
      repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 4;
      Specified by:
      getIgnoreSafetyChecksList in interface CreateQuotaPreferenceRequestOrBuilder
      Returns:
      A list containing the ignoreSafetyChecks.
    • getIgnoreSafetyChecksCount

      public int getIgnoreSafetyChecksCount()
       The list of quota safety checks to be ignored.
       
      repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 4;
      Specified by:
      getIgnoreSafetyChecksCount in interface CreateQuotaPreferenceRequestOrBuilder
      Returns:
      The count of ignoreSafetyChecks.
    • getIgnoreSafetyChecks

      public QuotaSafetyCheck getIgnoreSafetyChecks(int index)
       The list of quota safety checks to be ignored.
       
      repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 4;
      Specified by:
      getIgnoreSafetyChecks in interface CreateQuotaPreferenceRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The ignoreSafetyChecks at the given index.
    • getIgnoreSafetyChecksValueList

      public List<Integer> getIgnoreSafetyChecksValueList()
       The list of quota safety checks to be ignored.
       
      repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 4;
      Specified by:
      getIgnoreSafetyChecksValueList in interface CreateQuotaPreferenceRequestOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for ignoreSafetyChecks.
    • getIgnoreSafetyChecksValue

      public int getIgnoreSafetyChecksValue(int index)
       The list of quota safety checks to be ignored.
       
      repeated .google.api.cloudquotas.v1.QuotaSafetyCheck ignore_safety_checks = 4;
      Specified by:
      getIgnoreSafetyChecksValue in interface CreateQuotaPreferenceRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of ignoreSafetyChecks at the given index.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static CreateQuotaPreferenceRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CreateQuotaPreferenceRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CreateQuotaPreferenceRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CreateQuotaPreferenceRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CreateQuotaPreferenceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CreateQuotaPreferenceRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CreateQuotaPreferenceRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CreateQuotaPreferenceRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CreateQuotaPreferenceRequest parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CreateQuotaPreferenceRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CreateQuotaPreferenceRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CreateQuotaPreferenceRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public CreateQuotaPreferenceRequest.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static CreateQuotaPreferenceRequest.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected CreateQuotaPreferenceRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static CreateQuotaPreferenceRequest getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<CreateQuotaPreferenceRequest> parser()
    • getParserForType

      public com.google.protobuf.Parser<CreateQuotaPreferenceRequest> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public CreateQuotaPreferenceRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder