Class CreateViewRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateViewRequest.Builder>
com.google.cloud.contactcenterinsights.v1.CreateViewRequest.Builder
All Implemented Interfaces:
CreateViewRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateViewRequest

public static final class CreateViewRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateViewRequest.Builder> implements CreateViewRequestOrBuilder
 The request to create a view.
 
Protobuf type google.cloud.contactcenterinsights.v1.CreateViewRequest
  • 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<CreateViewRequest.Builder>
    • clear

      public CreateViewRequest.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<CreateViewRequest.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<CreateViewRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public CreateViewRequest.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<CreateViewRequest.Builder>
    • mergeFrom

      public CreateViewRequest.Builder mergeFrom(CreateViewRequest other)
    • isInitialized

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

      public CreateViewRequest.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<CreateViewRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The parent resource of the view. Required. The location to create
       a view for.
       Format: `projects/<Project ID>/locations/<Location ID>` or
       `projects/<Project Number>/locations/<Location ID>`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateViewRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent resource of the view. Required. The location to create
       a view for.
       Format: `projects/<Project ID>/locations/<Location ID>` or
       `projects/<Project Number>/locations/<Location ID>`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateViewRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateViewRequest.Builder setParent(String value)
       Required. The parent resource of the view. Required. The location to create
       a view for.
       Format: `projects/<Project ID>/locations/<Location ID>` or
       `projects/<Project Number>/locations/<Location 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 CreateViewRequest.Builder clearParent()
       Required. The parent resource of the view. Required. The location to create
       a view for.
       Format: `projects/<Project ID>/locations/<Location ID>` or
       `projects/<Project Number>/locations/<Location ID>`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateViewRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent resource of the view. Required. The location to create
       a view for.
       Format: `projects/<Project ID>/locations/<Location ID>` or
       `projects/<Project Number>/locations/<Location 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.
    • hasView

      public boolean hasView()
       Required. The view resource to create.
       
      .google.cloud.contactcenterinsights.v1.View view = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasView in interface CreateViewRequestOrBuilder
      Returns:
      Whether the view field is set.
    • getView

      public View getView()
       Required. The view resource to create.
       
      .google.cloud.contactcenterinsights.v1.View view = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getView in interface CreateViewRequestOrBuilder
      Returns:
      The view.
    • setView

      public CreateViewRequest.Builder setView(View value)
       Required. The view resource to create.
       
      .google.cloud.contactcenterinsights.v1.View view = 2 [(.google.api.field_behavior) = REQUIRED];
    • setView

      public CreateViewRequest.Builder setView(View.Builder builderForValue)
       Required. The view resource to create.
       
      .google.cloud.contactcenterinsights.v1.View view = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeView

      public CreateViewRequest.Builder mergeView(View value)
       Required. The view resource to create.
       
      .google.cloud.contactcenterinsights.v1.View view = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearView

      public CreateViewRequest.Builder clearView()
       Required. The view resource to create.
       
      .google.cloud.contactcenterinsights.v1.View view = 2 [(.google.api.field_behavior) = REQUIRED];
    • getViewBuilder

      public View.Builder getViewBuilder()
       Required. The view resource to create.
       
      .google.cloud.contactcenterinsights.v1.View view = 2 [(.google.api.field_behavior) = REQUIRED];
    • getViewOrBuilder

      public ViewOrBuilder getViewOrBuilder()
       Required. The view resource to create.
       
      .google.cloud.contactcenterinsights.v1.View view = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getViewOrBuilder in interface CreateViewRequestOrBuilder