public static final class CreateConversationRequest.Builder extends GeneratedMessageV3.Builder<CreateConversationRequest.Builder> implements CreateConversationRequestOrBuilder
Request to create a conversation.
Protobuf type google.cloud.contactcenterinsights.v1.CreateConversationRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public CreateConversationRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public CreateConversationRequest build()
Returns
public CreateConversationRequest buildPartial()
Returns
public CreateConversationRequest.Builder clear()
Returns
Overrides
public CreateConversationRequest.Builder clearConversation()
Required. The conversation resource to create.
.google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
public CreateConversationRequest.Builder clearConversationId()
A unique ID for the new conversation. This ID will become the final
component of the conversation's resource name. If no ID is specified, a
server-generated ID will be used.
This value should be 4-64 characters and must match the regular
expression ^[a-z0-9-]{4,64}$
. Valid characters are a-z-
string conversation_id = 3;
Returns
public CreateConversationRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public CreateConversationRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public CreateConversationRequest.Builder clearParent()
Required. The parent resource of the conversation.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
public CreateConversationRequest.Builder clone()
Returns
Overrides
public Conversation getConversation()
Required. The conversation resource to create.
.google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
public Conversation.Builder getConversationBuilder()
Required. The conversation resource to create.
.google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
public String getConversationId()
A unique ID for the new conversation. This ID will become the final
component of the conversation's resource name. If no ID is specified, a
server-generated ID will be used.
This value should be 4-64 characters and must match the regular
expression ^[a-z0-9-]{4,64}$
. Valid characters are a-z-
string conversation_id = 3;
Returns
Type | Description |
String | The conversationId.
|
public ByteString getConversationIdBytes()
A unique ID for the new conversation. This ID will become the final
component of the conversation's resource name. If no ID is specified, a
server-generated ID will be used.
This value should be 4-64 characters and must match the regular
expression ^[a-z0-9-]{4,64}$
. Valid characters are a-z-
string conversation_id = 3;
Returns
Type | Description |
ByteString | The bytes for conversationId.
|
public ConversationOrBuilder getConversationOrBuilder()
Required. The conversation resource to create.
.google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
public CreateConversationRequest getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public String getParent()
Required. The parent resource of the conversation.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The parent.
|
public ByteString getParentBytes()
Required. The parent resource of the conversation.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
public boolean hasConversation()
Required. The conversation resource to create.
.google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the conversation field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public CreateConversationRequest.Builder mergeConversation(Conversation value)
Required. The conversation resource to create.
.google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
public CreateConversationRequest.Builder mergeFrom(CreateConversationRequest other)
Parameter
Returns
public CreateConversationRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public CreateConversationRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final CreateConversationRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public CreateConversationRequest.Builder setConversation(Conversation value)
Required. The conversation resource to create.
.google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
public CreateConversationRequest.Builder setConversation(Conversation.Builder builderForValue)
Required. The conversation resource to create.
.google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
public CreateConversationRequest.Builder setConversationId(String value)
A unique ID for the new conversation. This ID will become the final
component of the conversation's resource name. If no ID is specified, a
server-generated ID will be used.
This value should be 4-64 characters and must match the regular
expression ^[a-z0-9-]{4,64}$
. Valid characters are a-z-
string conversation_id = 3;
Parameter
Name | Description |
value | String
The conversationId to set.
|
Returns
public CreateConversationRequest.Builder setConversationIdBytes(ByteString value)
A unique ID for the new conversation. This ID will become the final
component of the conversation's resource name. If no ID is specified, a
server-generated ID will be used.
This value should be 4-64 characters and must match the regular
expression ^[a-z0-9-]{4,64}$
. Valid characters are a-z-
string conversation_id = 3;
Parameter
Name | Description |
value | ByteString
The bytes for conversationId to set.
|
Returns
public CreateConversationRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public CreateConversationRequest.Builder setParent(String value)
Required. The parent resource of the conversation.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The parent to set.
|
Returns
public CreateConversationRequest.Builder setParentBytes(ByteString value)
Required. The parent resource of the conversation.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for parent to set.
|
Returns
public CreateConversationRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final CreateConversationRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides