Class CreateViewRequest.Builder (2.46.0)

public static final class CreateViewRequest.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateViewRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateViewRequest.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public CreateViewRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateViewRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateViewRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateViewRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

setField(Descriptors.FieldDescriptor field, Object value)

public CreateViewRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateViewRequest.Builder
Overrides

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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateViewRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateViewRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateViewRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateViewRequest.Builder
Overrides

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