Class CreateControlRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateControlRequest.Builder>
com.google.cloud.discoveryengine.v1beta.CreateControlRequest.Builder
All Implemented Interfaces:
CreateControlRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateControlRequest

public static final class CreateControlRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateControlRequest.Builder> implements CreateControlRequestOrBuilder
 Request for CreateControl method.
 
Protobuf type google.cloud.discoveryengine.v1beta.CreateControlRequest
  • 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.Builder<CreateControlRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CreateControlRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CreateControlRequest.Builder>
    • getDefaultInstanceForType

      public CreateControlRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public CreateControlRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CreateControlRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CreateControlRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateControlRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CreateControlRequest.Builder>
    • mergeFrom

      public CreateControlRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateControlRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. Full resource name of parent data store. Format:
       `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`
       or
       `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateControlRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. Full resource name of parent data store. Format:
       `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`
       or
       `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateControlRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateControlRequest.Builder setParent(String value)
       Required. Full resource name of parent data store. Format:
       `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`
       or
       `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateControlRequest.Builder clearParent()
       Required. Full resource name of parent data store. Format:
       `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`
       or
       `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateControlRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. Full resource name of parent data store. Format:
       `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`
       or
       `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasControl

      public boolean hasControl()
       Required. The Control to create.
       
      .google.cloud.discoveryengine.v1beta.Control control = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasControl in interface CreateControlRequestOrBuilder
      Returns:
      Whether the control field is set.
    • getControl

      public Control getControl()
       Required. The Control to create.
       
      .google.cloud.discoveryengine.v1beta.Control control = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getControl in interface CreateControlRequestOrBuilder
      Returns:
      The control.
    • setControl

      public CreateControlRequest.Builder setControl(Control value)
       Required. The Control to create.
       
      .google.cloud.discoveryengine.v1beta.Control control = 2 [(.google.api.field_behavior) = REQUIRED];
    • setControl

      public CreateControlRequest.Builder setControl(Control.Builder builderForValue)
       Required. The Control to create.
       
      .google.cloud.discoveryengine.v1beta.Control control = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeControl

      public CreateControlRequest.Builder mergeControl(Control value)
       Required. The Control to create.
       
      .google.cloud.discoveryengine.v1beta.Control control = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearControl

      public CreateControlRequest.Builder clearControl()
       Required. The Control to create.
       
      .google.cloud.discoveryengine.v1beta.Control control = 2 [(.google.api.field_behavior) = REQUIRED];
    • getControlBuilder

      public Control.Builder getControlBuilder()
       Required. The Control to create.
       
      .google.cloud.discoveryengine.v1beta.Control control = 2 [(.google.api.field_behavior) = REQUIRED];
    • getControlOrBuilder

      public ControlOrBuilder getControlOrBuilder()
       Required. The Control to create.
       
      .google.cloud.discoveryengine.v1beta.Control control = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getControlOrBuilder in interface CreateControlRequestOrBuilder
    • getControlId

      public String getControlId()
       Required. The ID to use for the Control, which will become the final
       component of the Control's resource name.
      
       This value must be within 1-63 characters.
       Valid characters are /[a-z][0-9]-_/.
       
      string control_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getControlId in interface CreateControlRequestOrBuilder
      Returns:
      The controlId.
    • getControlIdBytes

      public com.google.protobuf.ByteString getControlIdBytes()
       Required. The ID to use for the Control, which will become the final
       component of the Control's resource name.
      
       This value must be within 1-63 characters.
       Valid characters are /[a-z][0-9]-_/.
       
      string control_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getControlIdBytes in interface CreateControlRequestOrBuilder
      Returns:
      The bytes for controlId.
    • setControlId

      public CreateControlRequest.Builder setControlId(String value)
       Required. The ID to use for the Control, which will become the final
       component of the Control's resource name.
      
       This value must be within 1-63 characters.
       Valid characters are /[a-z][0-9]-_/.
       
      string control_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The controlId to set.
      Returns:
      This builder for chaining.
    • clearControlId

      public CreateControlRequest.Builder clearControlId()
       Required. The ID to use for the Control, which will become the final
       component of the Control's resource name.
      
       This value must be within 1-63 characters.
       Valid characters are /[a-z][0-9]-_/.
       
      string control_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setControlIdBytes

      public CreateControlRequest.Builder setControlIdBytes(com.google.protobuf.ByteString value)
       Required. The ID to use for the Control, which will become the final
       component of the Control's resource name.
      
       This value must be within 1-63 characters.
       Valid characters are /[a-z][0-9]-_/.
       
      string control_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for controlId to set.
      Returns:
      This builder for chaining.