Class StyleGuideContents.Builder (0.4.0)

public static final class StyleGuideContents.Builder extends GeneratedMessageV3.Builder<StyleGuideContents.Builder> implements StyleGuideContentsOrBuilder

The style guide contents.

Protobuf type google.cloud.apihub.v1.StyleGuideContents

Static 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
Overrides

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
Overrides

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
Overrides

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
Overrides

clone()

public StyleGuideContents.Builder clone()
Returns
Type Description
StyleGuideContents.Builder
Overrides

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
Overrides

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StyleGuideContents.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StyleGuideContents.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StyleGuideContents.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StyleGuideContents.Builder
Overrides

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
Overrides

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
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StyleGuideContents.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StyleGuideContents.Builder
Overrides