Class CreateViewRequest.Builder (2.83.0)

public static final class CreateViewRequest.Builder extends GeneratedMessage.Builder<CreateViewRequest.Builder> implements CreateViewRequestOrBuilder

The request to create a view.

Protobuf type google.cloud.contactcenterinsights.v1.CreateViewRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public CreateViewRequest build()
Returns
Type Description
CreateViewRequest

buildPartial()

public CreateViewRequest buildPartial()
Returns
Type Description
CreateViewRequest

clear()

public CreateViewRequest.Builder clear()
Returns
Type Description
CreateViewRequest.Builder
Overrides

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
Type Description
CreateViewRequest.Builder

This builder for chaining.

clearView()

public CreateViewRequest.Builder clearView()

Required. The view resource to create.

.google.cloud.contactcenterinsights.v1.View view = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateViewRequest.Builder

getDefaultInstanceForType()

public CreateViewRequest getDefaultInstanceForType()
Returns
Type Description
CreateViewRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public 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) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getView()

public View getView()

Required. The view resource to create.

.google.cloud.contactcenterinsights.v1.View view = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
View

The view.

getViewBuilder()

public View.Builder getViewBuilder()

Required. The view resource to create.

.google.cloud.contactcenterinsights.v1.View view = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
View.Builder

getViewOrBuilder()

public ViewOrBuilder getViewOrBuilder()

Required. The view resource to create.

.google.cloud.contactcenterinsights.v1.View view = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ViewOrBuilder

hasView()

public boolean hasView()

Required. The view resource to create.

.google.cloud.contactcenterinsights.v1.View view = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the view field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateViewRequest other)

public CreateViewRequest.Builder mergeFrom(CreateViewRequest other)
Parameter
Name Description
other CreateViewRequest
Returns
Type Description
CreateViewRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateViewRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateViewRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateViewRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateViewRequest.Builder
Overrides

mergeView(View value)

public CreateViewRequest.Builder mergeView(View value)

Required. The view resource to create.

.google.cloud.contactcenterinsights.v1.View view = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value View
Returns
Type Description
CreateViewRequest.Builder

setParent(String value)

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) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateViewRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateViewRequest.Builder setParentBytes(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) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateViewRequest.Builder

This builder for chaining.

setView(View value)

public CreateViewRequest.Builder setView(View value)

Required. The view resource to create.

.google.cloud.contactcenterinsights.v1.View view = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value View
Returns
Type Description
CreateViewRequest.Builder

setView(View.Builder builderForValue)

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];

Parameter
Name Description
builderForValue View.Builder
Returns
Type Description
CreateViewRequest.Builder