Class Condition (0.70.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 0.70.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  Condition   extends   GeneratedMessageV3   implements   ConditionOrBuilder  
   Defines circumstances to be checked before allowing a behavior
 Protobuf type google.cloud.discoveryengine.v1.Condition
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  ACTIVE_TIME_RANGE_FIELD_NUMBER 
  
    
public   static   final   int   ACTIVE_TIME_RANGE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  QUERY_REGEX_FIELD_NUMBER 
  
    
public   static   final   int   QUERY_REGEX_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  QUERY_TERMS_FIELD_NUMBER 
  
    
public   static   final   int   QUERY_TERMS_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   Condition   getDefaultInstance ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   Condition . Builder   newBuilder ()  
  
  newBuilder(Condition prototype) 
  
    
public   static   Condition . Builder   newBuilder ( Condition   prototype )  
  
    
      
        Parameter  
      
        Name Description  
      
        prototypeCondition  
     
  
  
  
    
public   static   Condition   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   Condition   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   Condition   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Condition   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   Condition   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Condition   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Condition   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   Condition   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Condition   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   Condition   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   Condition   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Condition   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<Condition>   parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getActiveTimeRange(int index) 
  
    
public   Condition . TimeRange   getActiveTimeRange ( int   index )  
   Range of time(s) specifying when condition is active.
 Maximum of 10 time ranges.
 repeated .google.cloud.discoveryengine.v1.Condition.TimeRange active_time_range = 3;
 
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  getActiveTimeRangeCount() 
  
    
public   int   getActiveTimeRangeCount ()  
   Range of time(s) specifying when condition is active.
 Maximum of 10 time ranges.
 repeated .google.cloud.discoveryengine.v1.Condition.TimeRange active_time_range = 3;
 
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  getActiveTimeRangeList() 
  
    
public   List<Condition . TimeRange >  getActiveTimeRangeList ()  
   Range of time(s) specifying when condition is active.
 Maximum of 10 time ranges.
 repeated .google.cloud.discoveryengine.v1.Condition.TimeRange active_time_range = 3;
 
getActiveTimeRangeOrBuilder(int index) 
  
    
public   Condition . TimeRangeOrBuilder   getActiveTimeRangeOrBuilder ( int   index )  
   Range of time(s) specifying when condition is active.
 Maximum of 10 time ranges.
 repeated .google.cloud.discoveryengine.v1.Condition.TimeRange active_time_range = 3;
 
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  getActiveTimeRangeOrBuilderList() 
  
    
public   List <?   extends   Condition . TimeRangeOrBuilder >  getActiveTimeRangeOrBuilderList ()  
   Range of time(s) specifying when condition is active.
 Maximum of 10 time ranges.
 repeated .google.cloud.discoveryengine.v1.Condition.TimeRange active_time_range = 3;
 
    
      
        Returns  
      
        Type Description  
      
        List <? extends com.google.cloud.discoveryengine.v1.Condition.TimeRangeOrBuilder > 
     
  
  getDefaultInstanceForType() 
  
    
public   Condition   getDefaultInstanceForType ()  
  
  getParserForType() 
  
    
public   Parser<Condition>   getParserForType ()  
  
  Overrides 
  
  getQueryRegex() 
  
    
public   String   getQueryRegex ()  
   Optional. Query regex to match the whole search query.
 Cannot be set when
 Condition.query_terms 
 is set. Only supported for Basic Site Search promotion serving controls.
 string query_regex = 4 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        String The queryRegex.
 
     
  
  getQueryRegexBytes() 
  
    
public   ByteString   getQueryRegexBytes ()  
   Optional. Query regex to match the whole search query.
 Cannot be set when
 Condition.query_terms 
 is set. Only supported for Basic Site Search promotion serving controls.
 string query_regex = 4 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for queryRegex.
 
     
  
  getQueryTerms(int index) 
  
    
public   Condition . QueryTerm   getQueryTerms ( int   index )  
   Search only
 A list of terms to match the query on.
 Cannot be set when
 Condition.query_regex 
 is set.
 Maximum of 10 query terms.
 repeated .google.cloud.discoveryengine.v1.Condition.QueryTerm query_terms = 2;
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  getQueryTermsCount() 
  
    
public   int   getQueryTermsCount ()  
   Search only
 A list of terms to match the query on.
 Cannot be set when
 Condition.query_regex 
 is set.
 Maximum of 10 query terms.
 repeated .google.cloud.discoveryengine.v1.Condition.QueryTerm query_terms = 2;
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  getQueryTermsList() 
  
    
public   List<Condition . QueryTerm >  getQueryTermsList ()  
   Search only
 A list of terms to match the query on.
 Cannot be set when
 Condition.query_regex 
 is set.
 Maximum of 10 query terms.
 repeated .google.cloud.discoveryengine.v1.Condition.QueryTerm query_terms = 2;
getQueryTermsOrBuilder(int index) 
  
    
public   Condition . QueryTermOrBuilder   getQueryTermsOrBuilder ( int   index )  
   Search only
 A list of terms to match the query on.
 Cannot be set when
 Condition.query_regex 
 is set.
 Maximum of 10 query terms.
 repeated .google.cloud.discoveryengine.v1.Condition.QueryTerm query_terms = 2;
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  getQueryTermsOrBuilderList() 
  
    
public   List <?   extends   Condition . QueryTermOrBuilder >  getQueryTermsOrBuilderList ()  
   Search only
 A list of terms to match the query on.
 Cannot be set when
 Condition.query_regex 
 is set.
 Maximum of 10 query terms.
 repeated .google.cloud.discoveryengine.v1.Condition.QueryTerm query_terms = 2;
    
      
        Returns  
      
        Type Description  
      
        List <? extends com.google.cloud.discoveryengine.v1.Condition.QueryTermOrBuilder > 
     
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   Condition . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   Condition . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   Condition . Builder   toBuilder ()  
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]