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()
Methods
public CreateConversationRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public CreateConversationRequest build()
public CreateConversationRequest buildPartial()
public CreateConversationRequest.Builder clear()
Overrides
public CreateConversationRequest.Builder clearConversation()
Required. The conversation resource to create.
.google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];
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;
public CreateConversationRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public CreateConversationRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public CreateConversationRequest.Builder clearParent()
Required. The parent resource of the conversation.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public CreateConversationRequest.Builder clone()
Overrides
public Conversation getConversation()
Required. The conversation resource to create.
.google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];
public Conversation.Builder getConversationBuilder()
Required. The conversation resource to create.
.google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];
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];
public CreateConversationRequest getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Type | Description |
ByteString | The bytes for parent.
|
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()
Overrides
public final boolean isInitialized()
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];
public CreateConversationRequest.Builder mergeFrom(CreateConversationRequest other)
public CreateConversationRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public CreateConversationRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public final CreateConversationRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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];
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];
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.
|
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.
|
public CreateConversationRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
public CreateConversationRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final CreateConversationRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides