public static final class StyleGuideContents.Builder extends GeneratedMessageV3.Builder<StyleGuideContents.Builder> implements StyleGuideContentsOrBuilder
The style guide contents.
Protobuf type google.cloud.apihub.v1.StyleGuideContents
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > StyleGuideContents.BuilderImplements
StyleGuideContentsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public StyleGuideContents.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
StyleGuideContents.Builder |
build()
public StyleGuideContents build()
Returns | |
---|---|
Type | Description |
StyleGuideContents |
buildPartial()
public StyleGuideContents buildPartial()
Returns | |
---|---|
Type | Description |
StyleGuideContents |
clear()
public StyleGuideContents.Builder clear()
Returns | |
---|---|
Type | Description |
StyleGuideContents.Builder |
clearContents()
public StyleGuideContents.Builder clearContents()
Required. The contents of the style guide.
bytes contents = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
StyleGuideContents.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public StyleGuideContents.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
StyleGuideContents.Builder |
clearMimeType()
public StyleGuideContents.Builder clearMimeType()
Required. The mime type of the content.
string mime_type = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
StyleGuideContents.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public StyleGuideContents.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
StyleGuideContents.Builder |
clone()
public StyleGuideContents.Builder clone()
Returns | |
---|---|
Type | Description |
StyleGuideContents.Builder |
getContents()
public ByteString getContents()
Required. The contents of the style guide.
bytes contents = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The contents. |
getDefaultInstanceForType()
public StyleGuideContents getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
StyleGuideContents |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getMimeType()
public String getMimeType()
Required. The mime type of the content.
string mime_type = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The mimeType. |
getMimeTypeBytes()
public ByteString getMimeTypeBytes()
Required. The mime type of the content.
string mime_type = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for mimeType. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(StyleGuideContents other)
public StyleGuideContents.Builder mergeFrom(StyleGuideContents other)
Parameter | |
---|---|
Name | Description |
other |
StyleGuideContents |
Returns | |
---|---|
Type | Description |
StyleGuideContents.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public StyleGuideContents.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
StyleGuideContents.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public StyleGuideContents.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
StyleGuideContents.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final StyleGuideContents.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
StyleGuideContents.Builder |
setContents(ByteString value)
public StyleGuideContents.Builder setContents(ByteString value)
Required. The contents of the style guide.
bytes contents = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The contents to set. |
Returns | |
---|---|
Type | Description |
StyleGuideContents.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public StyleGuideContents.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
StyleGuideContents.Builder |
setMimeType(String value)
public StyleGuideContents.Builder setMimeType(String value)
Required. The mime type of the content.
string mime_type = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The mimeType to set. |
Returns | |
---|---|
Type | Description |
StyleGuideContents.Builder |
This builder for chaining. |
setMimeTypeBytes(ByteString value)
public StyleGuideContents.Builder setMimeTypeBytes(ByteString value)
Required. The mime type of the content.
string mime_type = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for mimeType to set. |
Returns | |
---|---|
Type | Description |
StyleGuideContents.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public StyleGuideContents.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
StyleGuideContents.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final StyleGuideContents.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
StyleGuideContents.Builder |