public static final class CreateGlossaryRequest.Builder extends GeneratedMessageV3.Builder<CreateGlossaryRequest.Builder> implements CreateGlossaryRequestOrBuilder
Request message for CreateGlossary.
Protobuf type google.cloud.translation.v3.CreateGlossaryRequest
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
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateGlossaryRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CreateGlossaryRequest build()
Returns
buildPartial()
public CreateGlossaryRequest buildPartial()
Returns
clear()
public CreateGlossaryRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateGlossaryRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearGlossary()
public CreateGlossaryRequest.Builder clearGlossary()
Required. The glossary to create.
.google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateGlossaryRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearParent()
public CreateGlossaryRequest.Builder clearParent()
Required. The project name.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clone()
public CreateGlossaryRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public CreateGlossaryRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getGlossary()
public Glossary getGlossary()
Required. The glossary to create.
.google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getGlossaryBuilder()
public Glossary.Builder getGlossaryBuilder()
Required. The glossary to create.
.google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getGlossaryOrBuilder()
public GlossaryOrBuilder getGlossaryOrBuilder()
Required. The glossary to create.
.google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getParent()
public String getParent()
Required. The project name.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The parent.
|
getParentBytes()
public ByteString getParentBytes()
Required. The project name.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
hasGlossary()
public boolean hasGlossary()
Required. The glossary to create.
.google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the glossary field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(CreateGlossaryRequest other)
public CreateGlossaryRequest.Builder mergeFrom(CreateGlossaryRequest other)
Parameter
Returns
public CreateGlossaryRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateGlossaryRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeGlossary(Glossary value)
public CreateGlossaryRequest.Builder mergeGlossary(Glossary value)
Required. The glossary to create.
.google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateGlossaryRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateGlossaryRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setGlossary(Glossary value)
public CreateGlossaryRequest.Builder setGlossary(Glossary value)
Required. The glossary to create.
.google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setGlossary(Glossary.Builder builderForValue)
public CreateGlossaryRequest.Builder setGlossary(Glossary.Builder builderForValue)
Required. The glossary to create.
.google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setParent(String value)
public CreateGlossaryRequest.Builder setParent(String value)
Required. The project name.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The parent to set.
|
Returns
setParentBytes(ByteString value)
public CreateGlossaryRequest.Builder setParentBytes(ByteString value)
Required. The project name.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for parent to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateGlossaryRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateGlossaryRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides