Class CreateViewRequest.Builder (2.37.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateViewRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateViewRequest.Builder
Overrides

build()

public CreateViewRequest build()
Returns
TypeDescription
CreateViewRequest

buildPartial()

public CreateViewRequest buildPartial()
Returns
TypeDescription
CreateViewRequest

clear()

public CreateViewRequest.Builder clear()
Returns
TypeDescription
CreateViewRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateViewRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateViewRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateViewRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CreateViewRequest.Builder

clone()

public CreateViewRequest.Builder clone()
Returns
TypeDescription
CreateViewRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateViewRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateViewRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ViewOrBuilder

hasView()

public boolean hasView()

Required. The view resource to create.

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

Returns
TypeDescription
boolean

Whether the view field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateViewRequest other)

public CreateViewRequest.Builder mergeFrom(CreateViewRequest other)
Parameter
NameDescription
otherCreateViewRequest
Returns
TypeDescription
CreateViewRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateViewRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateViewRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateViewRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateViewRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateViewRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueView
Returns
TypeDescription
CreateViewRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateViewRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateViewRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateViewRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueView
Returns
TypeDescription
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
NameDescription
builderForValueView.Builder
Returns
TypeDescription
CreateViewRequest.Builder